diff options
| author | Frédéric Desbiens <[email protected]> | 2025-02-24 15:43:49 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-24 15:43:49 -0500 |
| commit | 06dabb0ad0403f59889ce85eeb3d48dbd9d3759b (patch) | |
| tree | 55c635ef6650198af9edf00e063c916124cfa816 /ports/risc-v64/gnu/example_build/qemu_virt/uart.h | |
| parent | 98c9172d01dcfdd0026ee3f5c6259dea6a12f253 (diff) | |
| parent | f0a44ad3914da1ce8429e55ff74f59eca11b6ec7 (diff) | |
Merge pull request #442 from eclipse-threadx/devv6.4.2_rel
Release ThreadX 6.4.2
Diffstat (limited to 'ports/risc-v64/gnu/example_build/qemu_virt/uart.h')
| -rw-r--r-- | ports/risc-v64/gnu/example_build/qemu_virt/uart.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/risc-v64/gnu/example_build/qemu_virt/uart.h b/ports/risc-v64/gnu/example_build/qemu_virt/uart.h new file mode 100644 index 00000000..2b95d500 --- /dev/null +++ b/ports/risc-v64/gnu/example_build/qemu_virt/uart.h @@ -0,0 +1,21 @@ +/*************************************************************************** + * Copyright (c) 2024 Microsoft Corporation + * + * 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 + +#define puts uart_puts +int uart_init(void); +int uart_putc(int ch); +int uart_puts(const char* str); +#endif |
