hardware 0.0.9

A no_std bare-metal hardware abstraction layer — all port I/O, memory and swap allocations are guarded at runtime. Do not consider this dependency stable before x.1.x
Documentation
1
2
3
4
5
6
7
8
9
10
/// # Safety
/// `src` must be a valid, aligned pointer for reads of type `T`.
pub unsafe fn read_volatile<T>(src: *const T) -> T {
    core::ptr::read_volatile(src)
}
/// # Safety
/// `dst` must be a valid, aligned pointer for writes of type `T`.
pub unsafe fn write_volatile<T>(dst: *mut T, val: T) {
    core::ptr::write_volatile(dst, val)
}