USBH: Cleanup example for out-of-tree driver
This commit is contained in:
parent
025ca5345a
commit
89ecbb7daa
|
@ -141,7 +141,7 @@
|
|||
#define HAL_USBHHUB_MAX_INSTANCES 1
|
||||
#define HAL_USBHHUB_MAX_PORTS 6
|
||||
|
||||
#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS 1
|
||||
#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS TRUE
|
||||
|
||||
/* debug */
|
||||
#define USBH_DEBUG_ENABLE TRUE
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
|
||||
#if HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
|
||||
#include "usbh/internal.h"
|
||||
#include "usbh_custom_class_example.h"
|
||||
#include <string.h>
|
||||
|
@ -138,3 +140,4 @@ static void _init(void) {
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
|
||||
#include "hal_usbh.h"
|
||||
|
||||
#if HAL_USE_USBH
|
||||
|
||||
#if HAL_USE_USBH && HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver pre-compile time settings. */
|
||||
|
@ -72,8 +71,6 @@ extern "C" {
|
|||
#endif
|
||||
/* API goes here */
|
||||
|
||||
/* global initializer */
|
||||
void usbhCustomInit(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue