summaryrefslogtreecommitdiff
path: root/src/flash/str7x.h
diff options
context:
space:
mode:
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2006-09-12 18:56:48 +0000
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2006-09-12 18:56:48 +0000
commitb855855445489c43de2b796f1ac921e518d787bd (patch)
tree4e826238107cd9b9b2bd3fc981b98393a4b1b668 /src/flash/str7x.h
parent83eeaa6280af46448fbc0eb56a274f01cc1f096a (diff)
downloadopenocd+libswd-b855855445489c43de2b796f1ac921e518d787bd.tar.gz
openocd+libswd-b855855445489c43de2b796f1ac921e518d787bd.tar.bz2
openocd+libswd-b855855445489c43de2b796f1ac921e518d787bd.tar.xz
openocd+libswd-b855855445489c43de2b796f1ac921e518d787bd.zip
- 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
Diffstat (limited to 'src/flash/str7x.h')
-rw-r--r--src/flash/str7x.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flash/str7x.h b/src/flash/str7x.h
index e1d9b2e0..ecf64322 100644
--- a/src/flash/str7x.h
+++ b/src/flash/str7x.h
@@ -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 */