File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,21 +180,21 @@ static usbh_class_driver_t const usbh_class_drivers[] =
180180 #endif
181181};
182182
183- enum { USBH_BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE (usbh_class_drivers ) };
183+ enum { BUILTIN_DRIVER_COUNT = TU_ARRAY_SIZE (usbh_class_drivers ) };
184184enum { CONFIG_NUM = 1 }; // default to use configuration 1
185185
186186// Additional class drivers implemented by application
187187tu_static usbh_class_driver_t const * _app_driver = NULL ;
188188tu_static uint8_t _app_driver_count = 0 ;
189189
190- #define TOTAL_DRIVER_COUNT (_app_driver_count + USBH_BUILTIN_DRIVER_COUNT )
190+ #define TOTAL_DRIVER_COUNT (_app_driver_count + BUILTIN_DRIVER_COUNT )
191191
192192static inline usbh_class_driver_t const * get_driver (uint8_t drv_id ) {
193193 usbh_class_driver_t const * driver = NULL ;
194194
195195 if ( drv_id < _app_driver_count ) {
196196 driver = & _app_driver [drv_id ];
197- } else if ( drv_id < TOTAL_DRIVER_COUNT && USBH_BUILTIN_DRIVER_COUNT > 0 ) {
197+ } else if ( drv_id < TOTAL_DRIVER_COUNT && BUILTIN_DRIVER_COUNT > 0 ) {
198198 driver = & usbh_class_drivers [drv_id - _app_driver_count ];
199199 }
200200
You can’t perform that action at this time.
0 commit comments