From 59424888e2c98df6ddfa2270b35191101ea47162 Mon Sep 17 00:00:00 2001 From: Yvan Tortorella Date: Sun, 10 Mar 2024 16:31:50 +0100 Subject: [PATCH] Use normal printf in `Helloworld`. --- sw/tests/bare-metal/hostd/helloworld.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sw/tests/bare-metal/hostd/helloworld.c b/sw/tests/bare-metal/hostd/helloworld.c index 8e9bea97..7067caf1 100644 --- a/sw/tests/bare-metal/hostd/helloworld.c +++ b/sw/tests/bare-metal/hostd/helloworld.c @@ -13,6 +13,7 @@ #include "params.h" #include "util.h" #include "car_util.h" +#include "printf.h" int main(void) { @@ -22,11 +23,6 @@ int main(void) { // Init the HW car_init_start(); - char str[] = "Hello World!\r\n"; - uint32_t rtc_freq = *reg32(&__base_regs, CHESHIRE_RTC_FREQ_REG_OFFSET); - uint64_t reset_freq = clint_get_core_freq(rtc_freq, 2500); - uart_init(&__base_uart, reset_freq, 115200); - uart_write_str(&__base_uart, str, sizeof(str)); - uart_write_flush(&__base_uart); + printf("Hi\n"); return 0; }