52#error "blink_ra8p1 must be built with cmake/toolchain-ra8p1.cmake (RA8_DEVICE_RA8P1)."
58typedef enum : uint32_t {
90 __asm__
volatile(
"wfi");
void main(void)
Secure fallback main entry point.
@ k_blink_cpu_hz_at_reset
Blink CPU Hz at reset.
@ k_blink_half_period_ms
500 ms on / 500 ms off -> 1 Hz square wave.
volatile uint32_t g_blink_ra8p1_tick
Liveness counter, incremented each time the LED toggles.
static void internal_blink_ra8p1_panic_halt(void)
Park the CPU forever in WFI – used as a panic stop.
blink_ra8p1_const_t
CPU clock at reset (MOCO ~8.4 MHz – shared RA8 CGC default).
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
ra8_err_t ra8_board_led_toggle(ra8_board_led_id_t led)
Toggle led's output state.
ra8_err_t ra8_board_led_init(ra8_board_led_id_t led)
Configure led as a digital output, initial level low (off).
@ k_ra8_board_led1
LED1, BLUE, P600 (jumper E27).
Board-support layer for the Renesas RA8P1 (R7KA8P1KFLCAC) target board.
Boot entry points shared between a vector table and its startup code.
Compile-time device selection for the RA8 multi-chip build (RA8D2 / RA8P1).
Error Code Definitions for ra8-firmware.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
NVIC + ICU IELSR allocator.
void ra8_isr_globals_enable(void)
Globally enable maskable interrupts (PRIMASK = 0).
SysTick-based tick counter, delay and timestamp helpers.
ra8_err_t ra8_time_init(uint32_t cpu_hz)
Initialise SysTick for a 1 kHz tick interrupt.
void ra8_delay_ms(uint32_t ms)
Busy-wait for at least ms milliseconds.