lib/sw_services/xilisf/examples/xilisf_qspips_stm_intr_example.c
u32 SectorMask(u32 SectorSize){

	u32 Mask;

	switch(SectorSize){
	case 0x10000:
				Mask = 0xFFFF0000;
				break;

	case 0x20000:
				Mask = 0xFFFE0000;
				break;

	case 0x40000:
				Mask = 0xFFFC0000;
				break;

	case 0x80000:
				Mask = 0xFFF80000;
				break;

	default:
			break;
	}

	return Mask;
}
/*****************************************************************************/
/**
*
* This function calculates the sector mask based upon the sector size value
*
*
* @param	SectorSize is the size of the sector of the flash
* 			available on the board.
*
* @return	will return the sector mask after calculation.
*
* @note		None.
*
******************************************************************************/
This function calculates the sector mask based upon the sector size value
This function calculates the sector mask based upon the sector size value
u32 SectorMask(u32 SectorSize){
	u32 Mask;
	switch(SectorSize){
	case 0x10000:
				Mask = 0xFFFF0000;
				break;
	case 0x20000:
				Mask = 0xFFFE0000;
				break;
	case 0x40000:
				Mask = 0xFFFC0000;
				break;
	case 0x80000:
				Mask = 0xFFF80000;
				break;
	default:
			break;
	}
	return Mask;
}
u32 SectorMask ( u32 SectorSize ) { u32 Mask ; switch ( SectorSize ) { case 0x10000 : Mask = 0xFFFF0000 ; break ; case 0x20000 : Mask = 0xFFFE0000 ; break ; case 0x40000 : Mask = 0xFFFC0000 ; break ; case 0x80000 : Mask = 0xFFF80000 ; break ; default : break ; } return Mask ; }
This function calculates the sector mask based upon the sector size value
This function calculates the sector mask based upon the sector size value