From c18947b947064e7eceed8047c42d4c8dfd8ae964 Mon Sep 17 00:00:00 2001 From: zwelch Date: Thu, 18 Jun 2009 07:07:12 +0000 Subject: 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 --- src/pld/virtex2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pld/virtex2.c') 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++;; } -- cgit v1.2.3