|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Abstract time-source interface for DI and unit testing. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | ra8_time_interface_t |
| Vtable for a wall-clock time source. More... | |
Abstract time-source interface for DI and unit testing.
Modules that need wall-clock time (timeouts, rate limiters, delay loops) should depend on an ra8_time_interface_t rather than calling ra8_time_ms() directly. Unit tests can then inject a mock that advances on command, without needing SysTick.
Production code points the interface at g_ra8_time_interface_systick (wraps ra8_time_ms + ra8_delay_ms).
Definition in file ra8_time_interface.h.