#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdint.h>#include "dbg_msg.h"#include "jt_arm.h"#include "jt_instr.h"#include "jt_flash.h"Flash support functions
| uint32_t jt_philipsflashGenMask | ( | int | start_sector, | |
| int | stop_sector, | |||
| uint32_t | flash_size, | |||
| int | boot_sector_enabled | |||
| ) |
Support Function to generate the sector mask of the Flash.
| start_sector | number of first sector to use | |
| stop_sector | number of last sector to use | |
| flash_size | flach size in bytes | |
| boot_sector_enabled | boot sector enabled |
Referenced by eraseFlashCB_sector(), and programFlashCB_write_sector().