summaryrefslogtreecommitdiff
path: root/src/flash/lpc288x.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:06:25 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:06:25 +0000
commit310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c (patch)
treef345d52ac4c5e3b57ceb34038561884198599c53 /src/flash/lpc288x.c
parent86173cdbddde781b19ac630602f2d450a59b32b5 (diff)
downloadopenocd+libswd-310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c.tar.gz
openocd+libswd-310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c.tar.bz2
openocd+libswd-310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c.tar.xz
openocd+libswd-310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c.zip
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
Diffstat (limited to 'src/flash/lpc288x.c')
-rw-r--r--src/flash/lpc288x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c
index 152432e0..54003399 100644
--- a/src/flash/lpc288x.c
+++ b/src/flash/lpc288x.c
@@ -88,7 +88,7 @@ static int lpc288x_register_commands(struct command_context_s *cmd_ctx);
static int lpc288x_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank);
static int lpc288x_erase(struct flash_bank_s *bank, int first, int last);
static int lpc288x_protect(struct flash_bank_s *bank, int set, int first, int last);
-static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count);
+static int lpc288x_write(struct flash_bank_s *bank, uint8_t *buffer, u32 offset, u32 count);
static int lpc288x_probe(struct flash_bank_s *bank);
static int lpc288x_erase_check(struct flash_bank_s *bank);
static int lpc288x_protect_check(struct flash_bank_s *bank);
@@ -315,9 +315,9 @@ static int lpc288x_erase(struct flash_bank_s *bank, int first, int last)
return ERROR_OK;
}
-static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
+static int lpc288x_write(struct flash_bank_s *bank, uint8_t *buffer, u32 offset, u32 count)
{
- u8 page_buffer[FLASH_PAGE_SIZE];
+ uint8_t page_buffer[FLASH_PAGE_SIZE];
u32 status, source_offset,dest_offset;
target_t *target = bank->target;
u32 bytes_remaining = count;