41 #ifndef CPU_ARM_K60_UART_H_
42 #define CPU_ARM_K60_UART_H_
52 void uart_init(
const unsigned int uart_num, uint32_t module_clk_hz,
const uint32_t baud);
53 void uart_putchar(
const unsigned int uart_num,
const char ch);
54 void uart_putstring(
const unsigned int uart_num,
const char *str);
55 void uart_enable_rx_interrupt(
const unsigned int uart_num);
56 void uart_set_rx_callback(
const unsigned int uart_num,
int (*callback)(
unsigned char));
77 #define UART_SBR(f, b) ((f) / (b * 16))
98 #define UART_BRFA(f, b) ((((4 * (f)) / (b) + 1) / 2) % 32)
void uart_init(const unsigned int uart_num, uint32_t module_clk_hz, const uint32_t baud)
Initialize UART.
void uart_module_enable(const unsigned int uart_num)
Enable the clock gate to an UART module.
K60 hardware register header wrapper.