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

One-shot supervisor configuration block. More...

#include <ra8_wdt_supervisor.h>

Data Fields

void * stack
 Caller-owned byte region for the supervisor's stack.
uint32_t stack_size_bytes
 Size of stack in bytes (>= 512).
uint32_t priority
 ThreadX priority for the supervisor thread.
uint32_t refresh_period_ms
 Tick period of the supervisor's loop.

Detailed Description

One-shot supervisor configuration block.

The supervisor uses a caller-supplied byte pool / stack region so the application owns memory placement (TCM, SRAM, ECC SRAM, etc.). The stack must be sized large enough for the supervisor's loop – 1 KiB is comfortable for the current implementation.

Invariant
stack_size_bytes >= 512.
refresh_period_ms > 0.
priority is a legal ThreadX priority (0..31).
static uint8_t s_sup_stack[1024];
const ra8_wdt_sup_cfg_t cfg = {
.stack = s_sup_stack,
.stack_size_bytes = sizeof s_sup_stack,
.priority = 4,
.refresh_period_ms = 50,
};
static uint8_t s_sup_stack[k_wdt_sup_demo_stack_bytes]
Definition main.c:50
ra8_err_t ra8_wdt_supervisor_init(const ra8_wdt_sup_cfg_t *cfg)
Initialise the supervisor registry and runtime hooks.
One-shot supervisor configuration block.

Definition at line 125 of file ra8_wdt_supervisor.h.

Field Documentation

◆ priority

uint32_t ra8_wdt_sup_cfg_t::priority

ThreadX priority for the supervisor thread.

Definition at line 128 of file ra8_wdt_supervisor.h.

Referenced by internal_validate_cfg().

◆ refresh_period_ms

uint32_t ra8_wdt_sup_cfg_t::refresh_period_ms

Tick period of the supervisor's loop.

Definition at line 129 of file ra8_wdt_supervisor.h.

Referenced by internal_validate_cfg().

◆ stack

void* ra8_wdt_sup_cfg_t::stack

Caller-owned byte region for the supervisor's stack.

Definition at line 126 of file ra8_wdt_supervisor.h.

Referenced by internal_validate_cfg().

◆ stack_size_bytes

uint32_t ra8_wdt_sup_cfg_t::stack_size_bytes

Size of stack in bytes (>= 512).

Definition at line 127 of file ra8_wdt_supervisor.h.

Referenced by internal_validate_cfg().


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