Increased speed of the external flash SPI bus on MD-3x0 and MD-UV3x0

rtxlink
Silvano Seva 2024-02-26 21:38:44 +01:00
rodzic f3ead6121b
commit e9cd4855a6
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -47,8 +47,7 @@ void spiFlash_init()
SPI1->CR1 = SPI_CR1_SSM /* Software managment of nCS */
| SPI_CR1_SSI /* Force internal nCS */
| SPI_CR1_BR_2 /* Fclock: 84MHz/64 = 1.3MHz */
| SPI_CR1_BR_0
| SPI_CR1_BR_0 /* Fclock: 84MHz/4 = 21MHz */
| SPI_CR1_MSTR /* Master mode */
| SPI_CR1_SPE; /* Enable peripheral */
}