fix: do not init the watchdog in flash driver (#5321)

This commit is contained in:
Raphael Coeffic
2024-07-25 18:27:59 +10:00
committed by GitHub
parent 061f39fd79
commit e9a2b7e31c
3 changed files with 2 additions and 5 deletions
@@ -79,8 +79,6 @@ void lockFlash()
void eraseSector(uint32_t sector)
{
WDG_ENABLE(3000); // some sectors may take > 1s to erase
waitFlashIdle();
#if defined(FLASH_CR_PSIZE)
@@ -97,8 +95,6 @@ void eraseSector(uint32_t sector)
/* if the erase operation is completed, disable the SER Bit */
FLASH_CR &= (~FLASH_CR_SER);
FLASH_CR &= SECTOR_MASK;
WDG_ENABLE(WDG_DURATION);
}
void flashWrite(uint32_t * address, const uint32_t * buffer) // page size is 256 bytes