arch/stm32/stm32.h: do not include stm32_usbdev.h if not supported

This commit is contained in:
raiden00pl 2023-03-24 14:52:37 +01:00 committed by David Sidrane
parent 68f6fb2edd
commit 2ddc96ff66
6 changed files with 8 additions and 4 deletions

View File

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

View File

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

View File

@ -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))
/****************************************************************************

View File

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

View File

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

View File

@ -30,6 +30,7 @@
#include <debug.h>
#include "stm32_otgfs.h"
#include "stm32_gpio.h"
#include "clicker2-stm32.h"
#ifdef CONFIG_STM32_OTGFS