Transform 'u8' to 'uint8_t' in src/flash
[openocd.git] / src / flash / flash.c
index 3dffb1f28e0faff2a99a501e33d4bd24cad63345..2df0989e3a3233da861f91ecec621b126767b9cd 100644 (file)
@@ -85,7 +85,7 @@ flash_bank_t *flash_banks;
 static         command_t *flash_cmd;
 
 /* wafer thin wrapper for invoking the flash driver */
 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;
 
 {
        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;
        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;
        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;
 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;
        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;
        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;
                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;
 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;
        int buffer_size = sizeof(buffer);
        int i;
        u32 nBytes;

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)