mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 04:40:52 +00:00
Disable timer as part of preempt::disable (#3575)
This commit is contained in:
parent
79b6464321
commit
3fec3376a4
@ -460,9 +460,6 @@ pub unsafe fn deinit_unchecked() -> Result<(), InitializationError> {
|
||||
|
||||
shutdown_radio_isr();
|
||||
|
||||
#[cfg(feature = "builtin-scheduler")]
|
||||
preempt_builtin::disable_timer();
|
||||
|
||||
// This shuts down the task switcher and timer tick interrupt.
|
||||
preempt::disable();
|
||||
|
||||
|
@ -7,8 +7,8 @@ use core::{ffi::c_void, mem::MaybeUninit};
|
||||
|
||||
use allocator_api2::boxed::Box;
|
||||
use arch_specific::*;
|
||||
use timer::{disable_multitasking, setup_multitasking};
|
||||
pub(crate) use timer::{disable_timer, setup_timer};
|
||||
pub(crate) use timer::setup_timer;
|
||||
use timer::{disable_multitasking, disable_timer, setup_multitasking};
|
||||
|
||||
use crate::{
|
||||
compat::malloc::InternalMemory,
|
||||
@ -128,6 +128,7 @@ impl Scheduler for BuiltinScheduler {
|
||||
}
|
||||
|
||||
fn disable(&self) {
|
||||
disable_timer();
|
||||
disable_multitasking();
|
||||
delete_all_tasks();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user