diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-25 07:32:52 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-02-25 07:32:52 +0000 |
commit | 815c3b353307796fb4d86a1880679dacaed00b6e (patch) | |
tree | b63a1c37b480f52cbb077230e7e3d68ed87c3baf /src/target | |
parent | d8456e48260519a7e1d5d4b4efee51f985e981c6 (diff) | |
download | openocd_libswd-815c3b353307796fb4d86a1880679dacaed00b6e.tar.gz openocd_libswd-815c3b353307796fb4d86a1880679dacaed00b6e.tar.bz2 openocd_libswd-815c3b353307796fb4d86a1880679dacaed00b6e.tar.xz openocd_libswd-815c3b353307796fb4d86a1880679dacaed00b6e.zip |
- "flash write_binary" is now "flash write_bank" to clarify the focus of the
command and reduce confusion with "flash write_image".
- retired deprecated "flash erase" & "flash write".
- added flash_driver_protect/write/erase() that are wafer thin frontend
functions to low level driver functions. They implement checks
that were inconsistently handled by the drivers, e.g. check for
target halted was done in a spotty fashion.
- use return ERROR_COMMAND_SYNTAX_ERROR to print out
syntax of command instead of having lots of inlined replicas of
the command line syntax(some of which were wrong).
- use logging instead of dubious translation of error values to
human understandable explanations of why things failed.
The lower levels log the precise reason and the higher
levels can ammend context as the error propagates up
the call stack.
- simplified flash API slightly with logging instead of
allocating and returning information that the caller then
has to translate into print statements.
git-svn-id: svn://svn.berlios.de/openocd/trunk@337 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/target.h b/src/target/target.h index 7c07288b..086b28bc 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -254,6 +254,9 @@ int target_write_u32(struct target_s *target, u32 address, u32 value); int target_write_u16(struct target_s *target, u32 address, u16 value); int target_write_u8(struct target_s *target, u32 address, u8 value); +/* Issues USER() statements with target state information */ +int target_arch_state(struct target_s *target); + #define ERROR_TARGET_INVALID (-300) #define ERROR_TARGET_INIT_FAILED (-301) #define ERROR_TARGET_TIMEOUT (-302) |