1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards: enable feature tinyusb_device for STM32 boards

This commit is contained in:
Gunar Schorcht 2022-09-14 09:29:48 +02:00
parent 76848492b0
commit 990feeec39
43 changed files with 97 additions and 0 deletions

View File

@ -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

View File

@ -14,3 +14,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -14,3 +14,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -11,3 +11,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -10,3 +10,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device