Added byte sized timer that can be used inside an 8-bit microcontroller ISR for up to 255mS of elapsed timing.
This commit is contained in:
@@ -48,8 +48,8 @@ extern "C" {
|
||||
void);
|
||||
uint32_t timer_milliseconds(
|
||||
void);
|
||||
uint32_t timer_milliseconds_set(
|
||||
uint32_t value);
|
||||
uint8_t timer_milliseconds_byte(
|
||||
void);
|
||||
|
||||
/* these functions are in the generic timer.c module */
|
||||
|
||||
@@ -103,6 +103,10 @@ extern "C" {
|
||||
void timer_interval_restart(
|
||||
struct itimer *t);
|
||||
|
||||
/* special for 8-bit microcontrollers - limited to 255ms */
|
||||
uint8_t timer_milliseconds_delta(uint8_t start);
|
||||
uint8_t timer_milliseconds_mark(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user