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

Module state of the thread, timer and clock half – entirely static. More...

Collaboration diagram for ra8_esp_hosted_rtos_state_t:

Data Fields

ra8_esp_hosted_thread_slot_t threads [k_ra8_esp_hosted_max_threads]
 Threads.
bool thread_used [k_ra8_esp_hosted_max_threads]
 Thread occupancy.
ra8_esp_hosted_timer_slot_t timers [k_ra8_esp_hosted_max_timers]
 Timers.
bool timer_used [k_ra8_esp_hosted_max_timers]
 Timer occupancy.
uint32_t cpu_hz
 Cached core rate used to size the spin loop.
uint32_t last_ticks
 Most recent 32-bit tick reading.
uint64_t tick_epoch
 Accumulated rollovers, in ticks.
bool ready
 True while the substrate is initialised.

Detailed Description

Module state of the thread, timer and clock half – entirely static.

Holds the thread and timer tables, their in-use flags, and the two words that extend the 32-bit kernel tick to 64 bits. The mutex and semaphore tables live in ra8_esp_hosted_rtos_sync.c.

Invariant
ready is true exactly while the substrate is initialised.
tick_epoch only ever increases.
Example:
TEST_ASSERT_EQ(false, priv_ra8_esp_hosted_rtos_is_ready());
bool priv_ra8_esp_hosted_rtos_is_ready(void)
Report whether the RTOS substrate is currently initialised.
See also
priv_ra8_esp_hosted_rtos_init
Since
0.1.0

Definition at line 174 of file ra8_esp_hosted_rtos.c.

Field Documentation

◆ cpu_hz

uint32_t ra8_esp_hosted_rtos_state_t::cpu_hz

Cached core rate used to size the spin loop.

Definition at line 183 of file ra8_esp_hosted_rtos.c.

◆ last_ticks

uint32_t ra8_esp_hosted_rtos_state_t::last_ticks

Most recent 32-bit tick reading.

Definition at line 184 of file ra8_esp_hosted_rtos.c.

◆ ready

bool ra8_esp_hosted_rtos_state_t::ready

True while the substrate is initialised.

Definition at line 186 of file ra8_esp_hosted_rtos.c.

◆ thread_used

bool ra8_esp_hosted_rtos_state_t::thread_used[k_ra8_esp_hosted_max_threads]

Thread occupancy.

Definition at line 178 of file ra8_esp_hosted_rtos.c.

◆ threads

ra8_esp_hosted_thread_slot_t ra8_esp_hosted_rtos_state_t::threads[k_ra8_esp_hosted_max_threads]

Threads.

Definition at line 176 of file ra8_esp_hosted_rtos.c.

◆ tick_epoch

uint64_t ra8_esp_hosted_rtos_state_t::tick_epoch

Accumulated rollovers, in ticks.

Definition at line 185 of file ra8_esp_hosted_rtos.c.

◆ timer_used

bool ra8_esp_hosted_rtos_state_t::timer_used[k_ra8_esp_hosted_max_timers]

Timer occupancy.

Definition at line 182 of file ra8_esp_hosted_rtos.c.

◆ timers

ra8_esp_hosted_timer_slot_t ra8_esp_hosted_rtos_state_t::timers[k_ra8_esp_hosted_max_timers]

Timers.

Definition at line 180 of file ra8_esp_hosted_rtos.c.


The documentation for this struct was generated from the following file: