Minimal UART0 driver.
More...
#include <stdint.h>
Go to the source code of this file.
◆ uart_getc()
Read single char from UART0.
- Returns
- Received char.
◆ uart_getw()
int uart_getw |
( |
uint32_t * | rdata | ) |
|
Read 32-bit binary word from UART0.
- Parameters
-
[in,out] | rdata | Pointer for returned data (uint32_t). |
- Returns
- 0 if success, != 0 if error
◆ uart_putc()
Print single char via UART0.
- Note
- Converts LF ("\n") to CR+LF ("\r\n").
- Parameters
-
◆ uart_puth()
void uart_puth |
( |
uint32_t | num | ) |
|
Print 32-bit number as 8-digit hexadecimal value with "0x" suffix via UART0.
- Parameters
-
[in] | num | Number to print as hexadecimal. |
◆ uart_puts()
void uart_puts |
( |
const char * | s | ) |
|
Print zero-terminated string via UART0.
- Parameters
-