ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_nsc_wdt.c
Go to the documentation of this file.
1
28
29#include "ra8_err.h"
30#include "ra8_nsc.h"
31#include "ra8_nsc_veneer.h"
32#include "ra8_wdt.h"
33
50static const ra8_wdt_cfg_t s_wdt_cfg = {
51 .timeout = k_ra8_wdt_timeout_1024,
52 .clock_div = k_ra8_wdt_clkdiv_4,
53 .window_start = k_ra8_wdt_window_start_100,
54 .window_end = k_ra8_wdt_window_end_0,
55 .on_expiry = k_ra8_wdt_on_expiry_nmi,
56 .stop_in_sleep = k_ra8_wdt_sleep_stop_count,
57};
58
86
#define RA8_NSC_VENEER
Mark a TrustZone Secure-to-Non-Secure entry-point veneer.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Non-Secure Callable veneers – the only NS->S gateway.
Macros for declaring Non-Secure Callable veneer functions.
ra8_err_t ra8_nsc_wdt_start(void)
NSC veneer: arm the Secure WDT with the e-reader configuration.
Definition ra8_nsc_wdt.c:82
static const ra8_wdt_cfg_t s_wdt_cfg
Fixed Secure-side WDT configuration used by ra8_nsc_wdt_start.
Definition ra8_nsc_wdt.c:50
void ra8_nsc_wdt_refresh(void)
NSC veneer: refresh the Secure WDT down-counter.
Software Watchdog Timer (WDT) driver header.
void ra8_wdt_refresh_deferred(void)
Refresh the software WDT counter (WDT0).
Definition ra8_wdt.c:350
@ k_ra8_wdt_timeout_1024
1024 cycles.
Definition ra8_wdt.h:147
@ k_ra8_wdt_clkdiv_4
PCLKB / 4.
Definition ra8_wdt.h:126
ra8_err_t ra8_wdt_init(const ra8_wdt_cfg_t *cfg)
Initialise the WDT in register-start mode.
Definition ra8_wdt.c:296
@ k_ra8_wdt_window_start_100
100 % (no upper bound).
Definition ra8_wdt.h:166
@ k_ra8_wdt_on_expiry_nmi
RSTIRQS=0 – route to NMI / IRQ.
Definition ra8_wdt.h:201
@ k_ra8_wdt_sleep_stop_count
SLCSTP=1 – counter halts in Sleep.
Definition ra8_wdt.h:219
@ k_ra8_wdt_window_end_0
0 % (no lower bound).
Definition ra8_wdt.h:185
Register-start-mode configuration block.
Definition ra8_wdt.h:305