Debug assertion in Peripherals::steal() is removed so peripherals can be stolen in panic_fmt
This commit is contained in:
parent
648cdcb8f0
commit
2c2f1d0fee
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
### Added
|
||||
### Changed
|
||||
### Removed
|
||||
- Debug assertion in Peripherals::steal() is removed so peripherals can be stolen in panic_fmt.
|
||||
## [0.8.0] - 2018-02-13
|
||||
### Removed
|
||||
- PCC dummy register was removed. These register should not be used as there are no hardware corresponding to them.
|
||||
|
@ -1153,7 +1153,6 @@ impl Peripherals {
|
||||
}
|
||||
#[doc = r" Unchecked version of `Peripherals::take`"]
|
||||
pub unsafe fn steal() -> Self {
|
||||
debug_assert!(!DEVICE_PERIPHERALS);
|
||||
DEVICE_PERIPHERALS = true;
|
||||
Peripherals {
|
||||
CSE_PRAM: CSE_PRAM {
|
||||
|
Loading…
Reference in New Issue
Block a user