mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
f4729c28ec
With only 8 possible prescalers, we can just loop over the values and shift the clock. In addition to being much easier to read, using shifts over divisions can be a lot faster on CPUs without hardware division. In addition an `assert()` is added that checks if the API contract regarding the SPI frequency is honored. If the requested clock is too low to be generated, we should rather have a blown assertion than hard to trace communication errors. Finally, the term prescaler is used instead of divider, as divider may imply that the frequency is divided by the given value n, but in fact is divided by 2^(n+1). |
||
---|---|---|
.. | ||
bootloader | ||
dist | ||
include | ||
kconfigs | ||
lcd_fmc | ||
ldscripts | ||
periph | ||
stmclk | ||
vectors | ||
cpu_common.c | ||
cpu_init.c | ||
doc.txt | ||
Kconfig | ||
Makefile | ||
Makefile.cmsis | ||
Makefile.default | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
stm32_info.mk | ||
stm32_line.mk | ||
stm32_mem_lengths.mk | ||
stm32_riotboot.mk | ||
stm32.config |