From 3e1430fab67c994e67fbee3d8a784c256a0a7c5e Mon Sep 17 00:00:00 2001 From: mahdi259 <73544027+mahdi259@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:33:32 +0330 Subject: [PATCH] Update dhry_1.c Signed-off-by: mahdi259 <73544027+mahdi259@users.noreply.github.com> --- sw/example/dhrystone/dhry_1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sw/example/dhrystone/dhry_1.c b/sw/example/dhrystone/dhry_1.c index ac88fdba3..a53d469e0 100644 --- a/sw/example/dhrystone/dhry_1.c +++ b/sw/example/dhrystone/dhry_1.c @@ -26,6 +26,8 @@ #include #include "dhry.h" +/** UART BAUD rate */ +#define BAUD_RATE 19200 #ifndef DHRY_ITERS #define DHRY_ITERS 10000 @@ -104,7 +106,7 @@ int main (void) { /* ***** NEORV32-SPECIFIC ***** */ neorv32_rte_setup(); neorv32_cpu_csr_write(CSR_MIE, 0); // no interrupts - neorv32_uart0_setup(19200, 0); + neorv32_uart0_setup(BAUD_RATE, 0); neorv32_uart0_printf("NEORV32: Processor running at %u Hz\n", (uint32_t)neorv32_sysinfo_get_clk()); neorv32_uart0_printf("NEORV32: Executing Dhrystone (%u iterations). This may take some time...\n\n", (uint32_t)DHRY_ITERS);