diff options
| author | hathach <[email protected]> | 2014-04-18 14:45:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-18 14:45:21 +0700 |
| commit | 4091ddc4fc31da1b0c33538145e59df4ea9b6d51 (patch) | |
| tree | 1bd2d5a227120021c810829723daaaa3ceac05cd /tinyusb/host | |
| parent | 6aecb62be2af8889d82f2cd3cee0fd794c353338 (diff) | |
move osal_queue_send of osal_none to osal_none.c
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 1 | ||||
| -rw-r--r-- | tinyusb/host/ehci/ehci.h | 2 | ||||
| -rw-r--r-- | tinyusb/host/usbh.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index cd50c64f5..2e2ce1001 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -549,7 +549,6 @@ static void port_connect_status_change_isr(uint8_t hostid) }else // device unplugged
{
usbh_hcd_rhport_unplugged_isr(hostid);
-// regs->usb_cmd_bit.advacne_async = 1; // Async doorbell check EHCI 4.8.2 for operational details
}
}
diff --git a/tinyusb/host/ehci/ehci.h b/tinyusb/host/ehci/ehci.h index 5c60dd8de..0c37fba97 100644 --- a/tinyusb/host/ehci/ehci.h +++ b/tinyusb/host/ehci/ehci.h @@ -153,7 +153,7 @@ typedef struct { STATIC_ASSERT( sizeof(ehci_qtd_t) == 32, "size is not correct" ); /// Queue Head (section 3.6) -typedef struct { +typedef struct ATTR_ALIGNED(32) { /// Word 0: Queue Head Horizontal Link Pointer ehci_link_t next; diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index 1e61cbf18..542f6d5bf 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -112,7 +112,7 @@ enum { ENUM_QUEUE_DEPTH = 8 }; OSAL_TASK_DEF(usbh_enumeration_task, 200, TUSB_CFG_OS_TASK_PRIO);
OSAL_QUEUE_DEF(enum_queue_def, ENUM_QUEUE_DEPTH, uint32_t);
-static osal_queue_handle_t enum_queue_hdl;
+STATIC_VAR osal_queue_handle_t enum_queue_hdl;
TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) STATIC_VAR uint8_t enum_data_buffer[TUSB_CFG_HOST_ENUM_BUFFER_SIZE];
//------------- Reporter Task Data -------------//
|
