ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_board_ek_ra8d2_console_stream.c
Go to the documentation of this file.
1
25
27
28#include <stdint.h>
29
30#include "ra8_board_ek_ra8d2.h"
32#include "ra8_check.h"
33#include "ra8_err.h"
34#include "ra8_io_stream.h"
35#include "ra8_io_stream_uart.h"
36
38static const char* const s_tag = "ra8_board.console_stream";
39
58
static const char * s_tag
Logging / check tag.
Definition ra8_app.c:17
Board-support layer for the Renesas EK-RA8D2 v1 evaluation kit.
bool priv_ra8_board_uart_console_is_up(void)
Implementation of priv_ra8_board_uart_console_is_up() – reads the same flag the write / read / flush ...
ra8_err_t ra8_board_console_stream(ra8_io_stream_t *out)
Bind the J-Link OB VCOM console into a caller-owned stream handle.
static ra8_io_stream_uart_state_t s_console_sink
Sink state backing every stream handle bound to the board console.
EK-RA8D2 debug console as an ra8_io_stream byte sink.
Cross-translation-unit seam for the EK-RA8D2 BSP implementation.
@ k_ra8_board_uart_console_sci_channel
PD02/PD03 -> SCI8 (verified on real EK-RA8D2 v1 silicon).
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
Definition ra8_check.h:243
Error Code Definitions for ra8-firmware.
@ k_ra8_err_not_initialized
Module not initialized – _init() not yet called successfully.
Definition ra8_err.h:235
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_io targetable byte-stream facade – one writer, many destinations.
ra8_io byte-stream sink over a UART/SCI channel.
ra8_err_t ra8_io_stream_uart_init(ra8_io_stream_t *s, ra8_io_stream_uart_state_t *state, uint8_t channel)
Bind a UART stream sink into a caller-owned stream handle.
Caller-allocated byte-stream handle binding a sink to its context.
Caller-owned private state for a UART stream sink.