/*---------------------------------------------------------------------------*/ unsigned int dbg_send_bytes(const unsigned char *s, unsigned int len) { unsigned int i = 0; while(s && *s != 0) { if(i >= len) { break; } cc26xx_uart_write_byte(*s++); i++; } /* * Wait for the buffer to go out. This is to prevent garbage when used * between UART on/off cycles */ while(cc26xx_uart_busy() == UART_BUSY); return i; }
/** * \brief Write a byte over SLIP * \param c the byte */ void slip_arch_writeb(unsigned char c) { cc26xx_uart_write_byte(c); }