arch/stm32/stm32.h: do not include stm32_usbdev.h if not supported
This commit is contained in:
parent
68f6fb2edd
commit
2ddc96ff66
|
@ -57,7 +57,9 @@
|
|||
#include "stm32_i2s.h"
|
||||
#include "stm32_tim.h"
|
||||
#include "stm32_uart.h"
|
||||
#include "stm32_usbdev.h"
|
||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
||||
# include "stm32_usbdev.h"
|
||||
#endif
|
||||
#include "stm32_wdg.h"
|
||||
#include "stm32_lowputc.h"
|
||||
#include "stm32_eth.h"
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "stm32.h"
|
||||
|
||||
#include "hardware/stm32fxxxxx_otgfs.h"
|
||||
|
||||
#if defined(CONFIG_STM32_OTGFS)
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include "chip.h"
|
||||
#include "arm_internal.h"
|
||||
#include "stm32_otgfs.h"
|
||||
#include "stm32_rcc.h"
|
||||
|
||||
#if defined(CONFIG_USBDEV) && (defined(CONFIG_STM32_OTGFS))
|
||||
/****************************************************************************
|
||||
|
|
|
@ -26,10 +26,10 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "stm32.h"
|
||||
#include "hardware/stm32_otghs.h"
|
||||
|
||||
#if defined(CONFIG_STM32_OTGHS)
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include "chip.h"
|
||||
#include "arm_internal.h"
|
||||
#include "stm32_otghs.h"
|
||||
#include "stm32_rcc.h"
|
||||
|
||||
#if defined(CONFIG_USBDEV) && (defined(CONFIG_STM32_OTGHS))
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#include "stm32_otgfs.h"
|
||||
#include "stm32_gpio.h"
|
||||
#include "clicker2-stm32.h"
|
||||
|
||||
#ifdef CONFIG_STM32_OTGFS
|
||||
|
|
Loading…
Reference in New Issue