/* This function is only for Micron 128MB flash to access beyond 16MB by switching between eight 16MB-area(segment). Please refer to flash datasheet for more information about memory mapping.  */
int flash_set_extend_addr(flash_t *obj, u32 data)
/* This function is only for Micron 128MB flash to access beyond 16MB by switching between eight 16MB-area(segment). Please refer to flash datasheet for more information about memory mapping.  */
int flash_set_extend_addr(flash_t *obj, u32 data)
{
	( void ) obj;
	u8 segnum = (u8)(data & 0x07);
	FLASH_Write_Lock();
	FLASH_SetStatus(0xC5, 1, &segnum);
	FLASH_Write_Unlock();
	return 1;
}