Added check to make sure USBDEV is not set with USBHOST

This commit is contained in:
Michał Łyszczek 2016-08-17 22:13:27 +02:00
parent 12e97600ee
commit bd5eb5233c
2 changed files with 7 additions and 3 deletions

View File

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

View File

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