21#error ERROR: NEORV32 preprocessor macro is not defined!
27#define BAUD_RATE 19200
28#define UART1_TX_BUFFER_FULL \
29 ((NEORV32_UART1.CTRL & (1 << UART_CTRL_TX_FULL)) != 0)
51 &NEORV32_GPIO.OUTPUT_LO,
52 &NEORV32_GPIO.OUTPUT_HI,
53 &NEORV32_GPIO.INPUT_LO,
54 &NEORV32_GPIO.INPUT_HI,
76 neorv32_uart0_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE);
78 if (neorv32_uart1_available() == 0) {
79 neorv32_uart0_print(
"Error! UART1 not synthesized!\n");
83 if (neorv32_gpio_available() == 0) {
84 neorv32_uart0_print(
"Error! GPIO not synthesized!\n");
92 neorv32_uart0_print(
"Starting UART1 loopback demo program\n");
95 neorv32_uart1_setup(9600, PARITY_NONE, FLOW_CONTROL_NONE);
100 Catch(e) {
return e; }
106 rx_status = neorv32_uart1_getc_safe((
char *)&tmp_byte);
107 if (rx_status == 0) {
113 neorv32_uart0_printf(
"Found: %d exceptions\n", nExceptions);
#define HANDLE_ASC_COMM_IN_POLLING_LOOP(uart_no)
Polling for ascii_serial_com_device and ascii_serial_com_register_pointers.
#define DECLARE_ASC_DEVICE_W_REGISTER_POINTERS()
Declarations for ascii_serial_com_device and ascii_serial_com_register_pointers.
#define SETUP_ASC_DEVICE_W_REGISTER_POINTERS(register_map, register_write_masks, nRegs)
Setup for ascii_serial_com_device and ascii_serial_com_register_pointers.
ASCII Serial Com Register Pointers.
void circular_buffer_push_back_uint8(circular_buffer_uint8 *circ_buf, const uint8_t element)
circular buffer push back
Portable millisecond timer.
REGTYPE register_write_masks[nRegs]
Write masks for register_map.
volatile REGTYPE * register_map[nRegs]
Register Map.