21 #define UART_BUFFER_LEN 128
35 uart_active_metadata = metadata;
79 char* ptr = (
char*)text;
112 const long string_length) {
115 long remaining_chars = string_length;
char uart_get_char()
Read a char from the active uart channel.
static char UART_BUFFER[128]
void uart_send_string(const char *text)
bool UARTCharsAvail(uint32_t ui32Base)
void GPIOPinTypeUART(uint32_t ui32Port, uint8_t ui8Pins)
hw_metadata uart_active_metadata
void uart_send_char_(hw_metadata metadata, const char text)
void UARTConfigSetExpClk(uint32_t ui32Base, uint32_t ui32UARTClk, uint32_t ui32Baud, uint32_t ui32Config)
char uart_get_char_(hw_metadata metadata)
Read a char from the specified uart channel.
void UARTIntClear(uint32_t ui32Base, uint32_t ui32IntFlags)
uint32_t SysCtlClockGet(void)
char * uart_get_string_(hw_metadata metadata, const long string_length)
Read a char array from the active uart channel.
#define UART_CONFIG_STOP_ONE
#define UART_CONFIG_WLEN_8
char * uart_get_string(const long string_length)
Read a char array from the active uart channel.
int32_t UARTCharGetNonBlocking(uint32_t ui32Base)
uint32_t ustrlen(const char *s)
void uart_send_char(const char text)
uint32_t UARTIntStatus(uint32_t ui32Base, bool bMasked)
void uart_set_active_metadata(hw_metadata metadata)
int32_t UARTCharGet(uint32_t ui32Base)
void GPIOPinConfigure(uint32_t ui32PinConfig)
void uart_init(hw_metadata metadata)
void uart_send_string_(hw_metadata metadata, const char *text)
void UARTCharPut(uint32_t ui32Base, unsigned char ucData)
void UARTIntEnable(uint32_t ui32Base, uint32_t ui32IntFlags)
#define UART_CONFIG_PAR_NONE
void IntEnable(uint32_t ui32Interrupt)