mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 19:54:32 +02:00
fix ble restart faild when enable ble sleep
This commit is contained in:
committed by
zwj
parent
bdafdbbf3d
commit
28fd413bf5
@@ -93,7 +93,7 @@ void IRAM_ATTR esp_restart_noos(void)
|
|||||||
SYSTEM_BB_RST | SYSTEM_FE_RST | SYSTEM_MAC_RST |
|
SYSTEM_BB_RST | SYSTEM_FE_RST | SYSTEM_MAC_RST |
|
||||||
SYSTEM_BT_RST | SYSTEM_BTMAC_RST | SYSTEM_SDIO_RST |
|
SYSTEM_BT_RST | SYSTEM_BTMAC_RST | SYSTEM_SDIO_RST |
|
||||||
SYSTEM_SDIO_HOST_RST | SYSTEM_EMAC_RST | SYSTEM_MACPWR_RST |
|
SYSTEM_SDIO_HOST_RST | SYSTEM_EMAC_RST | SYSTEM_MACPWR_RST |
|
||||||
SYSTEM_RW_BTMAC_RST | SYSTEM_RW_BTLP_RST);
|
SYSTEM_RW_BTMAC_RST | SYSTEM_RW_BTLP_RST | SYSTEM_BLE_REG_RST | SYSTEM_PWR_REG_RST | SYSTEM_BB_REG_RST);
|
||||||
REG_WRITE(SYSTEM_CORE_RST_EN_REG, 0);
|
REG_WRITE(SYSTEM_CORE_RST_EN_REG, 0);
|
||||||
|
|
||||||
// Reset timer/spi/uart
|
// Reset timer/spi/uart
|
||||||
|
@@ -214,6 +214,9 @@ extern "C" {
|
|||||||
#define SYSTEM_WIFI_RST_M ((SYSTEM_WIFI_RST_V) << (SYSTEM_WIFI_RST_S))
|
#define SYSTEM_WIFI_RST_M ((SYSTEM_WIFI_RST_V) << (SYSTEM_WIFI_RST_S))
|
||||||
#define SYSTEM_WIFI_RST_V 0xFFFFFFFF
|
#define SYSTEM_WIFI_RST_V 0xFFFFFFFF
|
||||||
#define SYSTEM_WIFI_RST_S 0
|
#define SYSTEM_WIFI_RST_S 0
|
||||||
|
#define SYSTEM_BB_REG_RST (BIT(13))
|
||||||
|
#define SYSTEM_PWR_REG_RST (BIT(12))
|
||||||
|
#define SYSTEM_BLE_REG_RST (BIT(11))
|
||||||
#define SYSTEM_RW_BTLP_RST (BIT(10))
|
#define SYSTEM_RW_BTLP_RST (BIT(10))
|
||||||
#define SYSTEM_RW_BTMAC_RST (BIT(9))
|
#define SYSTEM_RW_BTMAC_RST (BIT(9))
|
||||||
#define SYSTEM_MACPWR_RST (BIT(8))
|
#define SYSTEM_MACPWR_RST (BIT(8))
|
||||||
|
Reference in New Issue
Block a user