43typedef enum : uint32_t {
48typedef enum : uint8_t {
100 __asm__
volatile(
"wfi");
123 uint32_t cpuclk0_hz = 0U;
173 .use_gpt_clk =
false,
175 .bckp_rising =
false,
179 .lr_continue =
false,
180 .bck_idle_stop =
false,
181 .enable_aucke =
true,
218 __asm__
volatile(
"wfi");
void main(void)
Secure fallback main entry point.
static const uint32_t s_ssie_loop_pattern[16]
16-entry quantised sine pattern (Q15, two periods) used as the TX-side audio test vector.
static void internal_ssie_loop_panic_halt(void)
Park the processor after an unrecoverable SSIE demo failure.
static const uint8_t s_ssie_loop_log_msg[]
UART diagnostic emitted after a complete SSIE pattern transfer.
static void internal_ssie_loop_setup_or_halt(void)
Initialize clocks, module-stop control, timing, and console.
static ra8_err_t internal_ssie_loop_run(void)
Bring SSIE0 up in controller I2S mode and stream the test pattern.
ssie_loop_chan_t
SSIE channel + FIFO watermarks.
@ k_ssie_loop_channel
Ssie loop channel.
@ k_ssie_loop_sample_count
Ssie loop sample count.
@ k_ssie_loop_tx_threshold
Ssie loop TX threshold.
@ k_ssie_loop_rx_threshold
Ssie loop RX threshold.
ssie_loop_const_t
Demo tunables.
@ k_ssie_loop_baud
Ssie loop baud.
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_uart_console_write(const uint8_t *data, size_t len)
Polled blocking write to the J-Link OB VCOM console.
ra8_err_t ra8_board_uart_console_init(uint32_t baud)
Configure SCI8 + PD02/PD03 as the debug-console UART.
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.
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).
Ref-counted Module Stop Control wrapper for the RA8D2.
ra8_err_t ra8_mstp_init(void)
Re-establish the ra8_mstp ref-count table from current hardware state.
Serial Sound Interface Enhanced (SSIE / I2S audio) driver.
ra8_err_t ra8_ssie_init(uint8_t channel, const ra8_ssie_cfg_t *cfg)
Initialise an SSIE channel for I2S / TDM / monaural transfer.
@ k_ra8_ssie_format_i2s
I2S, 2 channels per frame.
@ k_ra8_ssie_swl_32
32-bit system word.
ra8_err_t ra8_ssie_write_sample(uint8_t channel, uint32_t sample)
Push one 32-bit sample into the transmit FIFO.
@ k_ra8_ssie_bclk_div_32
AUDIO_MCK / 32.
@ k_ra8_ssie_dir_tx_rx
Full duplex (TEN | REN).
ra8_err_t ra8_ssie_deinit(uint8_t channel)
Tear down an SSIE channel and gate its clock.
ra8_err_t ra8_ssie_stop(uint8_t channel)
Disable transmission and reception.
@ k_ra8_ssie_dwl_16
16-bit data word.
ra8_err_t ra8_ssie_start(uint8_t channel, ra8_ssie_dir_t dir)
Enable transmission, reception, or full duplex.
@ k_ra8_ssie_role_controller
Bit clock + LR clock are outputs.
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.
Configuration descriptor for ra8_ssie_init.