lzbp li / mbed-src

Fork of mbed-src by mbed official

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