40#include "esp_hosted_os_abstraction.h"
109 if (ctx ==
nullptr) {
137 if (ctx ==
nullptr) {
173 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
209 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
245 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
281 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
311 if (ctx ==
nullptr) {
349 if (data ==
nullptr) {
383 if (data ==
nullptr) {
416 if ((data ==
nullptr) || (size == 0U)) {
449 if ((data ==
nullptr) || (size == 0U)) {
542 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
573 if ((ctx ==
nullptr) || (data ==
nullptr) || (size == 0U)) {
601 if (ctx ==
nullptr) {
612 if (out ==
nullptr) {
ESP-IDF-compatible logging surface, implemented by this port.
#define ESP_LOGE(tag,...)
Log a fault the caller cannot recover from itself.
esp-hosted port header: transport selection, side-band pin map, link polarity.
#define H_SPI_HD_CONFIG_2_DATA_LINES
Selector passed to the port when two data lines are negotiated.
#define H_SPI_HD_CONFIG_4_DATA_LINES
Selector passed to the port when four data lines are negotiated.
#define H_SPI_HD_CONFIG_1_DATA_LINE
Selector passed to the port when one data line is negotiated.
esp-hosted port header: the per-file log tag the core expects.
#define DEFINE_LOG_TAG(tag)
Declare the file-scope s_esp_hosted_tag string the ESP_LOGx macros use.
esp-hosted port header: RTOS handle types, return codes and budgets.
#define RET_FAIL
Operation failed for an unspecified reason.
#define RET_INVALID
A parameter was out of contract (null handle, bad size).
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
static const char * s_esp_hosted_tag
static int internal_sdio_read_reg(void *ctx, uint32_t reg, uint8_t *data, uint16_t size, bool lock_required)
Vtable row: read an SDIO peripheral register.
static int internal_sdio_card_deinit(void *ctx)
Vtable row: shut an SDIO card down.
static int internal_sdio_read_block(void *ctx, uint32_t reg, uint8_t *data, uint16_t size, bool lock_required)
Vtable row: read an SDIO data block.
static int internal_sdio_write_block(void *ctx, uint32_t reg, uint8_t *data, uint16_t size, bool lock_required)
Vtable row: write an SDIO data block.
static int internal_spi_hd_set_data_lines(uint32_t data_lines)
Vtable row: choose how many half-duplex SPI data lines to use.
static int internal_spi_hd_read_dma(uint8_t *data, uint16_t size, bool lock_required)
Vtable row: read a half-duplex SPI data burst.
static int internal_sdio_card_init(void *ctx, bool show_config)
Vtable row: bring an SDIO card up.
static int internal_spi_hd_write_reg(uint32_t reg, uint32_t *data, bool lock_required)
Vtable row: write a half-duplex SPI register.
static int internal_uart_write(void *ctx, uint8_t *data, uint16_t size)
Vtable row: write to the UART transport.
static int internal_sdio_write_reg(void *ctx, uint32_t reg, uint8_t *data, uint16_t size, bool lock_required)
Vtable row: write an SDIO peripheral register.
static int internal_spi_hd_read_reg(uint32_t reg, uint32_t *data, int poll, bool lock_required)
Vtable row: read a half-duplex SPI register.
void priv_ra8_esp_hosted_osi_bind_absent(hosted_osi_funcs_t *out)
Implementation of priv_ra8_esp_hosted_osi_bind_absent() – fills all sixteen rows so none is ever left...
static int internal_absent(const char *slot)
Report a call into a transport this board does not carry.
static int internal_sdio_wait_intr(void *ctx, uint32_t ticks_to_wait)
Vtable row: wait for an SDIO peripheral interrupt.
static int internal_uart_read(void *ctx, uint8_t *data, uint16_t size)
Vtable row: read from the UART transport.
static int internal_spi_hd_write_dma(uint8_t *data, uint16_t size, bool lock_required)
Vtable row: write a half-duplex SPI data burst.
static int internal_spi_hd_send_cmd9(void)
Vtable row: issue the half-duplex SPI command-nine sequence.
static int internal_uart_flush_input(void *ctx)
Vtable row: discard whatever the UART transport has buffered.
Library-private surface of the esp-hosted OS-abstraction vtable.
static ra8_err_t internal_uart_write(void *ctx, const uint8_t *buf, uint32_t len, uint32_t *out_written)
UART sink: write all bytes out of the SCI channel by polling.