Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable USB for STM32L0 #2968

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Enable USB for STM32L0 #2968

merged 3 commits into from
Apr 3, 2023

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Mar 31, 2023

This PR:

  • modifies clock configuration to use USB with HSI16
  • fixes some copy/paste descriptions of syscfg definitions
  • add configuration package so TinyUSB can be used with STM32L0 boards

Added option to have HSI16 divided by 4 (needed to
run USB (48MHz) and sysclk at 32MHz).
AHB/APB divider descriptions incorrectly suggested that
clock can be 64MHz while 32MHz iz max
PLL settings are now changed to generate 48MHz clock
usable for USB without need for HSI48.
TinyUSB uses same driver for STM32L0 as for STM32F1 but there
are differences in interrupts and power settings that call
for separate package.
@kasjer kasjer merged commit 87bdcaf into apache:master Apr 3, 2023
@kasjer kasjer deleted the kasjer/stm32l0-usb branch April 3, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants