summaryrefslogtreecommitdiff
path: root/src/jtag
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 04:57:03 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:05 -0800
commit9036fdd589b20f7a5f2757a1ad01ca7e47a68fab (patch)
treeef97b7b08fd1912d917427dc6f2926c9b4bcedb9 /src/jtag
parente1c26950c03b09efe42b8a25dd83f1e50e22a507 (diff)
downloadopenocd_libswd-9036fdd589b20f7a5f2757a1ad01ca7e47a68fab.tar.gz
openocd_libswd-9036fdd589b20f7a5f2757a1ad01ca7e47a68fab.tar.bz2
openocd_libswd-9036fdd589b20f7a5f2757a1ad01ca7e47a68fab.tar.xz
openocd_libswd-9036fdd589b20f7a5f2757a1ad01ca7e47a68fab.zip
cable_t -> struct cable
Remove useless typedef and redundant suffix from parport struct cable.
Diffstat (limited to 'src/jtag')
-rw-r--r--src/jtag/parport.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/jtag/parport.c b/src/jtag/parport.c
index d4d9b22d..b9396a99 100644
--- a/src/jtag/parport.c
+++ b/src/jtag/parport.c
@@ -59,8 +59,7 @@
/* parallel port cable description
*/
-typedef struct cable_s
-{
+struct cable {
char* name;
uint8_t TDO_MASK; /* status port bit containing current TDO value */
uint8_t TRST_MASK; /* data port bit for TRST */
@@ -73,9 +72,9 @@ typedef struct cable_s
uint8_t PORT_INIT; /* initialize data port with this value */
uint8_t PORT_EXIT; /* de-initialize data port with this value */
uint8_t LED_MASK; /* data port bit for LED */
-} cable_t;
+};
-static cable_t cables[] =
+static struct cable cables[] =
{
/* name tdo trst tms tck tdi srst o_inv i_inv init exit led */
{ "wiggler", 0x80, 0x10, 0x02, 0x04, 0x08, 0x01, 0x01, 0x80, 0x80, 0x80, 0x00 },
@@ -110,7 +109,7 @@ static int wait_states;
/* interface variables
*/
-static cable_t* cable;
+static struct cable* cable;
static uint8_t dataport_value = 0x0;
#if PARPORT_USE_PPDEV == 1
@@ -264,7 +263,7 @@ static struct bitbang_interface parport_bitbang = {
static int parport_init(void)
{
- cable_t *cur_cable;
+ struct cable *cur_cable;
#if PARPORT_USE_PPDEV == 1
char buffer[256];
int i = 0;