31#ifndef HOME_CORE_BOARD_H
32#define HOME_CORE_BOARD_H
34#if defined(__cplusplus)
39#include "homecore/devicetree.h"
54#define BOARD_STRINGIFY(x) #x
56#define BOARD DT_BOARD_NAME
113#if defined(__cplusplus)
void board_uart_putc(char c)
Write one byte to the console UART by polling.
int board_uart_has_data(void)
Check without blocking whether the console UART has received data.
void board_init(void)
Initialize board clocks, pins, and the console UART.
uint32_t board_cpu_clock_hz(void)
Report the core clock frequency.
int board_uart_getc(void)
Read one byte from the console UART, blocking until one arrives.
void board_panic(const char *msg)
Report a fatal error and halt.