You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
521 B
20 lines
521 B
// simple_uasync.h - Test helpers for uasync mock |
|
#ifndef SIMPLE_UASYNC_H |
|
#define SIMPLE_UASYNC_H |
|
|
|
#define ETCP_DEBUG 1 |
|
#include <stdint.h> |
|
|
|
// These functions are only available when linking with simple_uasync.o |
|
// instead of lib.o |
|
|
|
// Advance time by delta_tb timebase units and process expired timers |
|
void simple_uasync_advance_time(uint32_t delta_tb); |
|
|
|
// Get current time in timebase units |
|
uint32_t simple_uasync_get_time(void); |
|
|
|
// Clear all pending timers |
|
void simple_uasync_clear(void); |
|
|
|
#endif // SIMPLE_UASYNC_H
|