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

Add support for STM32L100C Discovery board #2

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Conversation

Ko-
Copy link
Contributor

@Ko- Ko- commented Oct 8, 2020

Hi, this is what I used to make it work on the STM32L100C Dicovery board with a STM32L100RCT6 core.

GPIO_OSPEED_100MHZ is not defined in libopencm3/stm32/l1/gpio.h, so I switched that to GPIO_OSPEED_40MHZ.

Currently it uses the PLL clock at 16 MHz, which is really the CLOCK_BENCHMARK case. You might want to add a CLOCK_FAST if desired and perhaps refactor this a bit to combine code with the STM32F2 case.

@dsprenkels dsprenkels self-requested a review October 9, 2020 08:20
Copy link
Contributor

@dsprenkels dsprenkels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsprenkels dsprenkels merged commit fa52f69 into master Oct 9, 2020
@dsprenkels
Copy link
Contributor

At this point I don't have a STM32L100C available to test this, but the code looks good to me. 👍

Thank you!

@dsprenkels
Copy link
Contributor

@Ko- Are you participating in Hacktoberfest? Would you like me to slap a hacktoberfest-accepted label on this?

@Ko- Ko- deleted the stm32l100rct6 branch October 9, 2020 18:36
@Ko-
Copy link
Contributor Author

Ko- commented Oct 9, 2020

Not really, I don't think I will make it to 4 PRs in participating repositories, but thanks!

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.

2 participants