mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
vtimer: enable vtimer_gettimeofday as fallback
Declaring vtimer_gettimeofday as a "weak" alias for the _gettimeofday syscall.
This commit is contained in:
parent
dc916ad458
commit
99f227bf33
@ -41,6 +41,8 @@
|
||||
#define SECONDS_PER_TICK (4096U)
|
||||
#define MICROSECONDS_PER_TICK (4096UL * 1000000)
|
||||
|
||||
void _gettimeofday(void) __attribute__ ((weak, alias("vtimer_gettimeofday")));
|
||||
|
||||
static void vtimer_callback(void *ptr);
|
||||
static void vtimer_callback_tick(vtimer_t *timer);
|
||||
static void vtimer_callback_msg(vtimer_t *timer);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user