diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:07:59 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-18 07:07:59 +0000 |
commit | f876d5e9c769a288faa7fd14b7bf373363542aab (patch) | |
tree | 86ad76530f7d44c69471813c4c727f107b018eb5 /src/flash/lpc3180_nand_controller.c | |
parent | c18947b947064e7eceed8047c42d4c8dfd8ae964 (diff) | |
download | riscv-openocd-f876d5e9c769a288faa7fd14b7bf373363542aab.zip riscv-openocd-f876d5e9c769a288faa7fd14b7bf373363542aab.tar.gz riscv-openocd-f876d5e9c769a288faa7fd14b7bf373363542aab.tar.bz2 |
Transform 'u16' to 'uint16_t'
- Replace '\([^_]\)u16' with '\1uint16_t'.
- Replace '^u16' with 'uint16_t'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2277 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc3180_nand_controller.c')
-rw-r--r-- | src/flash/lpc3180_nand_controller.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/lpc3180_nand_controller.c index 6e9b1d1..98648f8 100644 --- a/src/flash/lpc3180_nand_controller.c +++ b/src/flash/lpc3180_nand_controller.c @@ -30,7 +30,7 @@ static int lpc3180_init(struct nand_device_s *device); static int lpc3180_reset(struct nand_device_s *device); static int lpc3180_command(struct nand_device_s *device, uint8_t command); static int lpc3180_address(struct nand_device_s *device, uint8_t address); -static int lpc3180_write_data(struct nand_device_s *device, u16 data); +static int lpc3180_write_data(struct nand_device_s *device, uint16_t data); static int lpc3180_read_data(struct nand_device_s *device, void *data); static int lpc3180_write_page(struct nand_device_s *device, u32 page, uint8_t *data, u32 data_size, uint8_t *oob, u32 oob_size); static int lpc3180_read_page(struct nand_device_s *device, u32 page, uint8_t *data, u32 data_size, uint8_t *oob, u32 oob_size); @@ -410,7 +410,7 @@ static int lpc3180_address(struct nand_device_s *device, uint8_t address) return ERROR_OK; } -static int lpc3180_write_data(struct nand_device_s *device, u16 data) +static int lpc3180_write_data(struct nand_device_s *device, uint16_t data) { lpc3180_nand_controller_t *lpc3180_info = device->controller_priv; target_t *target = lpc3180_info->target; @@ -466,7 +466,7 @@ static int lpc3180_read_data(struct nand_device_s *device, void *data) } else if (device->bus_width == 16) { - u16 *data16 = data; + uint16_t *data16 = data; target_read_u16(target, 0x200b0000, data16); } else @@ -489,7 +489,7 @@ static int lpc3180_read_data(struct nand_device_s *device, void *data) } else if (device->bus_width == 16) { - u16 *data16 = data; + uint16_t *data16 = data; *data16 = data32 & 0xffff; } else |