Fix SPI comments, clean up U20 pins (#14700)

This commit is contained in:
Tanguy Pruvot
2019-07-22 03:23:41 +02:00
committed by Scott Lahteine
parent 7501e40e0b
commit dca0c3d02a
3 changed files with 32 additions and 34 deletions

View File

@ -80,8 +80,8 @@ void spiBegin() {
*/
void spiInit(uint8_t spiRate) {
/**
* STM32F1 APB1 = 36MHz, APB2 = 72MHz, max SPI speed of this MCU if 18Mhz
* STM32F1 has 3 SPI ports, SPI1 in APB1, SPI2/SPI3 in APB2
* STM32F1 APB2 = 72MHz, APB1 = 36MHz, max SPI speed of this MCU if 18Mhz
* STM32F1 has 3 SPI ports, SPI1 in APB2, SPI2/SPI3 in APB1
* so the minimum prescale of SPI1 is DIV4, SPI2/SPI3 is DIV2
*/
#if SPI_DEVICE == 1