mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Added check to make sure USBDEV is not set with USBHOST
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __CONFIGS_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H 1
|
||||
#define __CONFIGS_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H
|
||||
#ifndef __CONFIGS_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H
|
||||
#define __CONFIGS_STM32_BUTTERFLY2_SRC_STM32_BUTTERFLY2_H 1
|
||||
|
||||
/*****************************************************************************
|
||||
* Included Files
|
||||
|
||||
@@ -56,7 +56,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_STM32_OTGFS
|
||||
#error "CONFIG_USBHOST requires CONFIG_STM32_OTGFS to be enabled"
|
||||
# error "CONFIG_USBHOST requires CONFIG_STM32_OTGFS to be enabled"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_USBDEV
|
||||
# error "CONFIG_USBHOST cannot be set alongside CONFIG_USBDEV"
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user