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
22
extern
"C"
{
23
#endif
24
25
#include <stdint.h>
26
31
typedef
struct
{
35
uint32_t (*
now_ms
)(
void
*
ctx
);
39
void (*
delay_ms
)(
void
*
ctx
, uint32_t ms);
43
void
*
ctx
;
44
}
ra8_time_interface_t
;
45
46
#ifdef __cplusplus
47
}
48
#endif
ra8_time_interface_t
Vtable for a wall-clock time source.
Definition
ra8_time_interface.h:31
ra8_time_interface_t::now_ms
uint32_t(* now_ms)(void *ctx)
Return the current time in milliseconds.
Definition
ra8_time_interface.h:35
ra8_time_interface_t::ctx
void * ctx
Opaque context handed to every call.
Definition
ra8_time_interface.h:43
ra8_time_interface_t::delay_ms
void(* delay_ms)(void *ctx, uint32_t ms)
Busy-wait for ms milliseconds.
Definition
ra8_time_interface.h:39
libs
ra8_core
inc
ra8_time_interface.h
Generated by
1.16.1