mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
515:7467ef1f4ad8
Parent:
507:d4fc7603a669
Child:
536:c48d7048ab6e
--- a/targets/hal/TARGET_Maxim/TARGET_MAX32610/us_ticker.c	Thu Apr 16 11:45:13 2015 +0100
+++ b/targets/hal/TARGET_Maxim/TARGET_MAX32610/us_ticker.c	Fri Apr 17 08:45:07 2015 +0100
@@ -96,7 +96,7 @@
 
     if (event_passed(current_cnt + US_TIMER->count32, event_cnt )) {
         // the timestamp has expired
-        event_cnt = -1;                   // reset to max value
+        event_cnt = 0xFFFFFFFFFFFFFFFFULL;  // reset to max value
         us_ticker_irq_handler();
     } else {
 
@@ -112,7 +112,7 @@
                 US_TIMER->term_cnt32 = 0xFFFFFFFF;  // reset to max value to prevent further interrupts
                 US_TIMER->intfl = (MXC_F_TMR_INTFL_TIMER0 | MXC_F_TMR_INTFL_TIMER1);    // clear interrupt
                 NVIC_ClearPendingIRQ(US_TIMER_IRQn);
-                event_cnt = -1;                   // reset to max value
+                event_cnt = 0xFFFFFFFFFFFFFFFFULL;  // reset to max value
                 us_ticker_irq_handler();
             }
         }
@@ -127,7 +127,7 @@
     us_ticker_inited = 1;
 
     current_cnt = 0;
-    event_cnt = -1;       // initialize to max value
+    event_cnt = 0xFFFFFFFFFFFFFFFFULL;  // reset to max value
 
     if (SystemCoreClock <= 1000000) {
         error("us_ticker cannot operate at this SystemCoreClock");