29static const char*
s_tag =
"NSCXSPI";
31typedef enum : uint8_t {
static const char * s_tag
Logging / check tag.
#define RA8_NSC_VENEER
Mark a TrustZone Secure-to-Non-Secure entry-point veneer.
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.
Error Code Definitions for ra8-firmware.
@ k_ra8_err_invalid_arg
Invalid function argument.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Non-Secure Callable veneers – the only NS->S gateway.
@ k_ra8_nsc_xspi_max_read
Max bytes per ra8_nsc_xspi_read.
Macros for declaring Non-Secure Callable veneer functions.
#define RA8_NSC_CHECK_NS_RANGE_RW(ptr, len)
RA8 NSC CHECK NS RANGE RW.
@ k_ra8_nsc_xspi_instance
Only one xspi instance today.
ra8_err_t ra8_nsc_xspi_read(uint32_t flash_off, uint8_t *ns_dst, uint32_t len)
NSC veneer: read len bytes from external XSPI flash.
ra8_err_t ra8_nsc_xspi_status(uint8_t instance, uint32_t *out_mask)
NSC veneer: query secure-side XSPI status.
xSPI / Octo-SPI driver (flash read/program/erase + ID/status)
ra8_err_t ra8_xspi_flash_read(uint8_t instance, uint32_t flash_addr, uint8_t *buf, uint32_t len)
Read len bytes from external flash into buf.
ra8_err_t ra8_xspi_get_status(uint8_t instance, uint32_t *out_mask)
Read the xSPI COMSTT busy/error mask.