Skip to content

Commit bac841d

Browse files
tannewtdhalbert
authored andcommitted
atmel-samd: Fix CDC by making sure we define (adafruit#294)
CONF_USB_COMPOSITE_CDC_ACM_EN before including ASF4 files.
1 parent 0bbb7a8 commit bac841d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atmel-samd/usb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
#include <stdint.h>
3030

31+
// We must include this early because it sets values used in the ASF4 includes
32+
// below.
33+
#include "py/mpconfig.h"
34+
3135
#include "hal/include/hal_gpio.h"
3236
#include "usb/class/cdc/device/cdcdf_acm.h"
3337
// #include "hiddf_mouse.h"

0 commit comments

Comments
 (0)