Skip to content

Commit

Permalink
Use normale printf in Helloworld.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Mar 10, 2024
1 parent dec0dfa commit d04b979
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sw/tests/bare-metal/hostd/helloworld.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "params.h"
#include "util.h"
#include "car_util.h"
#include "printf.h"

int main(void) {

Expand All @@ -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;
}

0 comments on commit d04b979

Please sign in to comment.