mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-18 15:23:43 +08:00
feat(esp8266): remove unused function in old SDK
This commit is contained in:
@ -1,10 +1,10 @@
|
|||||||
gwen:
|
gwen:
|
||||||
crypto: 137694e
|
crypto: a6e02f7
|
||||||
espnow: 137694e
|
espnow: 137694e
|
||||||
core: ef2df9d
|
core: a6e02f7
|
||||||
net80211: 52dd0c7
|
net80211: a6e02f7
|
||||||
pp: 137694e
|
pp: a6e02f7
|
||||||
pwm: 0181338
|
pwm: 0181338
|
||||||
smartconfig:9ec59b5
|
smartconfig:9ec59b5
|
||||||
wpa: 68ec0eb
|
wpa: a6e02f7
|
||||||
wps: 137694e
|
wps: 137694e
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -121,7 +121,6 @@ typedef struct {
|
|||||||
uint8_t dummy_bits;
|
uint8_t dummy_bits;
|
||||||
} spi_cmd_t;
|
} spi_cmd_t;
|
||||||
|
|
||||||
extern bool spi_flash_erase_sector_check(uint32_t);
|
|
||||||
extern uint32_t esp_get_time();
|
extern uint32_t esp_get_time();
|
||||||
|
|
||||||
bool IRAM_ATTR spi_user_cmd(spi_cmd_dir_t mode, spi_cmd_t *p_cmd);
|
bool IRAM_ATTR spi_user_cmd(spi_cmd_dir_t mode, spi_cmd_t *p_cmd);
|
||||||
@ -131,7 +130,6 @@ uint8_t en25q16x_read_sfdp();
|
|||||||
|
|
||||||
extern void pp_soft_wdt_stop(void);
|
extern void pp_soft_wdt_stop(void);
|
||||||
extern void pp_soft_wdt_restart(void);
|
extern void pp_soft_wdt_restart(void);
|
||||||
extern bool protect_flag ;
|
|
||||||
|
|
||||||
esp_spi_flash_chip_t flashchip = {
|
esp_spi_flash_chip_t flashchip = {
|
||||||
0x1640ef,
|
0x1640ef,
|
||||||
@ -412,12 +410,6 @@ esp_err_t IRAM_ATTR spi_flash_erase_sector(size_t sec)
|
|||||||
{
|
{
|
||||||
FLASH_INTR_DECLARE(c_tmp);
|
FLASH_INTR_DECLARE(c_tmp);
|
||||||
|
|
||||||
if (protect_flag == true)
|
|
||||||
{
|
|
||||||
if (false == spi_flash_erase_sector_check(sec))
|
|
||||||
return ESP_ERR_FLASH_OP_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
esp_err_t ret;
|
esp_err_t ret;
|
||||||
|
|
||||||
if (spi_flash_check_wr_protect() == false) {
|
if (spi_flash_check_wr_protect() == false) {
|
||||||
@ -897,9 +889,7 @@ esp_err_t IRAM_ATTR spi_flash_erase_range(size_t start_address, size_t size)
|
|||||||
return ESP_ERR_FLASH_OP_FAIL;
|
return ESP_ERR_FLASH_OP_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((protect_flag == true
|
if (spi_flash_check_wr_protect() == false) {
|
||||||
&& false == spi_flash_erase_sector_check(start_address))
|
|
||||||
|| spi_flash_check_wr_protect() == false) {
|
|
||||||
return ESP_ERR_FLASH_OP_FAIL;
|
return ESP_ERR_FLASH_OP_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user