diff options
Diffstat (limited to 'src/pld')
-rw-r--r-- | src/pld/virtex2.c | 8 | ||||
-rw-r--r-- | src/pld/xilinx_bit.c | 4 | ||||
-rw-r--r-- | src/pld/xilinx_bit.h | 12 |
3 files changed, 12 insertions, 12 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++;; } diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c index e647a9c5..5dacdac3 100644 --- a/src/pld/xilinx_bit.c +++ b/src/pld/xilinx_bit.c @@ -29,9 +29,9 @@ static int read_section(FILE *input_file, int length_size, char section, - u32 *buffer_length, u8 **buffer) + u32 *buffer_length, uint8_t **buffer) { - u8 length_buffer[4]; + uint8_t length_buffer[4]; int length; char section_char; int read_count; diff --git a/src/pld/xilinx_bit.h b/src/pld/xilinx_bit.h index 505957ab..6e002c46 100644 --- a/src/pld/xilinx_bit.h +++ b/src/pld/xilinx_bit.h @@ -24,13 +24,13 @@ typedef struct xilinx_bit_file_s { - u8 unknown_header[13]; - u8 *source_file; - u8 *part_name; - u8 *date; - u8 *time; + uint8_t unknown_header[13]; + uint8_t *source_file; + uint8_t *part_name; + uint8_t *date; + uint8_t *time; u32 length; - u8 *data; + uint8_t *data; } xilinx_bit_file_t; int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, char *filename); |