17 if (sector <= 3 || (sector >= 12 && sector <= 15))
19 else if (sector == 4 || sector == 16)
21 else if ((sector >= 5 && sector <= 11) || (sector >= 17 && sector <= 23))
26 #define TM_ID_GetFlashSize() (*(__IO uint16_t *) (FLASHSIZE_BASE))
30 if (TM_ID_GetFlashSize() <= 512)
37 if (TM_ID_GetFlashSize() <= 512)
85 SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
86 PWR->CR |= PWR_CR_PDDS;
87 PWR->CR |= PWR_CR_CSBF;
bool allowFlashWhileRunning()
uintptr_t getFlashAddrSecondCopy()
uintptr_t getFlashAddrFirstCopy()
size_t flashSectorSize(flashsector_t sector)
Get the size of sector.
uint8_t flashsector_t
Index of a sector.
void boardPrepareForStandby()