Lines Matching refs:sector
508 bool FlashCtl_isSectorProtected(uint_fast8_t memorySpace, uint32_t sector) in FlashCtl_isSectorProtected() argument
513 return FLCTL->BANK0_MAIN_WEPROT & sector; in FlashCtl_isSectorProtected()
515 return FLCTL->BANK1_MAIN_WEPROT & sector; in FlashCtl_isSectorProtected()
517 ASSERT(sector <= 0x04); in FlashCtl_isSectorProtected()
518 return FLCTL->BANK0_INFO_WEPROT & sector; in FlashCtl_isSectorProtected()
520 ASSERT(sector <= 0x04); in FlashCtl_isSectorProtected()
521 return FLCTL->BANK1_INFO_WEPROT & sector; in FlashCtl_isSectorProtected()
767 uint32_t userFlash, ii, sector, intStatus; in FlashCtl_performMassErase() local
803 sector = getUserFlashSector(ii); in FlashCtl_performMassErase()
805 if (!((FLCTL->BANK0_MAIN_WEPROT) & sector)) in FlashCtl_performMassErase()
814 if (!(FLCTL->BANK1_MAIN_WEPROT & sector)) in FlashCtl_performMassErase()
824 if (sector < FLCTL_BANK0_MAIN_WEPROT_PROT2) in FlashCtl_performMassErase()
826 if (!(FLCTL->BANK0_INFO_WEPROT & sector)) in FlashCtl_performMassErase()
837 if (!(FLCTL->BANK1_INFO_WEPROT & sector)) in FlashCtl_performMassErase()