stm32/rtc: misc. cleanup and move to bps by default

This commit is contained in:
xoviat
2023-11-01 17:17:14 -05:00
parent 2765f0978f
commit bab61f9665
5 changed files with 70 additions and 73 deletions

View File

@ -61,7 +61,7 @@ pub struct Executor {
impl Executor {
/// Create a new Executor.
pub fn take() -> &'static mut Self {
unsafe {
critical_section::with(|_| unsafe {
assert!(EXECUTOR.is_none());
EXECUTOR = Some(Self {
@ -72,7 +72,7 @@ impl Executor {
});
EXECUTOR.as_mut().unwrap()
}
})
}
unsafe fn on_wakeup_irq(&mut self) {