mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c
- Revision:
- 305:89b9c3a9a045
- Parent:
- 30:91c1d09ada54
diff -r 78e31413b129 -r 89b9c3a9a045 targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c --- a/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c Fri Aug 29 11:45:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c Fri Aug 29 17:15:07 2014 +0100 @@ -46,9 +46,9 @@ return US_TICKER_TIMER->TC; } -void us_ticker_set_interrupt(unsigned int timestamp) { +void us_ticker_set_interrupt(timestamp_t timestamp) { // set match value - US_TICKER_TIMER->MR0 = timestamp; + US_TICKER_TIMER->MR0 = (uint32_t)timestamp; // enable match interrupt US_TICKER_TIMER->MCR |= 1; }