summaryrefslogtreecommitdiff
path: root/src/pld
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
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')
-rw-r--r--src/pld/virtex2.c8
-rw-r--r--src/pld/xilinx_bit.c4
-rw-r--r--src/pld/xilinx_bit.h12
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);