diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-12 21:31:11 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-12 21:31:11 +0000 |
commit | a92cc405ac5775ad97c0d0e72ca9233dcfdc8228 (patch) | |
tree | 84c7eb7d706d6cd7892d05e8feecfd324ab510de /src/flash/mflash.h | |
parent | 7fdce0e8bcee36a4fa183c8fc579e7d60d521333 (diff) | |
download | riscv-openocd-a92cc405ac5775ad97c0d0e72ca9233dcfdc8228.zip riscv-openocd-a92cc405ac5775ad97c0d0e72ca9233dcfdc8228.tar.gz riscv-openocd-a92cc405ac5775ad97c0d0e72ca9233dcfdc8228.tar.bz2 |
unsik Kim <donari75@gmail.com>:
Improve error handling in mflash driver.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2221 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/mflash.h')
-rw-r--r-- | src/flash/mflash.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/flash/mflash.h b/src/flash/mflash.h index b42eaef..a62e83d 100644 --- a/src/flash/mflash.h +++ b/src/flash/mflash.h @@ -178,6 +178,13 @@ extern int mflash_init_drivers(struct command_context_s *cmd_ctx); #define MG_FILEIO_CHUNK 1048576 +#define ERROR_MG_IO (-1600) +#define ERROR_MG_TIMEOUT (-1601) +#define ERROR_MG_INVALID_PLL (-1603) +#define ERROR_MG_INTERFACE (-1604) +#define ERROR_MG_INVALID_OSC (-1605) +#define ERROR_MG_UNSUPPORTED_SOC (-1606) + typedef enum _mg_io_type_wait{ mg_io_wait_bsy = 1, |