summaryrefslogtreecommitdiff
path: root/src/pld/virtex2.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:07:12 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:07:12 +0000
commitc18947b947064e7eceed8047c42d4c8dfd8ae964 (patch)
tree095162ab48bb63952b95a8d65a98d276e3d63775 /src/pld/virtex2.c
parent310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c (diff)
downloadopenocd+libswd-c18947b947064e7eceed8047c42d4c8dfd8ae964.tar.gz
openocd+libswd-c18947b947064e7eceed8047c42d4c8dfd8ae964.tar.bz2
openocd+libswd-c18947b947064e7eceed8047c42d4c8dfd8ae964.tar.xz
openocd+libswd-c18947b947064e7eceed8047c42d4c8dfd8ae964.zip
Transform 'u8' to 'uint8_t'
- Replace '\([^_]\)u8' with '\1uint8_t'. - Replace '^u8' with 'uint8_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2276 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/pld/virtex2.c')
-rw-r--r--src/pld/virtex2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c
index 6af83beb..57af0f18 100644
--- a/src/pld/virtex2.c
+++ b/src/pld/virtex2.c
@@ -66,7 +66,7 @@ static int virtex2_send_32(struct pld_device_s *pld_device,
{
virtex2_pld_device_t *virtex2_info = pld_device->driver_priv;
scan_field_t scan_field;
- u8 *values;
+ uint8_t *values;
int i;
values = malloc(num_words * 4);
@@ -88,7 +88,7 @@ static int virtex2_send_32(struct pld_device_s *pld_device,
return ERROR_OK;
}
-static __inline__ void virtexflip32(u8 *in)
+static __inline__ void virtexflip32(uint8_t *in)
{
*((u32 *)in) = flip_u32(le_to_h_u32(in), 32);
}
@@ -108,11 +108,11 @@ static int virtex2_receive_32(struct pld_device_s *pld_device,
while (num_words--)
{
- scan_field.in_value = (u8 *)words;
+ scan_field.in_value = (uint8_t *)words;
jtag_add_dr_scan(1, &scan_field, jtag_set_end_state(TAP_DRPAUSE));
- jtag_add_callback(virtexflip32, (u8 *)words);
+ jtag_add_callback(virtexflip32, (uint8_t *)words);
words++;;
}