diff options
| author | hathach <[email protected]> | 2013-11-13 12:40:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-13 12:40:11 +0700 |
| commit | 92d9c36dbcfd933f872c91ad061e2e5ab184b020 (patch) | |
| tree | 1864f26f579d65878f1cbd09d65b8cbb90b3f02b /tinyusb/class | |
| parent | d8f32a79fc9e04136afcd8f4d79abe7a9b0c2eb9 (diff) | |
able to build and run cdc device demo on lpc11uxx
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/hid_device.c | 4 | ||||
| -rw-r--r-- | tinyusb/class/msc_device.c | 17 | ||||
| -rw-r--r-- | tinyusb/class/msc_device.h | 2 |
3 files changed, 18 insertions, 5 deletions
diff --git a/tinyusb/class/hid_device.c b/tinyusb/class/hid_device.c index ec77ccc74..40a46cd03 100644 --- a/tinyusb/class/hid_device.c +++ b/tinyusb/class/hid_device.c @@ -121,12 +121,12 @@ tusb_error_t tusbd_hid_mouse_send(uint8_t coreid, hid_mouse_report_t const *p_re //--------------------------------------------------------------------+ void hidd_init(void) { - + // TODO not implemented yet } void hidd_bus_reset(uint8_t coreid) { - + // TODO not implemented yet } tusb_error_t hidd_control_request(uint8_t coreid, tusb_control_request_t const * p_request) diff --git a/tinyusb/class/msc_device.c b/tinyusb/class/msc_device.c index 6e537810e..cd9e8eb68 100644 --- a/tinyusb/class/msc_device.c +++ b/tinyusb/class/msc_device.c @@ -56,9 +56,10 @@ typedef struct { endpoint_handle_t edpt_in, edpt_out;
// must be in USB ram
- uint8_t max_lun;
- msc_cmd_block_wrapper_t cbw;
- msc_cmd_status_wrapper_t csw;
+ ATTR_USB_MIN_ALIGNMENT uint8_t max_lun;
+
+ ATTR_USB_MIN_ALIGNMENT msc_cmd_block_wrapper_t cbw;
+ ATTR_USB_MIN_ALIGNMENT msc_cmd_status_wrapper_t csw;
}mscd_interface_t;
STATIC_VAR mscd_interface_t mscd_data TUSB_CFG_ATTR_USBRAM;
@@ -69,6 +70,16 @@ STATIC_VAR mscd_interface_t mscd_data TUSB_CFG_ATTR_USBRAM; //--------------------------------------------------------------------+
// USBD-CLASS API
//--------------------------------------------------------------------+
+void mscd_init(void)
+{
+ // TODO not implemented
+}
+
+void mscd_bus_reset(uint8_t coreid)
+{
+ // TODO not implemented yet
+}
+
tusb_error_t mscd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length)
{
ASSERT( ( MSC_SUBCLASS_SCSI == p_interface_desc->bInterfaceSubClass &&
diff --git a/tinyusb/class/msc_device.h b/tinyusb/class/msc_device.h index a2d73945e..fd117da95 100644 --- a/tinyusb/class/msc_device.h +++ b/tinyusb/class/msc_device.h @@ -58,6 +58,8 @@ msc_csw_status_t tusbd_msc_scsi_received_isr (uint8_t coreid, uint8_t lun, uint8 //--------------------------------------------------------------------+
#ifdef _TINY_USB_SOURCE_FILE_
+void mscd_init(void);
+void mscd_bus_reset(uint8_t coreid);
tusb_error_t mscd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length);
tusb_error_t mscd_control_request(uint8_t coreid, tusb_control_request_t const * p_request);
void mscd_isr(endpoint_handle_t edpt_hdl, tusb_event_t event, uint32_t xferred_bytes);
|
