mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
Implement drop for FlashRegions
This commit is contained in:
parent
e8fc7a66a3
commit
e9a5b31fa8
@ -108,6 +108,12 @@ impl Drop for Flash<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for FlashRegions {
|
||||
fn drop(&mut self) {
|
||||
unsafe { family::lock() };
|
||||
}
|
||||
}
|
||||
|
||||
pub trait FlashRegion {
|
||||
const BASE: usize;
|
||||
const SIZE: usize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user