78typedef enum : uint16_t {
85typedef enum : uint8_t {
97typedef enum : uint16_t {
102#ifndef RA8_OFF_TARGET
246 static CHAR s_thread_a_name[] =
"blink_a";
247 static CHAR s_thread_b_name[] =
"blink_b";
249 (void)first_unused_memory;
263 __asm__
volatile(
"wfi");
279 __asm__
volatile(
"wfi");
315 __asm__
volatile(
"wfi");
323 __asm__
volatile(
"wfi");
328 __asm__
volatile(
"wfi");
334#ifndef RA8_OFF_TARGET
340 __asm__
volatile(
"wfi");
void main(void)
Secure fallback main entry point.
void tx_application_define(void *first_unused_memory)
ThreadX system-define hook: build worker thread + byte pool.
blink_period_t
Half-period of the visible blink, in milliseconds.
static void internal_thread_a_entry(ULONG thread_input)
Thread A entry point: toggle LED1 every k_blink_a_ticks ms.
static TX_THREAD s_thread_b
Thread B control block.
blink_stack_t
Stack size, in bytes, for each user blink thread.
@ k_blink_thread_stack_bytes
Blink thread stack bytes.
blink_priority_t
Thread priority for both blink threads.
@ k_blink_thread_priority
Blink thread priority.
@ k_blink_b_ticks
Blink b ticks.
@ k_blink_a_ticks
Blink a ticks.
static uint8_t s_thread_b_stack[k_blink_thread_stack_bytes]
Stack for thread B (LED2 blinker).
static TX_THREAD s_thread_a
Thread A control block.
volatile uint32_t g_threadx_blink_tick
HIL liveness counter – incremented by thread A on each LED-A toggle.
static uint8_t s_thread_a_stack[k_blink_thread_stack_bytes]
Stack for thread A (LED1 blinker).
static void internal_thread_b_entry(ULONG thread_input)
Thread B entry point: toggle LED2 every k_blink_b_ticks ms.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
Board-support layer for the Renesas EK-RA8D2 v1 evaluation kit.
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_led2
LED2, GREEN, P303 (jumper E26).
@ k_ra8_board_led1
LED1, BLUE, P600 (jumper E27).
Boot entry points shared between a vector table and its startup code.
High-level Clock Generation Circuit driver.
ra8_err_t ra8_cgc_init(void)
Configure the clock tree to a safe default.
Error Code Definitions for ra8-firmware.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
NVIC + ICU IELSR allocator.
Typed Port / Pin Constants for the RA8D2 IOPORT Module.
High-level GPIO helpers on top of the PORT + PFS register layer.
unsigned int UINT
ThreadX-compatible unsigned int (host stub).
char CHAR
ThreadX-compatible CHAR (host stub).
unsigned long ULONG
ThreadX-compatible unsigned long (host stub).
Opaque thread stand-in for the host build.