STM32L1 micropython port

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Jolatomme
Posts: 6
Joined: Sun Feb 03, 2019 8:37 pm

Re: STM32L1 micropython port

Post by Jolatomme » Fri Feb 22, 2019 8:08 pm

Hi Dave,
Thanks for HSE confirmation.
For system clock I got your point. Thank you for pointing this.
I noticed in Micropython 1.10 two files : system_stm32.c and system_stm32f0.c ...
The names are very explicit. I was wondering what is the best way :
1- Integrate clock configuration in system_stm32.c by using multiple #ifdef
2- Duplicate the file with an explicit name : system_stm32l1.c ... in my case. But this will lead to
plenty of system_stm32xx.c in case of several platform supported.
What would you recommend ?
Regards,
Jo.

User avatar
dhylands
Posts: 3241
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: STM32L1 micropython port

Post by dhylands » Fri Feb 22, 2019 11:22 pm

I'm going to guess that the f0 was probably different enough from the generic version that they had to create a special file. The selection takes place in the Makefile, so as to which way to go, it really depends on whether it can easily be done with the generic file or not.

Post Reply