diff options
| author | hathach <[email protected]> | 2023-08-15 22:57:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-08-15 22:57:05 +0700 |
| commit | 67a374d932cbe14bf1651bdd6fea82c2e2ecfa10 (patch) | |
| tree | 90692d83f63af9bce7769fec5cb82f4757cf6dba /src/host | |
| parent | 1b33a315365184a74a8b5bbce5fdbdfc4dfe6f69 (diff) | |
more rename
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 739157b56..7cdcbda5e 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -180,21 +180,21 @@ static usbh_class_driver_t const usbh_class_drivers[] = #endif }; -enum { USBH_BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE(usbh_class_drivers) }; +enum { BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE(usbh_class_drivers) }; enum { CONFIG_NUM = 1 }; // default to use configuration 1 // Additional class drivers implemented by application tu_static usbh_class_driver_t const * _app_driver = NULL; tu_static uint8_t _app_driver_count = 0; -#define TOTAL_DRIVER_COUNT (_app_driver_count + USBH_BUILTIN_DRIVER_COUNT) +#define TOTAL_DRIVER_COUNT (_app_driver_count + BUILTIN_DRIVER_COUNT) static inline usbh_class_driver_t const *get_driver(uint8_t drv_id) { usbh_class_driver_t const *driver = NULL; if ( drv_id < _app_driver_count ) { driver = &_app_driver[drv_id]; - } else if ( drv_id < TOTAL_DRIVER_COUNT && USBH_BUILTIN_DRIVER_COUNT > 0) { + } else if ( drv_id < TOTAL_DRIVER_COUNT && BUILTIN_DRIVER_COUNT > 0) { driver = &usbh_class_drivers[drv_id - _app_driver_count]; } |
