e310x/
rtc.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//! RTC instantiation.
6
7use kernel::utilities::StaticRef;
8use sifive::rtc::RtcRegisters;
9
10pub const RTC_BASE: StaticRef<RtcRegisters> =
11    unsafe { StaticRef::new(0x1000_0040 as *const RtcRegisters) };