summaryrefslogtreecommitdiff
path: root/tests/basics/class_use_other.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-11-27 15:00:32 +1100
committerDamien George <damien@micropython.org>2025-11-29 23:35:20 +1100
commit63c94fe73ed5c52d4d7ccbf4ddcc2a1e3178d21b (patch)
tree6539eae8f252f7318e0c0111423c9a3a39e365bc /tests/basics/class_use_other.py
parentf43810b1cd4142474a99df4e08d51a97eb9af00a (diff)
stm32: Fix init sequence of USB hardware and TinyUSB stack.
This commit fixes the initialization sequence for TinyUSB when enabled on the stm32 port: - Following other ports, `mp_usbd_init()` should be called just after running `boot.py`, to give the user a chance to configure USB. - Hardware initialization (via `pyb_usbd_init()`) should only occur once, the first time TinyUSB is started up. This is achieved by adding a hook to the shared TinyUSB bindings to call `pyb_usbd_init()`, and only do the hardware init if TinyUSB was not already initialized. Also, `pyb_usbd_init()` is renamed `mp_usbd_ll_init()` to make it match with the rest of the stared TinyUSB binding code. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/class_use_other.py')
0 files changed, 0 insertions, 0 deletions