Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e98706

Browse files
committed
Merge branch 'feature/remove_spi_flash_unused_calling_api' into 'master'
Remove SPI flash unused calling APIs See merge request sdk/ESP8266_RTOS_SDK!620
2 parents 2e391bf + 9ce7525 commit 2e98706

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

components/spi_flash/src/spi_flash.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
#define NOT_ALIGN(addr) (((size_t)addr) & (FLASH_ALIGN_BYTES - 1))
6262
#define IS_ALIGN(addr) (NOT_ALIGN(addr) == 0)
6363

64-
extern void pp_soft_wdt_stop(void);
65-
extern void pp_soft_wdt_restart(void);
66-
6764
extern void vPortEnterCritical(void);
6865
extern void vPortExitCritical(void);
6966

@@ -464,13 +461,11 @@ esp_err_t spi_flash_erase_sector(size_t sec)
464461
}
465462

466463
FLASH_INTR_LOCK(c_tmp);
467-
pp_soft_wdt_stop();
468464
FlashIsOnGoing = 1;
469465

470466
ret = spi_flash_erase_sector_raw(&flashchip, sec, flashchip.sector_size);
471467

472468
FlashIsOnGoing = 0;
473-
pp_soft_wdt_restart();
474469
FLASH_INTR_UNLOCK(c_tmp);
475470

476471
return ret;
@@ -520,13 +515,11 @@ static esp_err_t __spi_flash_write(size_t dest_addr, const void *src, size_t siz
520515
FLASH_INTR_DECLARE(c_tmp);
521516

522517
FLASH_INTR_LOCK(c_tmp);
523-
pp_soft_wdt_stop();
524518
FlashIsOnGoing = 1;
525519

526520
ret = spi_flash_program(dest_addr, (uint32_t *)src, size);
527521

528522
FlashIsOnGoing = 0;
529-
pp_soft_wdt_restart();
530523
FLASH_INTR_UNLOCK(c_tmp);
531524

532525
return ret;
@@ -624,13 +617,11 @@ static esp_err_t __spi_flash_read(size_t src_addr, void *dest, size_t size)
624617
FLASH_INTR_DECLARE(c_tmp);
625618

626619
FLASH_INTR_LOCK(c_tmp);
627-
pp_soft_wdt_stop();
628620
FlashIsOnGoing = 1;
629621

630622
ret = spi_flash_read_raw(&flashchip, src_addr, dest, size);
631623

632624
FlashIsOnGoing = 0;
633-
pp_soft_wdt_restart();
634625
FLASH_INTR_UNLOCK(c_tmp);
635626

636627
return ret == 0 ? ESP_OK : ESP_ERR_FLASH_OP_FAIL;

0 commit comments

Comments
 (0)