M4521_BSP V3.02.000
The Board Support Package for M4521
Functions
usbh_support.c File Reference
#include <stdio.h>
#include <string.h>
#include "M4521.h"
#include "usbh_core.h"
#include "usbh_hub.h"
#include "usbh_ohci.h"
Include dependency graph for usbh_support.c:

Go to the source code of this file.

Functions

HIDDEN_SYMBOLS void usbh_init_memory ()
 
URB_T * USBH_AllocUrb ()
 Allocate an URB from USB Core driver internal URB pool. More...
 
void USBH_FreeUrb (URB_T *urb)
 Free the URB allocated from USBH_AllocUrb() More...
 
void usbh_free_dev_urbs (USB_DEV_T *dev)
 
ED_T * ohci_alloc_ed ()
 
void ohci_free_ed (ED_T *ed_p)
 
TD_T * ohci_alloc_td (USB_DEV_T *dev)
 
void ohci_free_td (TD_T *td_p)
 
void ohci_free_dev_td (USB_DEV_T *dev)
 
USB_DEV_T * usbh_alloc_device (USB_DEV_T *parent, USB_BUS_T *bus)
 
void usbh_free_device (USB_DEV_T *dev)
 
USB_HUB_T * usbh_alloc_hubdev ()
 
void usbh_free_hubdev (USB_HUB_T *hub)
 
USB_HUB_T * usbh_get_hub_by_dev (USB_DEV_T *dev)
 
void usbh_mdelay (uint32_t msec)
 

Function Documentation

◆ ohci_alloc_ed()

ED_T * ohci_alloc_ed ( )

Definition at line 133 of file usbh_support.c.

◆ ohci_alloc_td()

TD_T * ohci_alloc_td ( USB_DEV_T *  dev)

Definition at line 169 of file usbh_support.c.

◆ ohci_free_dev_td()

void ohci_free_dev_td ( USB_DEV_T *  dev)

Definition at line 205 of file usbh_support.c.

◆ ohci_free_ed()

void ohci_free_ed ( ED_T *  ed_p)

Definition at line 152 of file usbh_support.c.

Here is the caller graph for this function:

◆ ohci_free_td()

void ohci_free_td ( TD_T *  td_p)

Definition at line 189 of file usbh_support.c.

◆ usbh_alloc_device()

USB_DEV_T * usbh_alloc_device ( USB_DEV_T *  parent,
USB_BUS_T *  bus 
)

Definition at line 224 of file usbh_support.c.

◆ usbh_alloc_hubdev()

USB_HUB_T * usbh_alloc_hubdev ( )

Definition at line 276 of file usbh_support.c.

◆ usbh_free_dev_urbs()

void usbh_free_dev_urbs ( USB_DEV_T *  dev)

Definition at line 115 of file usbh_support.c.

Here is the call graph for this function:

◆ usbh_free_device()

void usbh_free_device ( USB_DEV_T *  dev)

Definition at line 252 of file usbh_support.c.

Here is the call graph for this function:

◆ usbh_free_hubdev()

void usbh_free_hubdev ( USB_HUB_T *  hub)

Definition at line 294 of file usbh_support.c.

◆ usbh_get_hub_by_dev()

USB_HUB_T * usbh_get_hub_by_dev ( USB_DEV_T *  dev)

Definition at line 310 of file usbh_support.c.

◆ usbh_init_memory()

HIDDEN_SYMBOLS void usbh_init_memory ( )

Definition at line 48 of file usbh_support.c.

Here is the caller graph for this function:

◆ usbh_mdelay()

void usbh_mdelay ( uint32_t  msec)

Definition at line 330 of file usbh_support.c.