From 310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c Mon Sep 17 00:00:00 2001 From: zwelch Date: Thu, 18 Jun 2009 07:06:25 +0000 Subject: Transform 'u8' to 'uint8_t' in src/flash - Replace '\([^_]\)u8' with '\1uint8_t'. - Replace '^u8' with 'uint8_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2275 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/flash/flash.c') diff --git a/src/flash/flash.c b/src/flash/flash.c index 3dffb1f2..2df0989e 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -85,7 +85,7 @@ flash_bank_t *flash_banks; static command_t *flash_cmd; /* wafer thin wrapper for invoking the flash driver */ -static int flash_driver_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) +static int flash_driver_write(struct flash_bank_s *bank, uint8_t *buffer, u32 offset, u32 count) { int retval; @@ -710,8 +710,8 @@ static int handle_flash_fill_command(struct command_context_s *cmd_ctx, char *cm u32 address; u32 pattern; u32 count; - u8 chunk[1024]; - u8 readback[1024]; + uint8_t chunk[1024]; + uint8_t readback[1024]; u32 wrote = 0; u32 cur_size = 0; u32 chunk_count; @@ -823,7 +823,7 @@ static int handle_flash_fill_command(struct command_context_s *cmd_ctx, char *cm static int handle_flash_write_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { u32 offset; - u8 *buffer; + uint8_t *buffer; u32 buf_cnt; fileio_t fileio; @@ -1004,7 +1004,7 @@ int flash_write(target_t *target, image_t *image, u32 *written, int erase) while (section < image->num_sections) { u32 buffer_size; - u8 *buffer; + uint8_t *buffer; int section_first; int section_last; u32 run_address = image->sections[section].base_address + section_offset; @@ -1129,7 +1129,7 @@ int flash_write(target_t *target, image_t *image, u32 *written, int erase) int default_flash_mem_blank_check(struct flash_bank_s *bank) { target_t *target = bank->target; - u8 buffer[1024]; + uint8_t buffer[1024]; int buffer_size = sizeof(buffer); int i; u32 nBytes; -- cgit v1.2.3