diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2017-09-29 13:03:05 -0700 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2017-09-29 16:03:05 -0400 |
| commit | bac841df61b30879d18517358dc649ae70934ee6 (patch) | |
| tree | 2929efd35055d19fdfe8655ba700f4f34b858b4d | |
| parent | 0bbb7a8199db3f75cbd1f6151c011cad8fc85071 (diff) | |
atmel-samd: Fix CDC by making sure we define (#294)
CONF_USB_COMPOSITE_CDC_ACM_EN before including ASF4 files.
| -rw-r--r-- | atmel-samd/usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/atmel-samd/usb.c b/atmel-samd/usb.c index e812283b9..8d7870a2a 100644 --- a/atmel-samd/usb.c +++ b/atmel-samd/usb.c @@ -28,6 +28,10 @@ #include <stdint.h> +// We must include this early because it sets values used in the ASF4 includes +// below. +#include "py/mpconfig.h" + #include "hal/include/hal_gpio.h" #include "usb/class/cdc/device/cdcdf_acm.h" // #include "hiddf_mouse.h" |
