diff options
| author | hathach <[email protected]> | 2013-05-28 15:24:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-28 15:24:27 +0700 |
| commit | 1e5bd82af28c6005fa0ecf008e44322a6ee46461 (patch) | |
| tree | e9618a6a79880a0c681a6c213d8560c286e3475f /tinyusb/device/usbd.c | |
| parent | 7ae986de95ccb049611340164246e17ee0023c87 (diff) | |
rename NGX to ngx
add a bunch of stub header for dcd (175x_6x, 13xx, 18xx_43xx)
add dcd_nxp_romdriver for handling usb rom driver
add BIT_TEST_ in binary.h
remove mw_usbd_hid.h include due to lexical conflict
Diffstat (limited to 'tinyusb/device/usbd.c')
| -rw-r--r-- | tinyusb/device/usbd.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index b5a4044c0..cbbc28995 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -50,6 +50,22 @@ //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ +//typedef struct { +// volatile uint8_t state; +// +//}; +typedef struct { + volatile uint8_t state; +}usbd_info_t; // TODO rename + +usbd_info_t usbd_info; // TODO rename + +typedef struct { + void (* const init) (void); + void (* const configured) (void); + void (* const unmounted) (void); +}device_class_driver_t; + //--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION @@ -60,6 +76,8 @@ //--------------------------------------------------------------------+ tusb_error_t usbd_init (void) { + ASSERT_STATUS ( dcd_init() ); + return TUSB_ERROR_NONE; } |
