12 lines
294 B
C
12 lines
294 B
C
#include <stdint.h>
|
|
#define TIMEOUT 1000
|
|
|
|
enum UartErrorCode {
|
|
USART_TX_ERROR,
|
|
USART_TX_BUSY,
|
|
USART_TX_COMPLETE
|
|
};
|
|
|
|
static uint32_t usart_tx_ready(void);
|
|
uint32_t usart_tx_write(const uint8_t *data_bytes, uint32_t n_bytes);
|
|
uint32_t usart_tx_write_string(const uint8_t *data_bytes); |