diff options
| author | Ha Thach <[email protected]> | 2020-11-07 10:52:14 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-07 10:52:14 +0700 |
| commit | a708ab62540cf952048c97e6952bd95fdc823d90 (patch) | |
| tree | 9280e1a6138859d765af4b2c4aae7dc62a620e75 /src/device | |
| parent | 075334af80303488a8c874255d725cb4ca15a7de (diff) | |
| parent | 2907b1e4382df313ba8eb713fa4d0e3d3bc6e7cf (diff) | |
Merge pull request #553 from hathach/host-async-control
Host async control
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 4 | ||||
| -rw-r--r-- | src/device/usbd.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 776f782b8..b7e5a8da0 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -77,7 +77,7 @@ typedef struct TU_ATTR_ALIGNED(4) uint32_t len; }xfer_complete; - // USBD_EVENT_FUNC_CALL + // FUNC_CALL struct { void (*func) (void*); void* param; @@ -140,7 +140,7 @@ void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr); void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr); //--------------------------------------------------------------------+ -// Event API (Implemented by device stack) +// Event API (implemented by stack) //--------------------------------------------------------------------+ // Called by DCD to notify device stack diff --git a/src/device/usbd.h b/src/device/usbd.h index 0a446fdc2..e88f64ba8 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -41,8 +41,6 @@ extern "C" { //--------------------------------------------------------------------+ // Init device stack -// Note: when using with RTOS, this should be called after scheduler/kernel is started. -// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API. bool tud_init (void); // Task function should be called in main/rtos loop |
