summaryrefslogtreecommitdiff
path: root/py/compile.c
diff options
context:
space:
mode:
authorhahmadi <seemefirst@gmail.com>2019-09-21 13:30:19 -0400
committerDamien George <damien.p.george@gmail.com>2019-10-04 16:09:06 +1000
commit266146ad643b408a307676e320ffb22e0fe1e0ad (patch)
tree44cf919c33a6f2f0c3d29db18049fffc77fcef83 /py/compile.c
parenta069340c1ee14fe5e956e38aa4482f526145d7d3 (diff)
stm32/system_stm32: Support selection of HSE and LSI on L4 MCUs.
This commit adds the option to use HSE or MSI system clock, and LSE or LSI RTC clock, on L4 MCUs. Note that prior to this commit the default clocks on an L4 part were MSI and LSE. The defaults are now MSI and LSI. In mpconfigboard.h select the clock source via: #define MICROPY_HW_RTC_USE_LSE (0) or (1) #define MICROPY_HW_CLK_USE_HSE (0) or (1) and the PLLSAI1 N,P,Q,R settings: #define MICROPY_HW_CLK_PLLSAIN (12) #define MICROPY_HW_CLK_PLLSAIP (RCC_PLLP_DIV7) #define MICROPY_HW_CLK_PLLSAIQ (RCC_PLLQ_DIV2) #define MICROPY_HW_CLK_PLLSAIR (RCC_PLLR_DIV2)
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions