27static const char*
s_tag =
"NSCLOG";
63 for (i = 0U; i < (cap - 1U); ++i) {
64 const char c = src[i];
static const char * s_tag
Logging / check tag.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_NSC_VENEER
Mark a TrustZone Secure-to-Non-Secure entry-point veneer.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
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_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.
Lightweight Logging Interface for ra8-firmware.
#define ra8_log_info(tag, message)
RA8 log info.
Non-Secure Callable veneers – the only NS->S gateway.
@ k_ra8_nsc_log_msg_max_len
Truncated copy size for logs.
static char s_tag_scratch[k_ra8_nsc_log_msg_max_len]
Secure scratch for the (tag, message) copy.
static char s_msg_scratch[k_ra8_nsc_log_msg_max_len]
ra8_err_t ra8_nsc_log_emit(const char *tag, const char *message)
NSC veneer: emit a log line from Non-Secure code.
static void internal_safe_strcpy(char *dst, const char *src, uint32_t cap)
Length-bounded string copy with NUL terminator.
Macros for declaring Non-Secure Callable veneer functions.
#define RA8_NSC_CHECK_NS_RANGE_R(ptr, len)
RA8 NSC CHECK NS RANGE r.