SAMV7 USB: Add some warnings to avoid certain bad configuration selections

This commit is contained in:
Gregory Nutt
2015-12-02 05:30:10 -06:00
parent 754aace61b
commit 6734c91a05
+8
View File
@@ -96,6 +96,14 @@
# define CONFIG_SAMV7_USBDEVHS_NDTDS 8
#endif
#if defined(CONFIG_USBDEV_DUALSPEED) && defined(CONFIG_SAMV7_USBDEVHS_LOWPOWER)
# error CONFIG_USBDEV_DUALSPEED must not be defined with full-speed only support
#endif
#if !defined(CONFIG_USBDEV_DUALSPEED) && !defined(CONFIG_SAMV7_USBDEVHS_LOWPOWER)
# warning CONFIG_USBDEV_DUALSPEED should be defined for high speed support
#endif
/* Extremely detailed register debug that you would normally never want
* enabled.
*/