diff options
| author | hathach <[email protected]> | 2019-11-22 00:32:49 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-22 00:33:10 +0700 |
| commit | 03deeea4655dc3cb39011397254f8dc6b5c9383f (patch) | |
| tree | 7f29da43515f7cf2daa895fef15455160527930c /src/host | |
| parent | f5d737aa7ec6abde5738d29510c8416d5e8b17e7 (diff) | |
fix segger host example
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/ehci/ehci.c | 2 | ||||
| -rw-r--r-- | src/host/hcd.h | 1 | ||||
| -rw-r--r-- | src/host/usbh.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/host/ehci/ehci.c b/src/host/ehci/ehci.c index 04ee5c5ce..18123a497 100644 --- a/src/host/ehci/ehci.c +++ b/src/host/ehci/ehci.c @@ -170,7 +170,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr) list_remove_qhd_by_addr( (ehci_link_t*) qhd_async_head(rhport), dev_addr );
// Remove from all interval period list
- for(uint8_t i = 0; i < TU_ARRAY_SZIE(ehci_data.period_head_arr); i++)
+ for(uint8_t i = 0; i < TU_ARRAY_SIZE(ehci_data.period_head_arr); i++)
{
list_remove_qhd_by_addr( (ehci_link_t*) &ehci_data.period_head_arr[i], dev_addr);
}
diff --git a/src/host/hcd.h b/src/host/hcd.h index 86e7d664b..97dc3ebfd 100644 --- a/src/host/hcd.h +++ b/src/host/hcd.h @@ -87,6 +87,7 @@ enum { // HCD API
//--------------------------------------------------------------------+
bool hcd_init(void);
+void hcd_isr(uint8_t hostid);
void hcd_int_enable (uint8_t rhport);
void hcd_int_disable(uint8_t rhport);
diff --git a/src/host/usbh.c b/src/host/usbh.c index 42a99f3d2..9e1861f87 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -95,7 +95,7 @@ static host_class_driver_t const usbh_class_drivers[] = #endif
};
-enum { USBH_CLASS_DRIVER_COUNT = TU_ARRAY_SZIE(usbh_class_drivers) };
+enum { USBH_CLASS_DRIVER_COUNT = TU_ARRAY_SIZE(usbh_class_drivers) };
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
|
