From 7f1325e48cef69a0b3925e21eea5bb3e7dec9f58 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Thu, 24 Oct 2019 16:57:11 +0200 Subject: [PATCH] pyboard: add usbdev feature --- boards/pyboard/Makefile.features | 1 + boards/pyboard/Makefile.include | 3 +++ boards/pyboard/include/periph_conf.h | 1 + 3 files changed, 5 insertions(+) diff --git a/boards/pyboard/Makefile.features b/boards/pyboard/Makefile.features index e2a8fd95a72c..30544feeb6bd 100644 --- a/boards/pyboard/Makefile.features +++ b/boards/pyboard/Makefile.features @@ -7,3 +7,4 @@ FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += periph_usbdev diff --git a/boards/pyboard/Makefile.include b/boards/pyboard/Makefile.include index 57c0f9c07950..ec39ee098d71 100644 --- a/boards/pyboard/Makefile.include +++ b/boards/pyboard/Makefile.include @@ -1,3 +1,6 @@ +# we use shared STM32 configuration snippets +INCLUDES += -I$(RIOTBOARD)/common/stm32/include + # define the default port depending on the host OS PORT_LINUX ?= /dev/ttyUSB0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) diff --git a/boards/pyboard/include/periph_conf.h b/boards/pyboard/include/periph_conf.h index b3a265f23288..883aa2f906ba 100644 --- a/boards/pyboard/include/periph_conf.h +++ b/boards/pyboard/include/periph_conf.h @@ -22,6 +22,7 @@ #define PERIPH_CONF_H #include "periph_cpu.h" +#include "cfg_usb_otg_fs.h" #ifdef __cplusplus extern "C" {