40typedef enum : uint16_t {
45typedef enum : uint32_t {
50typedef enum : uint8_t {
93 __asm__
volatile(
"wfi");
116 uint32_t cpuclk0_hz = 0U;
158 .enable_channel0 =
true,
159 .enable_channel1 =
false,
void main(void)
Secure fallback main entry point.
static void internal_dac_b_demo_panic_halt(void)
Park the processor after an unrecoverable DAC demo failure.
dac_b_demo_const_t
Demo tunables.
@ k_dac_b_demo_step
Code increment per tick.
@ k_dac_b_demo_full_scale
12-bit max.
static void internal_dac_b_demo_setup_or_halt(void)
Initialize the DAC demo's clock, time base, and status LED.
dac_b_demo_chan_t
DAC_B channel under test.
@ k_dac_b_demo_channel
DAC b demo channel.
static ra8_err_t internal_dac_b_demo_arm(void)
Configure DAC_B in 12-bit, normal-vref mode.
@ k_dac_b_demo_step_ms
DAC b demo step ms.
volatile uint32_t g_dac_b_demo_tick
HIL liveness counter – incremented each DAC write iteration.
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_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).
Boot entry points shared between a vector table and its startup code.
High-level Clock Generation Circuit driver.
ra8_err_t ra8_cgc_get_clock_hz(ra8_clock_id_t id, uint32_t *out_hz)
Query the current frequency of a clock-tree domain.
@ k_ra8_clock_id_cpuclk0
Cortex-M85 CPUCLK0.
ra8_err_t ra8_cgc_init(void)
Configure the clock tree to a safe default.
Full-featured 12-bit DAC_B driver.
ra8_err_t ra8_dac_b_set_output_enable(uint8_t channel, bool enable)
Toggle output-enable for one channel at runtime.
@ k_ra8_dac_b_vref_normal
OFSSEL=0: VREFH >= 2.7V (default).
ra8_err_t ra8_dac_b_write(uint8_t channel, uint16_t value)
Programme a DAC channel with a 12-bit code.
@ k_ra8_dac_b_format_right
DPSEL=0: right-justified (default).
ra8_err_t ra8_dac_b_init_configured(const ra8_dac_b_cfg_t *cfg)
Initialise DAC_B with a full config descriptor.
Error Code Definitions for ra8-firmware.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
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.
Configuration descriptor for ra8_dac_b_init_configured.