Code: Select all
if((addr >= ADDR_FLASH_SECTOR_0) && (addr < (ADDR_FLASH_SECTOR_0 + SIZE_FLASH_SECTOR_0)))
return 0;
else if((addr >= ADDR_FLASH_SECTOR_1) && (addr < (ADDR_FLASH_SECTOR_1 + SIZE_FLASH_SECTOR_1)))
return 1;
else ...
Code: Select all
if((addr >= ADDR_FLASH_SECTOR_0) && (addr < (ADDR_FLASH_SECTOR_0 + SIZE_FLASH_SECTOR_0)))
return 0;
else if((addr >= ADDR_FLASH_SECTOR_1) && (addr < (ADDR_FLASH_SECTOR_1 + SIZE_FLASH_SECTOR_1)))
return 1;
else ...
Users browsing this forum: No registered users and 141 guests