Skip to content

Commit

Permalink
boards: enable tinyUSB feature
Browse files Browse the repository at this point in the history
Enables the `tinyusb_device` for boards with only one USB interface, where `highlevel_stdio` uses the USBUS CDC ACM interface so far. If any `tinyusb_device` class is enabled the `highlevel_stdio` uses now `stdio_tinyusb_cdc_acm` instead of the USBUS `stdio_cdc_acm`. Therefore, the `tinyusb_device` feature can be enabled now for such boards.
  • Loading branch information
gschorcht committed Dec 8, 2022
1 parent b2c855a commit b2a2e05
Show file tree
Hide file tree
Showing 40 changed files with 53 additions and 5 deletions.
1 change: 1 addition & 0 deletions boards/adafruit-clue/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_ADAFRUIT_CLUE
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_APDS9960
select HAVE_BMP280_I2C
Expand Down
1 change: 1 addition & 0 deletions boards/adafruit-clue/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/adafruit-itsybitsy-m4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config BOARD_ADAFRUIT_ITSYBITSY_M4
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_TINYUSB_DEVICE
select HAVE_SAUL_GPIO

select HAVE_MTD_SPI_NOR
Expand Down
5 changes: 4 additions & 1 deletion boards/adafruit-itsybitsy-m4/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CPU = samd5x
CPU_MODEL = samd51g19a

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_dac
FEATURES_PROVIDED += periph_i2c
Expand All @@ -13,3 +12,7 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/adafruit-itsybitsy-nrf52/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_ADAFRUIT_ITSYBITSY_NRF52
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/adafruit-itsybitsy-nrf52/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/adafruit-pybadge/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config BOARD_ADAFRUIT_PYBADGE
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_TINYUSB_DEVICE

select HAVE_ST7735
select HAVE_SAUL_GPIO
Expand Down
5 changes: 4 additions & 1 deletion boards/adafruit-pybadge/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CPU = samd5x
CPU_MODEL = samd51j19a

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_dac
FEATURES_PROVIDED += periph_i2c
Expand All @@ -13,3 +12,7 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/arduino-nano-33-ble/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_ARDUINO_NANO_33_BLE
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/arduino-nano-33-ble/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/arduino-nano-33-iot/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config BOARD_ARDUINO_NANO_33_IOT
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/arduino-nano-33-iot/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ FEATURES_PROVIDED += periph_usbdev

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/bastwan/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config BOARD_BASTWAN
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO
select HAVE_SX1276
1 change: 1 addition & 0 deletions boards/bastwan/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/common/arduino-mkr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config BOARD_COMMON_ARDUINO_MKR
select HAS_ARDUINO
select HAS_ARDUINO_PWM
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/common/arduino-mkr/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ FEATURES_PROVIDED += periph_usbdev
FEATURES_PROVIDED += arduino
FEATURES_PROVIDED += arduino_pwm
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/common/blxxxpill/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config BOARD_COMMON_BLXXXPILL
select HAS_PERIPH_QDEC
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT
select HAS_TINYUSB_DEVICE

# Clock configuration
select BOARD_HAS_HSE
Expand Down
1 change: 1 addition & 0 deletions boards/common/blxxxpill/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ FEATURES_PROVIDED += periph_usbdev

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/common/particle-mesh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ config BOARD_COMMON_PARTICLE_MESH
select HAS_PERIPH_UART_HW_FC
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE
select HAS_VDD_LC_FILTER_REG1

select HAVE_SAUL_GPIO
Expand Down
1 change: 1 addition & 0 deletions boards/common/particle-mesh/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ FEATURES_PROVIDED += vdd_lc_filter_reg1

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/common/sodaq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config BOARD_COMMON_SODAQ
select HAS_PERIPH_USBDEV
select HAS_ARDUINO
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/common/sodaq/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ FEATURES_PROVIDED += periph_usbdev
# Various other features (if any)
FEATURES_PROVIDED += arduino
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/common/weact-f4x1cx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_COMMON_WEACT_F4X1CX
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

# Clock configuration
select BOARD_HAS_HSE
Expand Down
1 change: 1 addition & 0 deletions boards/common/weact-f4x1cx/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

# This configuration enables modules that are only available when using Kconfig
# module modelling
Expand Down
1 change: 1 addition & 0 deletions boards/feather-m0/Kconfig.feather-m0-base
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config BOARD_FEATHER_M0_BASE
select HAS_PERIPH_USBDEV
select HAS_ARDUINO
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/feather-m0/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ FEATURES_PROVIDED += periph_usbdev
# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += arduino
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/feather-nrf52840/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_FEATHER_NRF52840
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/feather-nrf52840/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/nrf52840-mdk-dongle/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config BOARD_NRF52840_MDK_DONGLE
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO
select HAVE_SAUL_PWM
Expand Down
1 change: 1 addition & 0 deletions boards/nrf52840-mdk-dongle/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/nrf52840dongle/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config BOARD_NRF52840DONGLE
select HAS_PERIPH_SPI
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE
select HAS_VDD_LC_FILTER_REG0
select HAS_VDD_LC_FILTER_REG1

Expand Down
1 change: 1 addition & 0 deletions boards/nrf52840dongle/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ FEATURES_PROVIDED += vdd_lc_filter_reg1

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device

include $(RIOTBOARD)/common/nrf52/Makefile.features
1 change: 1 addition & 0 deletions boards/seeeduino_xiao/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ config BOARD_SEEEDUINO_XIAO
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
5 changes: 4 additions & 1 deletion boards/seeeduino_xiao/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CPU = samd21
CPU_MODEL = samd21g18a

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtc
Expand All @@ -11,3 +10,7 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/sensebox_samd21/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ config BOARD_SENSEBOX_SAMD21
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_HIGHLEVEL_STDIO
select HAS_TINYUSB_DEVICE

select HAVE_SAUL_GPIO

Expand Down
1 change: 1 addition & 0 deletions boards/sensebox_samd21/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ FEATURES_PROVIDED += periph_usbdev

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/serpente/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ config BOARD_SERPENTE
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_TINYUSB_DEVICE

select HAVE_MTD_SPI_NOR
select HAVE_SAUL_PWM
Expand Down
5 changes: 4 additions & 1 deletion boards/serpente/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CPU = samd21
CPU_MODEL = samd21e18a

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_pwm
Expand All @@ -12,3 +11,7 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev

# Various other features (if any)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += tinyusb_device
1 change: 1 addition & 0 deletions boards/yarm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ config BOARD_YARM
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAS_RIOTBOOT
select HAS_TINYUSB_DEVICE
3 changes: 2 additions & 1 deletion boards/yarm/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CPU = saml21
CPU_MODEL = saml21j18b

# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtc
Expand All @@ -13,4 +12,6 @@ FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev

# Put other features for this board (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += riotboot
FEATURES_PROVIDED += tinyusb_device

0 comments on commit b2a2e05

Please sign in to comment.