earlgrey/uart.rs
1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright Tock Contributors 2022.
4
5use kernel::utilities::StaticRef;
6use lowrisc::registers::uart_regs::UartRegisters;
7pub use lowrisc::uart::Uart;
8
9use crate::registers::top_earlgrey::UART0_BASE_ADDR;
10
11pub const UART0_BASE: StaticRef<UartRegisters> =
12 unsafe { StaticRef::new(UART0_BASE_ADDR as *const UartRegisters) };