mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
SAMV7 USB: Add some warnings to avoid certain bad configuration selections
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user