USBH: Cleanup example for out-of-tree driver

This commit is contained in:
Diego Ismirlian 2017-07-09 18:36:07 -03:00
parent 025ca5345a
commit 89ecbb7daa
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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