Still not working on G474.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15877 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2022-12-12 11:48:47 +00:00
parent f3396a2e6a
commit 227532c938
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ const SPIConfig hs_spicfg = {
}; };
/* /*
* Low speed SPI configuration (PCLK1/32=265.6250kHz, CPHA=0, CPOL=0, MSb first). * Low speed SPI configuration (PCLK1/256=332.03125kHz, CPHA=0, CPOL=0, MSb first).
*/ */
const SPIConfig ls_spicfg = { const SPIConfig ls_spicfg = {
.circular = false, .circular = false,
@ -79,7 +79,7 @@ const SPIConfig ls_spicfg = {
.error_cb = NULL, .error_cb = NULL,
.ssport = GPIOB, .ssport = GPIOB,
.sspad = 12U, .sspad = 12U,
.cr1 = SPI_CR1_BR_2, .cr1 = SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_BR_0,
.cr2 = SPI_CR2_DS_2 | SPI_CR2_DS_1 | SPI_CR2_DS_0 .cr2 = SPI_CR2_DS_2 | SPI_CR2_DS_1 | SPI_CR2_DS_0
}; };

View File

@ -155,7 +155,7 @@ static ShellConfig shell_cfg1 = {
mmc_spi_driver_t MMCD1; mmc_spi_driver_t MMCD1;
/* MMC/SD over SPI driver configuration.*/ /* MMC/SD over SPI driver configuration.*/
static MMCConfig mmccfg = {&SPID2, &ls_spicfg, &hs_spicfg}; static MMCConfig mmccfg = {&PORTAB_SPI1, &ls_spicfg, &hs_spicfg};
#endif #endif
/* /*