stm32/tinyusb_port: Add missing USB_HS_PHYC_PLL1_PLLSEL constants.#19201
stm32/tinyusb_port: Add missing USB_HS_PHYC_PLL1_PLLSEL constants.#19201dpgeorge wants to merge 1 commit into
Conversation
These are needed by TinyUSB's synopsys/dwc2 driver, and are not available in the current version of stm32lib used in this repository. Signed-off-by: Damien George <damien@micropython.org>
|
@andrewleech FYI |
|
Code size report: |
|
Oh whoops - is this different to the PYBD_SF6 ? I did test on that on earlier version of my PR. |
|
The SF3 has built-in USB HS PHY, whereas the SF2/SF6 require an external HS PHY (and so use USB HS in FS mode). |
|
Ah right, that makes sense. To check for similar issues I did a build of all 79 stm32 boards without TinyUSB and again clean with
PYBD_SF3 passes the no-TinyUSB build so the fix works. The +uint32_t tusb_time_millis_api(void) {
+ return mp_hal_ticks_ms();
+}
+
#endif // MICROPY_HW_ENABLE_USBDEV |
|
Thanks for testing the build. It looks like |
|
Raised #19213 for the |
Summary
Add missing constants needed by TinyUSB's synopsys/dwc2 driver. They are not available in the current version of stm32lib used in this repository.
Follow up to #18933, which accidentally broke the build of PYBD_SF3.
Testing
Built PYBD_SF3 board. Prior to this PR it would not build. Now it builds.
Note that TinyUSB isn't used by this board, but the TinyUSB files are nevertheless compiled for it.
Trade-offs and Alternatives
Could update stm32lib to have a newer STM32F7xx CMSIS, but that's a lot more work.
Generative AI
I did not use generative AI tools when creating this PR.