summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:04:14 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:12 -0800
commit22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa (patch)
tree3aa5f2989e59d14d002ff0d2600aae2f8f99f320
parent18475360b253e52eae7d070421523d5d7636383d (diff)
downloadopenocd+libswd-22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa.tar.gz
openocd+libswd-22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa.tar.bz2
openocd+libswd-22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa.tar.xz
openocd+libswd-22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa.zip
arm9tdmi_vector_t -> struct arm9tdmi_vector
Remove misleading typedef and redundant suffix from struct arm9tdmi_vector. Renames enum arm9tdmi_vector as enum arm9tdmi_vector_bit.
-rw-r--r--src/target/arm9tdmi.c2
-rw-r--r--src/target/arm9tdmi.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c
index 5e034934..fdd395a5 100644
--- a/src/target/arm9tdmi.c
+++ b/src/target/arm9tdmi.c
@@ -45,7 +45,7 @@
#define _DEBUG_INSTRUCTION_EXECUTION_
#endif
-static const arm9tdmi_vector_t arm9tdmi_vectors[] =
+static const struct arm9tdmi_vector arm9tdmi_vectors[] =
{
{"reset", ARM9TDMI_RESET_VECTOR},
{"undef", ARM9TDMI_UNDEF_VECTOR},
diff --git a/src/target/arm9tdmi.h b/src/target/arm9tdmi.h
index 55223179..2e25b52c 100644
--- a/src/target/arm9tdmi.h
+++ b/src/target/arm9tdmi.h
@@ -33,13 +33,13 @@ struct arm9tdmi_common
struct arm7_9_common arm7_9_common;
};
-typedef struct arm9tdmi_vector_s
+struct arm9tdmi_vector
{
char *name;
uint32_t value;
-} arm9tdmi_vector_t;
+};
-enum arm9tdmi_vector
+enum arm9tdmi_vector_bit
{
ARM9TDMI_RESET_VECTOR = 0x01,
ARM9TDMI_UNDEF_VECTOR = 0x02,