Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
Diff: us_ticker_api.h
- Revision:
- 89:552587b429a1
- Parent:
- 65:5798e58a58b1
- Child:
- 93:e188a91d3eaa
--- a/us_ticker_api.h Fri Aug 15 15:28:31 2014 +0100 +++ b/us_ticker_api.h Fri Sep 12 16:41:52 2014 +0100 @@ -22,24 +22,26 @@ extern "C" { #endif +typedef uint64_t timestamp_t; + uint32_t us_ticker_read(void); typedef void (*ticker_event_handler)(uint32_t id); void us_ticker_set_handler(ticker_event_handler handler); typedef struct ticker_event_s { - uint32_t timestamp; - uint32_t id; + timestamp_t timestamp; + uint32_t id; struct ticker_event_s *next; } ticker_event_t; void us_ticker_init(void); -void us_ticker_set_interrupt(unsigned int timestamp); +void us_ticker_set_interrupt(timestamp_t timestamp); void us_ticker_disable_interrupt(void); void us_ticker_clear_interrupt(void); void us_ticker_irq_handler(void); -void us_ticker_insert_event(ticker_event_t *obj, unsigned int timestamp, uint32_t id); +void us_ticker_insert_event(ticker_event_t *obj, timestamp_t timestamp, uint32_t id); void us_ticker_remove_event(ticker_event_t *obj); #ifdef __cplusplus