Files
TestOS/os/driver/usart.h
2024-11-03 12:04:40 +01:00

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);