e310x/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
5//! UART instantiation.
6
7use kernel::utilities::StaticRef;
8use sifive::uart::UartRegisters;
9
10pub const UART0_BASE: StaticRef<UartRegisters> =
11 unsafe { StaticRef::new(0x1001_3000 as *const UartRegisters) };
12
13pub const UART1_BASE: StaticRef<UartRegisters> =
14 unsafe { StaticRef::new(0x1002_3000 as *const UartRegisters) };