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
Diff: targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c
- Revision:
- 546:a843b1cd80b8
- Parent:
- 507:d4fc7603a669
- Child:
- 552:a1b9575155a3
--- a/targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c Thu May 21 10:00:09 2015 +0100
+++ b/targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c Fri May 22 08:45:08 2015 +0100
@@ -115,7 +115,7 @@
void spi_frequency(spi_t *obj, int hz)
{
// Maximum frequency is half the system frequency
- MBED_ASSERT((unsigned int)hz < (SystemCoreClock / 2));
+ MBED_ASSERT((unsigned int)hz <= (SystemCoreClock / 2));
unsigned clocks = ((SystemCoreClock/2)/(hz));
// Figure out the divider ratio
