Skip to content

Commit

Permalink
Trying to fix SW lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Dec 5, 2023
1 parent c8194f0 commit a084d35
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sw/lib/dif/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ void uart_read_str(void *uart_base, void *dst, uint64_t len) {

// Default UART provides console
void uart_open(){
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);
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);
};

void _putchar(char character) {
Expand All @@ -81,5 +81,6 @@ char _getchar() {
};

void uart_close() {
uart_write_flush(&__base_uart);
uart_write_flush(&__base_uart);
};

0 comments on commit a084d35

Please sign in to comment.