Skip to content

Commit

Permalink
sys/usb_board_reset: add stdio_tinyusb_cdc_acm support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Dec 4, 2022
1 parent 6aa267c commit d390b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sys/usb_board_reset/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
config MODULE_USB_BOARD_RESET
bool "Trigger a board reset via USB CDC ACM"
depends on TEST_KCONFIG
depends on MODULE_USBUS_CDC_ACM
depends on MODULE_USBUS_CDC_ACM || MODULE_STDIO_TINYUSB_CDC_ACM
5 changes: 5 additions & 0 deletions sys/usb_board_reset/usb_board_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ int usb_board_reset_coding_cb(usbus_cdcacm_device_t *cdcacm,
uint32_t baud, uint8_t bits,
uint8_t parity, uint8_t stop)
{
/* Note: This function is also used by tinyUSB if module `usb_board_reset`
* is used. In this case no USBUS CDC ACM device is defined and parameter
* `cdcacm` is NULL. Please keep this in mind if `cdcacm` is to be used
* in future versions. */
(void)cdcacm;

(void)bits;
(void)parity;
(void)stop;
Expand Down

0 comments on commit d390b6c

Please sign in to comment.