diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:11:11 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:11:11 +0000 |
commit | 86e4324f1bd4cd8135cb857e4b940b1f2e872dc3 (patch) | |
tree | 34af086adb401a42d1de84eade00f3897a5cd174 /src/jtag/presto.c | |
parent | 1840226d555b9863a2315bcc6218671fdfa2af32 (diff) | |
download | riscv-openocd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.zip riscv-openocd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.tar.gz riscv-openocd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.tar.bz2 |
Finish transforming 'u32' to 'uint32_t'.
- Replace '\([^_]\)u32' with '\1uint32_t'.
- Replace '^u32' with 'uint32_t'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2281 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/presto.c')
-rw-r--r-- | src/jtag/presto.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jtag/presto.c b/src/jtag/presto.c index 58389e6..385c93c 100644 --- a/src/jtag/presto.c +++ b/src/jtag/presto.c @@ -128,7 +128,7 @@ static uint8_t presto_init_seq[] = 0x80, 0xA0, 0xA8, 0xB0, 0xC0, 0xE0 }; -static int presto_write(uint8_t *buf, u32 size) +static int presto_write(uint8_t *buf, uint32_t size) { #if BUILD_PRESTO_FTD2XX == 1 DWORD ftbytes; @@ -139,7 +139,7 @@ static int presto_write(uint8_t *buf, u32 size) } #elif BUILD_PRESTO_LIBFTDI == 1 - u32 ftbytes; + uint32_t ftbytes; if ((presto->retval = ftdi_write_data(&presto->ftdic, buf, size)) < 0) { LOG_ERROR("ftdi_write_data: %s", ftdi_get_error_string(&presto->ftdic)); @@ -150,14 +150,14 @@ static int presto_write(uint8_t *buf, u32 size) if (ftbytes != size) { - LOG_ERROR("couldn't write the requested number of bytes to PRESTO (%u < %u)", (u32)ftbytes, size); + LOG_ERROR("couldn't write the requested number of bytes to PRESTO (%u < %u)", (uint32_t)ftbytes, size); return ERROR_JTAG_DEVICE_ERROR; } return ERROR_OK; } -static int presto_read(uint8_t* buf, u32 size) +static int presto_read(uint8_t* buf, uint32_t size) { #if BUILD_PRESTO_FTD2XX == 1 DWORD ftbytes; @@ -168,7 +168,7 @@ static int presto_read(uint8_t* buf, u32 size) } #elif BUILD_PRESTO_LIBFTDI == 1 - u32 ftbytes = 0; + uint32_t ftbytes = 0; struct timeval timeout, now; gettimeofday(&timeout, NULL); @@ -192,7 +192,7 @@ static int presto_read(uint8_t* buf, u32 size) if (ftbytes != size) { /* this is just a warning, there might have been timeout when detecting PRESTO, which is not fatal */ - LOG_WARNING("couldn't read the requested number of bytes from PRESTO (%u < %u)", (u32)ftbytes, size); + LOG_WARNING("couldn't read the requested number of bytes from PRESTO (%u < %u)", (uint32_t)ftbytes, size); return ERROR_JTAG_DEVICE_ERROR; } @@ -202,7 +202,7 @@ static int presto_read(uint8_t* buf, u32 size) #if BUILD_PRESTO_FTD2XX == 1 static int presto_open_ftd2xx(char *req_serial) { - u32 i; + uint32_t i; DWORD numdevs; DWORD vidpid; char devname[FT_DEVICE_NAME_LEN]; |