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_INSTANCES 1
|
||||||
#define HAL_USBHHUB_MAX_PORTS 6
|
#define HAL_USBHHUB_MAX_PORTS 6
|
||||||
|
|
||||||
#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS 1
|
#define HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS TRUE
|
||||||
|
|
||||||
/* debug */
|
/* debug */
|
||||||
#define USBH_DEBUG_ENABLE TRUE
|
#define USBH_DEBUG_ENABLE TRUE
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
|
|
||||||
|
#if HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
|
||||||
#include "usbh/internal.h"
|
#include "usbh/internal.h"
|
||||||
#include "usbh_custom_class_example.h"
|
#include "usbh_custom_class_example.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -138,3 +140,4 @@ static void _init(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
|
|
||||||
#include "hal_usbh.h"
|
#include "hal_usbh.h"
|
||||||
|
|
||||||
#if HAL_USE_USBH
|
#if HAL_USE_USBH && HAL_USBH_USE_ADDITIONAL_CLASS_DRIVERS
|
||||||
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Driver pre-compile time settings. */
|
/* Driver pre-compile time settings. */
|
||||||
|
@ -72,8 +71,6 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
/* API goes here */
|
/* API goes here */
|
||||||
|
|
||||||
/* global initializer */
|
|
||||||
void usbhCustomInit(void);
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue