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.
Fork of mbed-src by
Revision 542:df6c4a28a32e, committed 2015-05-16
- Comitter:
- Sissors
- Date:
- Sat May 16 20:34:03 2015 +0000
- Parent:
- 541:7f313a59e20c
- Commit message:
- Fixed ARCH MAX SPI frequency bug
Changed in this revision
targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c Thu May 14 07:00:08 2015 +0100 +++ b/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c Sat May 16 20:34:03 2015 +0000 @@ -214,7 +214,7 @@ void spi_frequency(spi_t *obj, int hz) { -#if defined(TARGET_STM32F401RE) || defined(TARGET_STM32F401VC) || defined(TARGET_F407VG) +#if defined(TARGET_STM32F401RE) || defined(TARGET_STM32F401VC) || defined(TARGET_STM32F407VG) // Note: The frequencies are obtained with SPI1 clock = 84 MHz (APB2 clock) if (hz < 600000) { obj->br_presc = SPI_BAUDRATEPRESCALER_256; // 330 kHz