mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
refactor(twai): add reset and clock control to twai LL layer
This commit is contained in:
@@ -19,12 +19,12 @@ static portMUX_TYPE periph_spinlock = portMUX_INITIALIZER_UNLOCKED;
|
||||
|
||||
static uint8_t ref_counts[PERIPH_MODULE_MAX] = {0};
|
||||
|
||||
void periph_rcc_enter(void)
|
||||
IRAM_ATTR void periph_rcc_enter(void)
|
||||
{
|
||||
portENTER_CRITICAL_SAFE(&periph_spinlock);
|
||||
}
|
||||
|
||||
void periph_rcc_exit(void)
|
||||
IRAM_ATTR void periph_rcc_exit(void)
|
||||
{
|
||||
portEXIT_CRITICAL_SAFE(&periph_spinlock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user