mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Modify spinlock error in periph_ctrl.c
This commit is contained in:
parent
e523a2532a
commit
d82cb7f60f
@ -92,7 +92,7 @@ void periph_module_enable(periph_module_t periph)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
portENTER_CRITICAL(&periph_spinlock);
|
||||
portEXIT_CRITICAL(&periph_spinlock);
|
||||
}
|
||||
|
||||
void periph_module_disable(periph_module_t periph)
|
||||
@ -166,5 +166,5 @@ void periph_module_disable(periph_module_t periph)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
portENTER_CRITICAL(&periph_spinlock);
|
||||
portEXIT_CRITICAL(&periph_spinlock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user