summaryrefslogtreecommitdiff
path: root/py/binary.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-11 16:42:57 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-11 16:42:57 +1000
commit47550ef2cd4add384781c390ac8073beb71be1a1 (patch)
treeecd9f728f1ee1b0f67af382c84e6c777a6ea8e6c /py/binary.c
parentf2de9d60f7dbe91d9c92ebc8df3136403d9b7938 (diff)
stm32: For MCUs that have PLLSAI allow to set SYSCLK at 2MHz increments.
MCUs that have a PLLSAI can use it to generate a 48MHz clock for USB, SDIO and RNG peripherals. In such cases the SYSCLK is not restricted to values that allow the system PLL to generate 48MHz, but can be any frequency. This patch allows such configurability for F7 MCUs, allowing the SYSCLK to be set in 2MHz increments via machine.freq(). PLLSAI will only be enabled if needed, and consumes about 1mA extra. This fine grained control of frequency is useful to get accurate SPI baudrates, for example.
Diffstat (limited to 'py/binary.c')
0 files changed, 0 insertions, 0 deletions