From 990feeec391ea1ac0546254d2e7424396c75ba56 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 14 Sep 2022 09:29:48 +0200 Subject: [PATCH] boards: enable feature tinyusb_device for STM32 boards --- boards/b-l475e-iot01a/Kconfig | 1 + boards/b-l475e-iot01a/Makefile.features | 1 + boards/common/weact-f4x1cx/Kconfig | 3 +++ boards/common/weact-f4x1cx/Makefile.features | 1 + boards/nucleo-f207zg/Kconfig | 2 ++ boards/nucleo-f207zg/Makefile.features | 1 + boards/nucleo-f412zg/Kconfig | 3 +++ boards/nucleo-f412zg/Makefile.features | 3 +++ boards/nucleo-f413zh/Kconfig | 3 +++ boards/nucleo-f413zh/Makefile.features | 3 +++ boards/nucleo-f429zi/Kconfig | 3 +++ boards/nucleo-f429zi/Makefile.features | 3 +++ boards/nucleo-f439zi/Kconfig | 3 +++ boards/nucleo-f439zi/Makefile.features | 3 +++ boards/nucleo-f446ze/Kconfig | 3 +++ boards/nucleo-f446ze/Makefile.features | 3 +++ boards/nucleo-f722ze/Kconfig | 1 + boards/nucleo-f722ze/Makefile.features | 1 + boards/nucleo-f746zg/Kconfig | 1 + boards/nucleo-f746zg/Makefile.features | 1 + boards/nucleo-f767zi/Kconfig | 1 + boards/nucleo-f767zi/Makefile.features | 1 + boards/nucleo-l496zg/Kconfig | 1 + boards/nucleo-l496zg/Makefile.features | 1 + boards/nucleo-l4r5zi/Kconfig | 1 + boards/nucleo-l4r5zi/Makefile.features | 1 + boards/p-l496g-cell02/Kconfig | 1 + boards/p-l496g-cell02/Makefile.features | 1 + boards/pyboard/Kconfig | 3 +++ boards/pyboard/Makefile.features | 3 +++ boards/stm32f429i-disc1/Kconfig | 1 + boards/stm32f429i-disc1/Makefile.features | 1 + boards/stm32f429i-disc1/include/periph_conf.h | 16 ++++++++++++++++ boards/stm32f469i-disco/Kconfig | 3 +++ boards/stm32f469i-disco/Makefile.features | 3 +++ boards/stm32f4discovery/Kconfig | 1 + boards/stm32f4discovery/Makefile.features | 1 + boards/stm32f723e-disco/Kconfig | 3 +++ boards/stm32f723e-disco/Makefile.features | 3 +++ boards/stm32f769i-disco/Kconfig | 3 +++ boards/stm32f769i-disco/Makefile.features | 3 +++ boards/stm32l476g-disco/Kconfig | 1 + boards/stm32l476g-disco/Makefile.features | 1 + 43 files changed, 97 insertions(+) diff --git a/boards/b-l475e-iot01a/Kconfig b/boards/b-l475e-iot01a/Kconfig index 83b1d863d7..00e61e932f 100644 --- a/boards/b-l475e-iot01a/Kconfig +++ b/boards/b-l475e-iot01a/Kconfig @@ -26,6 +26,7 @@ config BOARD_B_L475E_IOT01A # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE # Clock configuration select BOARD_HAS_LSE diff --git a/boards/b-l475e-iot01a/Makefile.features b/boards/b-l475e-iot01a/Makefile.features index ae95e240aa..1e361a74a2 100644 --- a/boards/b-l475e-iot01a/Makefile.features +++ b/boards/b-l475e-iot01a/Makefile.features @@ -14,3 +14,4 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device diff --git a/boards/common/weact-f4x1cx/Kconfig b/boards/common/weact-f4x1cx/Kconfig index 38f86150a0..77fd5fca62 100644 --- a/boards/common/weact-f4x1cx/Kconfig +++ b/boards/common/weact-f4x1cx/Kconfig @@ -18,6 +18,9 @@ config BOARD_COMMON_WEACT_F4X1CX select HAS_PERIPH_USBDEV select HAS_HIGHLEVEL_STDIO + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/common/weact-f4x1cx/Makefile.features b/boards/common/weact-f4x1cx/Makefile.features index 66250c5a64..6a2f08acda 100644 --- a/boards/common/weact-f4x1cx/Makefile.features +++ b/boards/common/weact-f4x1cx/Makefile.features @@ -12,6 +12,7 @@ FEATURES_PROVIDED += periph_usbdev # Various other features (if any) FEATURES_PROVIDED += highlevel_stdio +FEATURES_PROVIDED += tinyusb_device # weact-f4x1cx boards provide a custom default Kconfig clock configuration KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/common/weact-f4x1cx/clock.config diff --git a/boards/nucleo-f207zg/Kconfig b/boards/nucleo-f207zg/Kconfig index 76e72f8595..56b9c997b2 100644 --- a/boards/nucleo-f207zg/Kconfig +++ b/boards/nucleo-f207zg/Kconfig @@ -27,6 +27,8 @@ config BOARD_NUCLEO_F207ZG # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE + select HAVE_STM32_ETH source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f207zg/Makefile.features b/boards/nucleo-f207zg/Makefile.features index 1e1f728ace..be16d5ee5c 100644 --- a/boards/nucleo-f207zg/Makefile.features +++ b/boards/nucleo-f207zg/Makefile.features @@ -14,6 +14,7 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo-144 boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f412zg/Kconfig b/boards/nucleo-f412zg/Kconfig index b370bafebc..c5b945bafc 100644 --- a/boards/nucleo-f412zg/Kconfig +++ b/boards/nucleo-f412zg/Kconfig @@ -25,4 +25,7 @@ config BOARD_NUCLEO_F412ZG select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f412zg/Makefile.features b/boards/nucleo-f412zg/Makefile.features index af1b6b7a1e..d13fc84eb5 100644 --- a/boards/nucleo-f412zg/Makefile.features +++ b/boards/nucleo-f412zg/Makefile.features @@ -12,5 +12,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # load the common Makefile.features for Nucleo-144 boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f413zh/Kconfig b/boards/nucleo-f413zh/Kconfig index a2343df2c8..8ec9fd7a34 100644 --- a/boards/nucleo-f413zh/Kconfig +++ b/boards/nucleo-f413zh/Kconfig @@ -28,4 +28,7 @@ config BOARD_NUCLEO_F413ZH select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f413zh/Makefile.features b/boards/nucleo-f413zh/Makefile.features index 8af0aedecb..409cd4e609 100644 --- a/boards/nucleo-f413zh/Makefile.features +++ b/boards/nucleo-f413zh/Makefile.features @@ -14,5 +14,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f429zi/Kconfig b/boards/nucleo-f429zi/Kconfig index 6180a1b3ed..b6d4ab11a6 100644 --- a/boards/nucleo-f429zi/Kconfig +++ b/boards/nucleo-f429zi/Kconfig @@ -26,4 +26,7 @@ config BOARD_NUCLEO_F429ZI select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f429zi/Makefile.features b/boards/nucleo-f429zi/Makefile.features index 9e973c9028..92e2f945a8 100644 --- a/boards/nucleo-f429zi/Makefile.features +++ b/boards/nucleo-f429zi/Makefile.features @@ -13,5 +13,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f439zi/Kconfig b/boards/nucleo-f439zi/Kconfig index 15c750eb73..9e06fe4b99 100644 --- a/boards/nucleo-f439zi/Kconfig +++ b/boards/nucleo-f439zi/Kconfig @@ -25,4 +25,7 @@ config BOARD_NUCLEO_F439ZI select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f439zi/Makefile.features b/boards/nucleo-f439zi/Makefile.features index fffc0ad652..8abb89362d 100644 --- a/boards/nucleo-f439zi/Makefile.features +++ b/boards/nucleo-f439zi/Makefile.features @@ -12,5 +12,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f446ze/Kconfig b/boards/nucleo-f446ze/Kconfig index e50f161c08..e7e3349547 100644 --- a/boards/nucleo-f446ze/Kconfig +++ b/boards/nucleo-f446ze/Kconfig @@ -26,4 +26,7 @@ config BOARD_NUCLEO_F446ZE select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f446ze/Makefile.features b/boards/nucleo-f446ze/Makefile.features index 484ad9d961..a3961b87e2 100644 --- a/boards/nucleo-f446ze/Makefile.features +++ b/boards/nucleo-f446ze/Makefile.features @@ -13,5 +13,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f722ze/Kconfig b/boards/nucleo-f722ze/Kconfig index a6d9b19328..9c943162b2 100644 --- a/boards/nucleo-f722ze/Kconfig +++ b/boards/nucleo-f722ze/Kconfig @@ -25,5 +25,6 @@ config BOARD_NUCLEO_F722ZE # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f722ze/Makefile.features b/boards/nucleo-f722ze/Makefile.features index 87f80e5c15..aa05bafc46 100644 --- a/boards/nucleo-f722ze/Makefile.features +++ b/boards/nucleo-f722ze/Makefile.features @@ -12,6 +12,7 @@ FEATURES_PROVIDED += periph_can # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo144 boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f746zg/Kconfig b/boards/nucleo-f746zg/Kconfig index a533c9f345..503ec45187 100644 --- a/boards/nucleo-f746zg/Kconfig +++ b/boards/nucleo-f746zg/Kconfig @@ -28,6 +28,7 @@ config BOARD_NUCLEO_F746ZG # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE select HAVE_STM32_ETH source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f746zg/Makefile.features b/boards/nucleo-f746zg/Makefile.features index 1eddc8d8c2..aef40ecaff 100644 --- a/boards/nucleo-f746zg/Makefile.features +++ b/boards/nucleo-f746zg/Makefile.features @@ -15,6 +15,7 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-f767zi/Kconfig b/boards/nucleo-f767zi/Kconfig index a7d9d3b707..5a68db3efd 100644 --- a/boards/nucleo-f767zi/Kconfig +++ b/boards/nucleo-f767zi/Kconfig @@ -34,6 +34,7 @@ config BOARD_NUCLEO_F767ZI # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE select HAVE_STM32_ETH source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f767zi/Makefile.features b/boards/nucleo-f767zi/Makefile.features index e72a424755..94380f44bd 100644 --- a/boards/nucleo-f767zi/Makefile.features +++ b/boards/nucleo-f767zi/Makefile.features @@ -21,6 +21,7 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-l496zg/Kconfig b/boards/nucleo-l496zg/Kconfig index cf75250409..1b7b45d8d5 100644 --- a/boards/nucleo-l496zg/Kconfig +++ b/boards/nucleo-l496zg/Kconfig @@ -29,5 +29,6 @@ config BOARD_NUCLEO_L496ZG # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-l496zg/Makefile.features b/boards/nucleo-l496zg/Makefile.features index 3f337e6e31..5240bca884 100644 --- a/boards/nucleo-l496zg/Makefile.features +++ b/boards/nucleo-l496zg/Makefile.features @@ -13,6 +13,7 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/nucleo-l4r5zi/Kconfig b/boards/nucleo-l4r5zi/Kconfig index b45e616762..cea985e6d0 100644 --- a/boards/nucleo-l4r5zi/Kconfig +++ b/boards/nucleo-l4r5zi/Kconfig @@ -28,5 +28,6 @@ config BOARD_NUCLEO_L4R5ZI # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-l4r5zi/Makefile.features b/boards/nucleo-l4r5zi/Makefile.features index c44eef41c6..a3d3970109 100644 --- a/boards/nucleo-l4r5zi/Makefile.features +++ b/boards/nucleo-l4r5zi/Makefile.features @@ -13,6 +13,7 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device # load the common Makefile.features for Nucleo boards include $(RIOTBOARD)/common/nucleo144/Makefile.features diff --git a/boards/p-l496g-cell02/Kconfig b/boards/p-l496g-cell02/Kconfig index c69e9f1835..eb770200a2 100644 --- a/boards/p-l496g-cell02/Kconfig +++ b/boards/p-l496g-cell02/Kconfig @@ -25,6 +25,7 @@ config BOARD_P_L496G_CELL02 # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE # Clock configuration select BOARD_HAS_LSE diff --git a/boards/p-l496g-cell02/Makefile.features b/boards/p-l496g-cell02/Makefile.features index f3879710e6..ab9e9e7bfd 100644 --- a/boards/p-l496g-cell02/Makefile.features +++ b/boards/p-l496g-cell02/Makefile.features @@ -14,3 +14,4 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device diff --git a/boards/pyboard/Kconfig b/boards/pyboard/Kconfig index 4f18e33e8b..52a5e4b580 100644 --- a/boards/pyboard/Kconfig +++ b/boards/pyboard/Kconfig @@ -22,6 +22,9 @@ config BOARD_PYBOARD select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/pyboard/Makefile.features b/boards/pyboard/Makefile.features index 1237c2661e..89cc9e58ba 100644 --- a/boards/pyboard/Makefile.features +++ b/boards/pyboard/Makefile.features @@ -9,3 +9,6 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device diff --git a/boards/stm32f429i-disc1/Kconfig b/boards/stm32f429i-disc1/Kconfig index 98929a0101..bec0878951 100644 --- a/boards/stm32f429i-disc1/Kconfig +++ b/boards/stm32f429i-disc1/Kconfig @@ -23,6 +23,7 @@ config BOARD_STM32F429I_DISC1 # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE # Clock configuration select BOARD_HAS_HSE diff --git a/boards/stm32f429i-disc1/Makefile.features b/boards/stm32f429i-disc1/Makefile.features index 71c477ce08..0f69893c65 100644 --- a/boards/stm32f429i-disc1/Makefile.features +++ b/boards/stm32f429i-disc1/Makefile.features @@ -11,3 +11,4 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device diff --git a/boards/stm32f429i-disc1/include/periph_conf.h b/boards/stm32f429i-disc1/include/periph_conf.h index 0e40a84a47..47e3f7f0dd 100644 --- a/boards/stm32f429i-disc1/include/periph_conf.h +++ b/boards/stm32f429i-disc1/include/periph_conf.h @@ -34,6 +34,22 @@ #include "cfg_timer_tim5.h" #include "cfg_usb_otg_hs_fs.h" +#ifdef MODULE_TINYUSB +/** + * @brief tinyUSB device stack uses the USB OTG HS port on this board + */ +#ifndef TINYUSB_TUD_RHPORT +#define TINYUSB_TUD_RHPORT 1 +#endif /* TINYUSB_TUD_RHPORT */ + +/** + * @brief tinyUSB host stack uses the USB OTG HS port on this board + */ +#ifndef TINYUSB_TUH_RHPORT +#define TINYUSB_TUH_RHPORT 1 +#endif /* TINYUSB_TUH_RHPORT */ +#endif /* MODULE_TINYUSB */ + #ifdef __cplusplus extern "C" { #endif diff --git a/boards/stm32f469i-disco/Kconfig b/boards/stm32f469i-disco/Kconfig index 860dff6cb3..0f1197435e 100644 --- a/boards/stm32f469i-disco/Kconfig +++ b/boards/stm32f469i-disco/Kconfig @@ -18,6 +18,9 @@ config BOARD_STM32F469I_DISCO select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/stm32f469i-disco/Makefile.features b/boards/stm32f469i-disco/Makefile.features index 65ff88110c..3117b048c0 100644 --- a/boards/stm32f469i-disco/Makefile.features +++ b/boards/stm32f469i-disco/Makefile.features @@ -12,3 +12,6 @@ FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev + +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device diff --git a/boards/stm32f4discovery/Kconfig b/boards/stm32f4discovery/Kconfig index be03e78426..a79d46d756 100644 --- a/boards/stm32f4discovery/Kconfig +++ b/boards/stm32f4discovery/Kconfig @@ -27,6 +27,7 @@ config BOARD_STM32F4DISCOVERY # Various other features (if any) select HAS_ARDUINO + select HAS_TINYUSB_DEVICE # Clock configuration select BOARD_HAS_HSE diff --git a/boards/stm32f4discovery/Makefile.features b/boards/stm32f4discovery/Makefile.features index 450411cea3..a111fc95a8 100644 --- a/boards/stm32f4discovery/Makefile.features +++ b/boards/stm32f4discovery/Makefile.features @@ -15,6 +15,7 @@ FEATURES_PROVIDED += periph_usbdev # Various other features (if any) FEATURES_PROVIDED += arduino +FEATURES_PROVIDED += tinyusb_device # TODO: re-think concept for conflicts based on actual used peripherals... FEATURES_CONFLICT += periph_spi:periph_dac diff --git a/boards/stm32f723e-disco/Kconfig b/boards/stm32f723e-disco/Kconfig index 1202848358..5e3a794970 100644 --- a/boards/stm32f723e-disco/Kconfig +++ b/boards/stm32f723e-disco/Kconfig @@ -23,6 +23,9 @@ config BOARD_STM32F723E_DISCO select HAS_PERIPH_UART_HW_FC select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/stm32f723e-disco/Makefile.features b/boards/stm32f723e-disco/Makefile.features index 1149406a57..1e87f7b710 100644 --- a/boards/stm32f723e-disco/Makefile.features +++ b/boards/stm32f723e-disco/Makefile.features @@ -12,5 +12,8 @@ FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_uart_hw_fc FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # stm32f723e-disco provides a custom default Kconfig clock configuration KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/stm32f723e-disco/clock.config diff --git a/boards/stm32f769i-disco/Kconfig b/boards/stm32f769i-disco/Kconfig index 0ff75d637b..94671967f5 100644 --- a/boards/stm32f769i-disco/Kconfig +++ b/boards/stm32f769i-disco/Kconfig @@ -20,6 +20,9 @@ config BOARD_STM32F769I_DISCO select HAS_PERIPH_UART select HAS_PERIPH_USBDEV + # Put other features for this board (in alphabetical order) + select HAS_TINYUSB_DEVICE + # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/stm32f769i-disco/Makefile.features b/boards/stm32f769i-disco/Makefile.features index 7a8128e5aa..7577140b5e 100644 --- a/boards/stm32f769i-disco/Makefile.features +++ b/boards/stm32f769i-disco/Makefile.features @@ -8,5 +8,8 @@ FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += periph_usbdev +# Put other features for this board (in alphabetical order) +FEATURES_PROVIDED += tinyusb_device + # stm32f769i-disco provides a custom default Kconfig clock configuration KCONFIG_BOARD_CONFIG += $(RIOTBOARD)/stm32f769i-disco/clock.config diff --git a/boards/stm32l476g-disco/Kconfig b/boards/stm32l476g-disco/Kconfig index 448f763764..f778cbf561 100644 --- a/boards/stm32l476g-disco/Kconfig +++ b/boards/stm32l476g-disco/Kconfig @@ -22,6 +22,7 @@ config BOARD_STM32L476G_DISCO # Put other features for this board (in alphabetical order) select HAS_RIOTBOOT + select HAS_TINYUSB_DEVICE # Clock configuration select BOARD_HAS_LSE diff --git a/boards/stm32l476g-disco/Makefile.features b/boards/stm32l476g-disco/Makefile.features index 78f0a21701..8151764276 100644 --- a/boards/stm32l476g-disco/Makefile.features +++ b/boards/stm32l476g-disco/Makefile.features @@ -10,3 +10,4 @@ FEATURES_PROVIDED += periph_usbdev # Put other features for this board (in alphabetical order) FEATURES_PROVIDED += riotboot +FEATURES_PROVIDED += tinyusb_device