ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_time_interface.h
Go to the documentation of this file.
1
18
19#pragma once
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26
31typedef struct {
35 uint32_t (*now_ms)(void* ctx);
39 void (*delay_ms)(void* ctx, uint32_t ms);
43 void* ctx;
45
46#ifdef __cplusplus
47}
48#endif
Vtable for a wall-clock time source.
uint32_t(* now_ms)(void *ctx)
Return the current time in milliseconds.
void * ctx
Opaque context handed to every call.
void(* delay_ms)(void *ctx, uint32_t ms)
Busy-wait for ms milliseconds.