atmel-samd: Fix CDC by making sure we define (#294)

CONF_USB_COMPOSITE_CDC_ACM_EN before including ASF4 files.
This commit is contained in:
Scott Shawcroft 2017-09-29 13:03:05 -07:00 committed by Dan Halbert
parent 0bbb7a8199
commit bac841df61
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@
#include <stdint.h> #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 "hal/include/hal_gpio.h"
#include "usb/class/cdc/device/cdcdf_acm.h" #include "usb/class/cdc/device/cdcdf_acm.h"
// #include "hiddf_mouse.h" // #include "hiddf_mouse.h"