summaryrefslogtreecommitdiff
path: root/test/tx/cmake/riscv/bsp/uart.h
blob: 765ec38f925499a2160e657f20a09a7d8dc9d732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/***************************************************************************
 * Copyright (c) 2026 10xEngineers
 *
 * This program and the accompanying materials are made available under the
 * terms of the MIT License which is available at
 * https://opensource.org/licenses/MIT.
 *
 * SPDX-License-Identifier: MIT
 **************************************************************************/

#ifndef RISCV_UART_H
#define RISCV_UART_H

#define UART0       0x10000000L
#define UART0_IRQ   10

int     uart_init(void);
int     uart_putc(int ch);
void    uart_putc_nolock(int ch);
int     uart_puts(const char *str);

#endif /* RISCV_UART_H */