mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC43XX/us_ticker.c
- Revision:
- 304:89b9c3a9a045
- Parent:
- 300:55638feb26a4
--- a/targets/hal/TARGET_NXP/TARGET_LPC43XX/us_ticker.c Fri Aug 29 11:45:07 2014 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC43XX/us_ticker.c Fri Aug 29 17:15:07 2014 +0100 @@ -48,9 +48,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->MR[0] = timestamp; + US_TICKER_TIMER->MR[0] = (uint32_t)timestamp; // enable match interrupt US_TICKER_TIMER->MCR |= 1; }