ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
timer.c File Reference

Thin SysTick-based timer wrapper. More...

#include <stdint.h>
#include "ra8_time.h"
Include dependency graph for timer.c:

Go to the source code of this file.

Functions

uint32_t ra8_now_ms (void)
 Short-form alias for ra8_time_ms().
void ra8_sleep_ms (uint32_t ms)
 Short-form alias for ra8_delay_ms().

Detailed Description

Thin SysTick-based timer wrapper.

Re-exports ra8_time_ms() / ra8_delay_ms() from ra8_time.h under a shorter name so driver code can use ra8_now_ms() and ra8_sleep_ms() without importing the longer header chain. Pure wrapper, zero additional state.

Definition in file timer.c.

Function Documentation

◆ ra8_now_ms()

uint32_t ra8_now_ms ( void )

Short-form alias for ra8_time_ms().

Convenience wrapper used by code that prefers a "now" verb.

Returns
Current millisecond tick count modulo 2^32.
Return values
0..UINT32_MAXSee ra8_time_ms().
Precondition
Same as ra8_time_ms().
None additional.
Postcondition
No state modified.
Result equals ra8_time_ms() at the moment of the call.
Note
Thread-safe.
Since
0.1.0

Definition at line 19 of file timer.c.

References ra8_time_ms().

Referenced by ep_run_refresh_cycle(), and modem_now_ms().

◆ ra8_sleep_ms()

void ra8_sleep_ms ( uint32_t ms)

Short-form alias for ra8_delay_ms().

Convenience wrapper that forwards to ra8_delay_ms().

Parameters
[in]msMilliseconds to sleep. Zero returns immediately.
Precondition
Same as ra8_delay_ms().
None additional.
Postcondition
At least ms milliseconds have elapsed.
No internal state modified.
Note
Thread-safe.
Since
0.1.0

Definition at line 24 of file timer.c.

References ra8_delay_ms().