Skip to content

Commit

Permalink
Merge pull request apache#3090 from vrahane/vipul/tinyusb_sysinit_fixes_
Browse files Browse the repository at this point in the history
hw/usb/tinyusb: usb cdc console and tinyusb library sysinit before console uses it
  • Loading branch information
vrahane authored Oct 9, 2023
2 parents 5d5ec43 + 1050fae commit f0152ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/usb/tinyusb/cdc_console/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ pkg.deps:
- "@apache-mynewt-core/hw/usb/tinyusb/cdc"

pkg.init:
usb_cdc_console_pkg_init: 'MYNEWT_VAL(CONSOLE_SYSINIT_STAGE)'
usb_cdc_console_pkg_init: 'MYNEWT_VAL(CONSOLE_USB_CDC_SYSINIT_STAGE)'
7 changes: 7 additions & 0 deletions hw/usb/tinyusb/cdc_console/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ syscfg.defs:
syscfg.vals:
USBD_CDC_CONSOLE: 1

syscfg.defs:
CONSOLE_USB_CDC_SYSINIT_STAGE:
description: >
Initialize USB CDC Console at the specified sysinit level
value: 502

syscfg.restrictions:
- "USBD_CDC_CONSOLE"
- CONSOLE_USB_CDC_SYSINIT_STAGE > USBD_SYSINIT_STAGE

0 comments on commit f0152ae

Please sign in to comment.