commit | 25115ca9974c960eb157afa904a6940d5decf10a | [log] [tgz] |
---|---|---|
author | Imre Kis <imre.kis@arm.com> | Tue Mar 25 14:05:09 2025 +0100 |
committer | Imre Kis <imre.kis@arm.com> | Tue Apr 01 13:56:52 2025 +0200 |
tree | 0b8692ed93a8ee9db66039486b4da94d957d88de | |
parent | 16eb316c0a22b0f6116dcd6762bbdcac24831f00 [diff] |
Prepare for 0.1.0 release Prepare for 0.1.0 release by adding documentation, updating dependencies, and updating Cargo.toml. Change-Id: I0e9a61629d00985a79a663b707d3a5306e5ed0fe Signed-off-by: Imre Kis <imre.kis@arm.com>
Driver implementation for the SP805 watchdog module.
use arm_sp805::{SP805Registers, Watchdog, UniqueMmioPointer}; use core::ptr::NonNull; # use zerocopy::transmute_mut; # let mut fake_registers = [0u32; 1024]; # let WATCHDOG_ADDRESS : *mut SP805Registers = transmute_mut!(&mut fake_registers); # fn handler() {} // SAFETY: `WATCHDOG_ADDRESS` is the base address of a SP805 watchdog register block. It remains // valid for the lifetime of the application and nothing else references this address range. let watchdog_pointer = unsafe { UniqueMmioPointer::new(NonNull::new(WATCHDOG_ADDRESS).unwrap()) }; let mut watchdog = Watchdog::new(watchdog_pointer, 0x0001_0000); watchdog.enable(); loop { handler(); watchdog.update(); # break }
The project is MIT and Apache-2.0 dual licensed, see LICENSE-APACHE
and LICENSE-MIT
.
arm-sp805 is a trustedfirmware.org maintained project. All contributions are ultimately merged by the maintainers listed below.
Please follow the directions of the Trusted Firmware Processes
Contributions are handled through review.trustedfirmware.org.
Please follow the directions of the Trusted Firmware Security Center
Copyright 2025 Arm Limited and/or its affiliates open-source-office@arm.com
Arm is a registered trademark of Arm Limited (or its subsidiaries or affiliates).