66
Dependencies: mbed-dev-f303 FastPWM3
Diff: FlashWriter/FlashWriter.cpp
- Revision:
- 50:9d762c5d05c3
- Parent:
- 23:2adf23ee0305
--- a/FlashWriter/FlashWriter.cpp Thu Jan 09 01:42:00 2020 +0000 +++ b/FlashWriter/FlashWriter.cpp Mon Mar 29 07:08:14 2021 +0000 @@ -13,7 +13,7 @@ } void FlashWriter::open() { - FLASH_Unlock(); + FLASH_Unlock();//Unlocks the FLASH control register access FLASH_ClearFlag( FLASH_FLAG_EOP | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR); FLASH_EraseSector(__SECTORS[__sector], VoltageRange_3); __ready = true;