mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-02 06:40:47 +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();
|
shutdown_radio_isr();
|
||||||
|
|
||||||
#[cfg(feature = "builtin-scheduler")]
|
|
||||||
preempt_builtin::disable_timer();
|
|
||||||
|
|
||||||
// This shuts down the task switcher and timer tick interrupt.
|
// This shuts down the task switcher and timer tick interrupt.
|
||||||
preempt::disable();
|
preempt::disable();
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ use core::{ffi::c_void, mem::MaybeUninit};
|
|||||||
|
|
||||||
use allocator_api2::boxed::Box;
|
use allocator_api2::boxed::Box;
|
||||||
use arch_specific::*;
|
use arch_specific::*;
|
||||||
use timer::{disable_multitasking, setup_multitasking};
|
pub(crate) use timer::setup_timer;
|
||||||
pub(crate) use timer::{disable_timer, setup_timer};
|
use timer::{disable_multitasking, disable_timer, setup_multitasking};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
compat::malloc::InternalMemory,
|
compat::malloc::InternalMemory,
|
||||||
@ -128,6 +128,7 @@ impl Scheduler for BuiltinScheduler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn disable(&self) {
|
fn disable(&self) {
|
||||||
|
disable_timer();
|
||||||
disable_multitasking();
|
disable_multitasking();
|
||||||
delete_all_tasks();
|
delete_all_tasks();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user