Add periph_module needed for BT

This commit is contained in:
Geng Yuchao
2022-06-03 21:47:58 +08:00
parent 8012af37d1
commit c1505d045c
2 changed files with 4 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ void periph_module_reset(periph_module_t periph)
portEXIT_CRITICAL_SAFE(&periph_spinlock);
}
#if CONFIG_ESP32_WIFI_ENABLED
#if CONFIG_ESP32_WIFI_ENABLED || CONFIG_BT_ENABLED
IRAM_ATTR void wifi_bt_common_module_enable(void)
{
portENTER_CRITICAL_SAFE(&periph_spinlock);

View File

@@ -98,6 +98,8 @@ static inline uint32_t periph_ll_get_rst_en_mask(periph_module_t periph, bool en
// Don't assert reset on secure boot, otherwise AES is held in reset
return SYSTEM_CRYPTO_SHA_RST;
}
case PERIPH_MODEM_RPA_MODULE:
return BLE_RPA_REST_BIT;
default:
return 0;
}
@@ -132,6 +134,7 @@ static uint32_t periph_ll_get_rst_en_reg(periph_module_t periph)
case PERIPH_WIFI_BT_COMMON_MODULE:
case PERIPH_BT_BASEBAND_MODULE:
case PERIPH_BT_LC_MODULE:
case PERIPH_MODEM_RPA_MODULE:
return SYSTEM_WIFI_RST_EN_REG;
case PERIPH_SHA_MODULE: