earlgrey/usbdev.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 crate::registers::top_earlgrey::USBDEV_BASE_ADDR;
6use kernel::utilities::StaticRef;
7pub use lowrisc::usbdev::Usb;
8use lowrisc::usbdev::UsbRegisters;
9
10pub const USB0_BASE: StaticRef<UsbRegisters> =
11 unsafe { StaticRef::new(USBDEV_BASE_ADDR as *const UsbRegisters) };