aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/usbserial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-31 23:37:17 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-04-04 18:29:31 -0400
commitbc9fd03dabc38ae55fae3151e94cffe7157b95bd (patch)
treebee1984f5afd76e6c4d9e013d8984076dd90e422 /src/atsamd/usbserial.c
parent7e8ecfe177945e10a1e4adaac64c1d803e9405ff (diff)
downloadkutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.tar.gz
kutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.tar.xz
kutter-bc9fd03dabc38ae55fae3151e94cffe7157b95bd.zip
atsamd: Use enumerations for buses and reserve pins
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/usbserial.c')
-rw-r--r--src/atsamd/usbserial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/atsamd/usbserial.c b/src/atsamd/usbserial.c
index 6b7e46b6..5e201d1e 100644
--- a/src/atsamd/usbserial.c
+++ b/src/atsamd/usbserial.c
@@ -10,6 +10,7 @@
#include "board/irq.h" // irq_disable
#include "board/usb_cdc.h" // usb_notify_ep0
#include "board/usb_cdc_ep.h" // USB_CDC_EP_BULK_IN
+#include "command.h" // DECL_CONSTANT_STR
#include "internal.h" // enable_pclock
#include "sched.h" // DECL_INIT
@@ -184,6 +185,8 @@ usb_request_bootloader(void)
NVIC_SystemReset();
}
+DECL_CONSTANT_STR("RESERVE_PINS_USB", "PA24,PA25");
+
void
usbserial_init(void)
{