diff --git a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Src/main.c b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Src/main.c index 70dd2cd20..877f69e0d 100644 --- a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Src/main.c +++ b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Src/main.c @@ -188,7 +188,7 @@ static void MX_SPI1_Init(void) hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; hspi1.Init.CLKPhase = SPI_PHASE_1EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; - hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32; + hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4; hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; diff --git a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/cubemx-l053r8-em9304.ioc b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/cubemx-l053r8-em9304.ioc index bf7ab5e50..bc0e5ae90 100644 --- a/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/cubemx-l053r8-em9304.ioc +++ b/port/stm32-l053r8-em9304/cubemx-l053r8-em9304/cubemx-l053r8-em9304.ioc @@ -194,8 +194,8 @@ SH.GPXTI13.0=GPIO_EXTI13 SH.GPXTI13.ConfNb=1 SH.GPXTI9.0=GPIO_EXTI9 SH.GPXTI9.ConfNb=1 -SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_32 -SPI1.CalculateBaudRate=1000.0 KBits/s +SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_4 +SPI1.CalculateBaudRate=8.0 MBits/s SPI1.Direction=SPI_DIRECTION_2LINES SPI1.IPParameters=VirtualType,Mode,Direction,CalculateBaudRate,BaudRatePrescaler SPI1.Mode=SPI_MODE_MASTER