refactor(twai): add reset and clock control to twai LL layer

This commit is contained in:
morris
2023-08-29 22:19:57 +08:00
parent f0fba3fc4c
commit 47bb157cab
13 changed files with 256 additions and 30 deletions
+2 -2
View File
@@ -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);
}