Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: targets/TARGET_STM/TARGET_STM32L1/spi_api.c
- Revision:
- 184:08ed48f1de7f
- Parent:
- 149:156823d33999
- Child:
- 187:0387e8f68319
diff -r 5166a824ec1a -r 08ed48f1de7f targets/TARGET_STM/TARGET_STM32L1/spi_api.c --- a/targets/TARGET_STM/TARGET_STM32L1/spi_api.c Tue Mar 20 17:01:51 2018 +0000 +++ b/targets/TARGET_STM/TARGET_STM32L1/spi_api.c Thu Apr 19 17:12:19 2018 +0100 @@ -59,7 +59,9 @@ spi_hz = HAL_RCC_GetPCLK2Freq(); break; case SPI_2: - case SPI_3: +#ifdef SPI_3 + case SPI_3: +#endif /* SPI_2, SPI_3. Source CLK is PCKL1 */ spi_hz = HAL_RCC_GetPCLK1Freq(); break;


