- allow writes to second flash bank on STR71x devices (cleaned up sector list building)

- cleaned up str7x flash erase and protect code (use two accesses to erase sectors in both banks)


git-svn-id: svn://svn.berlios.de/openocd/trunk@98 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
drath
2006-09-12 18:56:48 +00:00
parent 83eeaa6280
commit b855855445
2 changed files with 142 additions and 57 deletions

View File

@@ -27,7 +27,8 @@ typedef struct str7x_flash_bank_s
{
int bank1;
struct target_s *target;
u32 flash_base;
u32 *sector_bank;
u32 *sector_bits;
working_area_t *write_algorithm;
} str7x_flash_bank_t;
@@ -100,7 +101,7 @@ enum str7x_status_codes
typedef struct str7x_mem_layout_s {
u32 sector_start;
u32 sector_size;
u32 reg_offset;
u32 sector_bit;
} str7x_mem_layout_t;
#endif /* STR7X_H */