ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
main.c File Reference

ADC_B self-diagnosis (modes 1/2/3) + on-die temperature demo. More...

#include <stddef.h>
#include <stdint.h>
#include "ra8_adc.h"
#include "ra8_board_ek_ra8d2.h"
#include "ra8_boot_entry.h"
#include "ra8_cgc.h"
#include "ra8_err.h"
#include "ra8_isr.h"
#include "ra8_mstp.h"
#include "ra8_time.h"
#include "ra8_tsn.h"
Include dependency graph for main.c:

Go to the source code of this file.

Enumerations

enum  adc_diag_const_t : uint32_t {
  k_adc_diag_baud = 115200U ,
  k_adc_diag_period_ms = 500U
}
 Demo tunables. More...
enum  adc_diag_fmt_t : uint8_t {
  k_adc_diag_num_modes = 3U ,
  k_adc_diag_radix = 10U ,
  k_adc_diag_dec_max = 10U ,
  k_adc_diag_minus = '-'
}
 Formatting + iteration constants. More...
enum  adc_diag_tsn_t : uint16_t { k_adc_diag_stab_us = 30U }
 TSN factory-trim selection (Tj_max part). More...

Functions

static void adc_diag_panic_halt (void)
 Park forever after a fatal init error.
static void adc_diag_write (const uint8_t *data, uint32_t len)
 Write a byte span to the SCI8 console, discarding the status.
static uint32_t adc_diag_u32_to_dec (uint8_t *buf, uint32_t val)
 Serialise an unsigned 32-bit value into decimal ASCII.
static void adc_diag_write_u32 (uint32_t val)
 Log one unsigned 32-bit value as decimal ASCII.
static void adc_diag_write_i32 (int32_t val)
 Log one signed 32-bit value (leading minus for negatives).
static void adc_diag_emit_mode (uint8_t mode_num, uint16_t code, bool pass)
 Emit one diag: mode=N code=CCCCC PASS|FAIL line.
static bool adc_diag_run_cycle (void)
 Run one self-test cycle: 3 self-diagnosis modes + temp + Vref.
static void adc_diag_setup_or_halt (void)
 Core bring-up: CGC -> MSTP -> TIME -> console + LED.
static ra8_err_t adc_diag_arm (void)
 Initialise the ADC16H and the temperature sensor.
void main (void)
 The application entry point Reset_Handler hands control to.

Variables

static const ra8_adc_selfdiag_mode_t k_adc_diag_modes [k_adc_diag_num_modes]
 Ordered list of self-diagnosis modes to sweep each cycle.
static const uint8_t k_adc_diag_mode_prefix [] = "diag: mode="
static const uint8_t k_adc_diag_code_sep [] = " code="
static const uint8_t k_adc_diag_pass_sfx [] = " PASS\r\n"
static const uint8_t k_adc_diag_fail_sfx [] = " FAIL\r\n"
static const uint8_t k_adc_diag_tsn_prefix [] = "tsn: die_mC="
static const uint8_t k_adc_diag_vref_prefix [] = "vref: raw="
static const uint8_t k_adc_diag_crlf [] = "\r\n"
static const uint8_t k_adc_diag_verdict_pass [] = "diag: selftest PASS\r\n"
static const uint8_t k_adc_diag_verdict_fail [] = "diag: selftest FAIL\r\n"

Detailed Description

ADC_B self-diagnosis (modes 1/2/3) + on-die temperature demo.

Tag
[Ring 6 / APP] {World: S}

Exercises the two safety-relevant analog HAL entry points that ra8_emulator cannot model (the SAR self-test and the temperature-sensor path are not emulated), so this app is bench-only:

  1. ra8_adc_self_diagnose – the ADC_B built-in reference self-test. Each of the three modes injects a known internal reference level into the SAR core and compares the conversion against the tabulated ideal, proving the converter + reference are healthy (HUM Ch 53.3.11 "Self-Diagnosis" p 3411-3414).
  2. ra8_tsn_read_die_temp_milli_c – the close-the-loop die temperature read that drives the ADC16H temperature-sensor channel (CNVCS = 0x64) and applies the TSN two-point trim (HUM Ch 55.3.1 p 3499-3500).
  3. ra8_adc_read_internal_channel on the internal reference voltage channel (CNVCS = 0x65) as a second internal-channel probe (HUM Ch 53.2.13.2 "ADEXDRn" p 3391).

Bring-up sequence (CGC -> MSTP -> TIME -> peripheral):

  1. CGC + SysTick + UART console (SCI8 on PD_02 / PD_03 -> J-Link OB).
  2. ra8_adc_init (14-bit, software trigger) + ra8_tsn_init.
  3. Loop once per k_adc_diag_period_ms:
    • run self-diagnosis modes 1/2/3, log each raw code + PASS/FAIL;
    • read + log the die temperature in milli-degC;
    • read + log the internal Vref raw code;
    • emit the fixed verdict line "diag: selftest PASS" only when every mode reported healthy and both internal reads succeeded (the HIL scrape keys on this line).

Bare EK-RA8D2; no expansion board. Because the tolerance band in ra8_adc_self_diagnose is a gross-fault detector (see the driver's HUM Ch 69 note), the per-mode PASS/FAIL is logged verbatim so a bench operator can read the raw codes even if the verdict trips.

Since
0.1.0

Definition in file main.c.

Enumeration Type Documentation

◆ adc_diag_const_t

enum adc_diag_const_t : uint32_t

Demo tunables.

Enumerator
k_adc_diag_baud 

SCI8 console baud.

k_adc_diag_period_ms 

Delay between self-test cycles.

Definition at line 61 of file main.c.

◆ adc_diag_fmt_t

enum adc_diag_fmt_t : uint8_t

Formatting + iteration constants.

Enumerator
k_adc_diag_num_modes 

Self-diagnosis modes 1/2/3.

k_adc_diag_radix 

Decimal serialiser radix.

k_adc_diag_dec_max 

Max decimal digits for a uint32_t.

k_adc_diag_minus 

ASCII minus for signed serialisation.

Definition at line 67 of file main.c.

◆ adc_diag_tsn_t

enum adc_diag_tsn_t : uint16_t

TSN factory-trim selection (Tj_max part).

Enumerator
k_adc_diag_stab_us 

tTSTBL floor, HUM Figure 55.2 p 3502.

Definition at line 75 of file main.c.

Function Documentation

◆ adc_diag_arm()

ra8_err_t adc_diag_arm ( void )
staticnodiscard

Initialise the ADC16H and the temperature sensor.

ra8_adc_init powers the converter (14-bit, software trigger); the self-diagnosis + internal-channel paths force their own per-slot data format, so the legacy init is sufficient. ra8_tsn_init routes the sensor to the ADC mux and caches the 125 degC Tj_max trim – the raw calibration words are factory-programmed regardless, and the bench step confirms the trim matches the shipped part (HUM Ch 55.3.1).

Returns
ra8_err_t error code from the first failing init.
Return values
k_ra8_okADC and TSN are ready.
OtherForwarded from ra8_adc_init or ra8_tsn_init.
Precondition
adc_diag_setup_or_halt has ungated MSTP.
IRQs are masked or this is single-threaded init.
Postcondition
On k_ra8_ok the ADC is powered and TSCR.TSOE is set.
On failure no partial ADC state is relied upon by the caller.
Since
0.1.0

Definition at line 330 of file main.c.

References k_adc_diag_stab_us, k_ra8_ok, k_ra8_tsn_cal_temp_high_125, k_ra8_tsn_cal_temp_low_n40, ra8_adc_init(), and ra8_tsn_init().

Referenced by main().

◆ adc_diag_emit_mode()

void adc_diag_emit_mode ( uint8_t mode_num,
uint16_t code,
bool pass )
static

Emit one diag: mode=N code=CCCCC PASS|FAIL line.

Parameters
[in]mode_numHuman mode number (1/2/3).
[in]codeRaw 16-bit self-diagnosis result code.
[in]passDriver verdict for this mode.
Precondition
The console has been initialised.
mode_num is one of 1/2/3.
Postcondition
A single newline-terminated line has been queued.
The PASS/FAIL suffix reflects pass.
Since
0.1.0

Definition at line 214 of file main.c.

References adc_diag_write(), adc_diag_write_u32(), k_adc_diag_code_sep, k_adc_diag_fail_sfx, k_adc_diag_mode_prefix, and k_adc_diag_pass_sfx.

Referenced by adc_diag_run_cycle().

◆ adc_diag_panic_halt()

void adc_diag_panic_halt ( void )
static

Park forever after a fatal init error.

Precondition
Called only after an unrecoverable bring-up failure.
Postcondition
CPU is parked; only a debugger or reset wakes it.
Since
0.1.0

Definition at line 105 of file main.c.

Referenced by adc_diag_setup_or_halt(), and main().

◆ adc_diag_run_cycle()

bool adc_diag_run_cycle ( void )
static

Run one self-test cycle: 3 self-diagnosis modes + temp + Vref.

Returns
True iff every mode reported healthy and both internal reads returned k_ra8_ok.
Precondition
adc_diag_arm has initialised the ADC and TSN.
The console has been initialised.
Postcondition
One log block (modes + temp + Vref) has been queued.
No ADC state other than the dedicated diagnostic group changed.
Since
0.1.0

Definition at line 239 of file main.c.

References adc_diag_emit_mode(), adc_diag_write(), adc_diag_write_i32(), adc_diag_write_u32(), k_adc_diag_crlf, k_adc_diag_modes, k_adc_diag_num_modes, k_adc_diag_tsn_prefix, k_adc_diag_vref_prefix, k_ra8_adc_chan_int_ref_volt, k_ra8_ok, ra8_adc_read_internal_channel(), ra8_adc_self_diagnose(), and ra8_tsn_read_die_temp_milli_c().

Referenced by main().

◆ adc_diag_setup_or_halt()

void adc_diag_setup_or_halt ( void )
static

Core bring-up: CGC -> MSTP -> TIME -> console + LED.

Precondition
Reset defaults are in force (single-threaded boot context).
No peripheral has been claimed yet.
Postcondition
On return every core clock + console + LED is live.
Any failure parks the CPU via adc_diag_panic_halt.
Since
0.1.0

Definition at line 286 of file main.c.

References adc_diag_panic_halt(), k_adc_diag_baud, k_ra8_board_led1, k_ra8_clock_id_cpuclk0, k_ra8_ok, ra8_board_led_init(), ra8_board_uart_console_init(), ra8_cgc_get_clock_hz(), ra8_cgc_init(), ra8_mstp_init(), and ra8_time_init().

Referenced by main().

◆ adc_diag_u32_to_dec()

uint32_t adc_diag_u32_to_dec ( uint8_t * buf,
uint32_t val )
static

Serialise an unsigned 32-bit value into decimal ASCII.

Parameters
[out]bufDestination, at least k_adc_diag_dec_max bytes.
[in]valValue to serialise.
Returns
Number of digits written (1..10).
Precondition
buf is non-NULL and sized for the widest uint32_t.
No trailing NUL is required by the caller.
Postcondition
buf holds the most-significant digit first.
The return value is in [1, k_adc_diag_dec_max].
Since
0.1.0

Definition at line 142 of file main.c.

References k_adc_diag_dec_max, and k_adc_diag_radix.

Referenced by adc_diag_write_u32().

◆ adc_diag_write()

void adc_diag_write ( const uint8_t * data,
uint32_t len )
static

Write a byte span to the SCI8 console, discarding the status.

Parameters
[in]dataNon-NULL byte span to transmit.
[in]lenByte count (0 is a no-op).
Precondition
ra8_board_uart_console_init has succeeded.
data points at len readable bytes.
Postcondition
len bytes have been queued to the console UART.
Since
0.1.0

Definition at line 123 of file main.c.

References ra8_board_uart_console_write().

Referenced by adc_diag_emit_mode(), adc_diag_run_cycle(), adc_diag_write_i32(), adc_diag_write_u32(), and main().

◆ adc_diag_write_i32()

void adc_diag_write_i32 ( int32_t val)
static

Log one signed 32-bit value (leading minus for negatives).

Parameters
[in]valValue to print (milli-degC range on this app).
Precondition
The console has been initialised.
val fits in an int32_t (always true).
Postcondition
For negatives a '-' precedes the magnitude digits.
The decimal representation of val has been queued.
Since
0.1.0

Definition at line 190 of file main.c.

References adc_diag_write(), adc_diag_write_u32(), and k_adc_diag_minus.

Referenced by adc_diag_run_cycle().

◆ adc_diag_write_u32()

void adc_diag_write_u32 ( uint32_t val)
static

Log one unsigned 32-bit value as decimal ASCII.

Parameters
[in]valValue to print.
Precondition
The console has been initialised.
val fits in a uint32_t (always true).
Postcondition
The decimal digits of val have been queued to the console.
Since
0.1.0

Definition at line 172 of file main.c.

References adc_diag_u32_to_dec(), adc_diag_write(), and k_adc_diag_dec_max.

Referenced by adc_diag_emit_mode(), adc_diag_run_cycle(), and adc_diag_write_i32().

◆ main()

void main ( void )

The application entry point Reset_Handler hands control to.

Returns void, not int. This is a freestanding image: there is no hosted C environment, no process and nothing to report an exit status to. ISO C fixes main at int only for a hosted implementation; for a freestanding one (C23 5.1.2.1) the startup function's name and type are implementation-defined, and this is that definition. Reset_Handler discards no value because there is none to discard, and if main ever does return, startup halts the CPU rather than resuming anything.

The firmware lane is compiled -ffreestanding (see cmake/ra8_add_app.cmake) and the flag and this signature travel together: without it both GCC and clang reject a non-int main (-Wmain / -Wmain-return-type). Do not remove one without the other.

That coupling is why the declaration sits behind __STDC_HOSTED__ == 0, which -ffreestanding sets and a hosted build does not. The guard is not defensive dressing: this header is reachable from host builds (the unit tests compile ra8_core natively), and an unguarded void main(void); makes every hosted translation unit that includes it fail with conflicting types for 'main' against its own ISO int main. The declaration therefore exists exactly where its contract does.

Hosted first-party code – everything under tests/ and tools/ – uses the ISO int main(...) contract instead, because it genuinely does run under an OS that reads the exit status. scripts/checks/check_entry_points.py holds each domain to its own contract (#707).

Declared here, once, for the same reason SystemInit is: every vector_table.c used to restate it as a local extern int32_t main(void);, sixteen copies that no compiler ever compared against the definition – and roughly thirty of them had silently drifted out of agreement with the main they called.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has configured the clock tree and VTOR.
Postcondition
Control does not return; the image runs until reset or halt.
Any value the application wanted to report has been logged, not returned.
Note
Not thread-safe; single-threaded startup context only.
Warning
Only valid while the translation unit is compiled -ffreestanding. A hosted build rejects this signature.
See also
SystemInit()
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up CGC + BSP audio then plays blocks.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On clean entry the CPU stays in the playback loop forever.
On any HAL init failure the function halts in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up CGC + GPT triple, runs sweep.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On clean entry the CPU stays in the sweep loop forever.
On any HAL init failure the function halts in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up clocks + UART + RMII pins, then ThreadX.

Precondition
Reset_Handler has copied .data and zeroed .bss.
Postcondition
On clean entry the kernel runs the worker thread once.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up clocks + UART, then enters ThreadX.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On clean entry the kernel runs the worker thread forever.
On any HAL init failure the function halts in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up LED, console, SDHI pins, then ThreadX.

Precondition
Reset_Handler has copied .data + zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
CPUCLK0 is raised to the PLL1 target before the kernel starts.
On clean entry the SD card thread runs forever.
On any HAL init failure the function halts in __WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up CGC + USB-FS + UAC1, then enters the iso-IN feed loop forever.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On clean entry the CPU stays in the iso-IN feed loop forever.
On any HAL init failure the function halts in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
SystemInit set VTOR / FPU / priority grouping.

The application entry point Reset_Handler hands control to.

See file header.

Precondition
Boot init has completed.
The secure-boot library's BLXNS into NS image either failed or was skipped (the call site in ra8_trustzone_init is a no-op on host builds).
Postcondition
Diagnostic counter latched, CPU parked in a halt loop.
Function never returns.
Note
Single-threaded entry.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
On success g_eoh_chapters / g_eoh_crc hold the parsed results, the banner is emitted, and g_eoh_heartbeat advances once per frame.
On any failure g_eoh_err is non-zero and the CPU parks (no heartbeat).
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
The chapters/ch0-CRC banner is emitted; the CPU then loops in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
On success the g_etoc_* result globals hold the parsed TOC values, the banner is emitted, and g_etoc_heartbeat advances once per frame.
On any failure g_etoc_err is non-zero and the CPU parks (no heartbeat).
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss; SystemInit set VTOR/FPU.
Postcondition
The shelf scans on the panel; taps open books, browse, and read.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
The slab/arena/tile/vmem banner is emitted; the CPU then loops in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
On success the cache globals are latched and g_pc_heartbeat advances.
On any failure g_pc_err is non-zero and the CPU parks (no heartbeat).
Since
0.1.0

The application entry point Reset_Handler hands control to.

Profiles power modes once a second.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On clean entry the CPU stays in the profile + blink loop.
On any HAL hard error LED2 latches ON.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler has copied .data and zeroed .bss.
The shared board boot files installed the vector table.
Postcondition
The demo has run once and its verdict banner is streaming steadily.
The CPU idles re-emitting the banner (or halts after a fatal init error).
Since
0.1.0

The application entry point Reset_Handler hands control to.

Brings up the clocks, console, SPI, and SD card, then runs the shared ra8_io VFS round-trip over the SD-over-SPI block device. On success it prints the exact PASS banner the HIL runner and ra8_emulator smoke gate scrape for; on any failure it prints FAIL and parks the core.

Precondition
Reset_Handler has copied .data and zeroed .bss.
SystemInit has set VTOR, FPU, and priority grouping.
Postcondition
On a clean run the CPU loops forever after the PASS banner.
On any failure the function prints FAIL and halts in WFI.
Note
Not thread-safe; this is the single-threaded app entry.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Initialises logging and the console, brings up the OSPI NOR volume, runs the erase-before-write round-trip, and prints a single PASS/FAIL verdict line over SCI8 before parking in an infinite loop.

Precondition
SystemInit configured VTOR / FPU / priority grouping.
The OSPI NOR array is present (modelled in ra8_emulator, real on silicon).
Postcondition
Exactly one PASS or FAIL verdict line has been queued on SCI8.
Control parks in an infinite loop; the function never returns.
Note
Single-threaded; runs to the park loop on the main stack.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
The page-count + render-hash banner is emitted; the CPU loops in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
The cal=OK / cal=SKIP result and the finger-free touchcal: ready sentinel are emitted; the CPU then loops in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR / FPU / priority grouping.
Postcondition
The open=OK touch banner is emitted; the CPU then loops in WFI.
Since
0.1.0

The application entry point Reset_Handler hands control to.

Both USB controllers' clocks and pins come up before the kernel so the workers only deal with stack bring-up.

Precondition
Reset_Handler copied .data and zeroed .bss.
SystemInit set VTOR, FPU, priority grouping.
Postcondition
On clean entry the CPU stays in tx_kernel_enter forever.
On any HAL init failure the function halts in WFI.
Note
Single entry point; not re-entrant.
Since
0.1.0

Definition at line 344 of file main.c.

References adc_diag_arm(), adc_diag_panic_halt(), adc_diag_run_cycle(), adc_diag_setup_or_halt(), adc_diag_write(), k_adc_diag_period_ms, k_adc_diag_verdict_fail, k_adc_diag_verdict_pass, k_ra8_board_led1, k_ra8_ok, ra8_board_led_toggle(), ra8_delay_ms(), and ra8_isr_globals_enable().

Variable Documentation

◆ k_adc_diag_code_sep

const uint8_t k_adc_diag_code_sep[] = " code="
static

Definition at line 89 of file main.c.

Referenced by adc_diag_emit_mode().

◆ k_adc_diag_crlf

const uint8_t k_adc_diag_crlf[] = "\r\n"
static

Definition at line 94 of file main.c.

Referenced by adc_diag_run_cycle().

◆ k_adc_diag_fail_sfx

const uint8_t k_adc_diag_fail_sfx[] = " FAIL\r\n"
static

Definition at line 91 of file main.c.

Referenced by adc_diag_emit_mode().

◆ k_adc_diag_mode_prefix

const uint8_t k_adc_diag_mode_prefix[] = "diag: mode="
static

Definition at line 88 of file main.c.

Referenced by adc_diag_emit_mode().

◆ k_adc_diag_modes

const ra8_adc_selfdiag_mode_t k_adc_diag_modes[k_adc_diag_num_modes]
static
Initial value:
= {
}
@ k_ra8_adc_selfdiag_mode_3
Positive full-scale.
Definition ra8_adc.h:519
@ k_ra8_adc_selfdiag_mode_2
Negative full-scale.
Definition ra8_adc.h:518
@ k_ra8_adc_selfdiag_mode_1
Zero-differential reference.
Definition ra8_adc.h:517

Ordered list of self-diagnosis modes to sweep each cycle.

Definition at line 80 of file main.c.

Referenced by adc_diag_run_cycle().

◆ k_adc_diag_pass_sfx

const uint8_t k_adc_diag_pass_sfx[] = " PASS\r\n"
static

Definition at line 90 of file main.c.

Referenced by adc_diag_emit_mode().

◆ k_adc_diag_tsn_prefix

const uint8_t k_adc_diag_tsn_prefix[] = "tsn: die_mC="
static

Definition at line 92 of file main.c.

Referenced by adc_diag_run_cycle().

◆ k_adc_diag_verdict_fail

const uint8_t k_adc_diag_verdict_fail[] = "diag: selftest FAIL\r\n"
static

Definition at line 96 of file main.c.

Referenced by main().

◆ k_adc_diag_verdict_pass

const uint8_t k_adc_diag_verdict_pass[] = "diag: selftest PASS\r\n"
static

Definition at line 95 of file main.c.

Referenced by main().

◆ k_adc_diag_vref_prefix

const uint8_t k_adc_diag_vref_prefix[] = "vref: raw="
static

Definition at line 93 of file main.c.

Referenced by adc_diag_run_cycle().