53#if PLATFORM_DBG_CONF_USB
54#define write_byte(b) usb_write((uint8_t *)&b, sizeof(uint8_t))
55#define flush() usb_flush()
57#define write_byte(b) uarte_write(b)
61#if TRUSTZONE_NONSECURE
62#include "trustzone/tz-api.h"
64#define DBG_BUF_SIZE 256
65static char dbg_buf[DBG_BUF_SIZE];
66static uint16_t dbg_pos;
71 if(dbg_pos < DBG_BUF_SIZE) {
72 dbg_buf[dbg_pos++] = c;
75 if(c ==
'\n' || dbg_pos >= DBG_BUF_SIZE - 1) {
76 dbg_buf[MIN(dbg_pos - 1, DBG_BUF_SIZE - 1)] =
'\0';
102 while(s && *s != 0) {
unsigned int dbg_send_bytes(const unsigned char *s, unsigned int len)
Print a stream of bytes.
int dbg_putchar(int c)
Print a character to debug output.
CC_TRUSTZONE_SECURE_CALL void tz_api_println(const char *text)
Print the specified message via the secure world.
UARTE header file for the nRF.