flash/stm32h7x: use proper data type (bool) for has_dual_bank
[openocd.git] / src / flash / nor / stm32h7x.c
index 6edbc00fa80de6714a6c8279cfd03ee78f2e735d..1e2b35159053cdd40b503b8f208839583345b25f 100644 (file)
@@ -114,13 +114,13 @@ struct stm32h7x_part_info {
        const struct stm32h7x_rev *revs;
        size_t num_revs;
        unsigned int page_size_kb;
-       unsigned int block_size;     /* flash write word size in bytes */
+       unsigned int block_size;    /* flash write word size in bytes */
        uint16_t max_flash_size_kb;
-       uint8_t has_dual_bank;
-       uint16_t max_bank_size_kb; /* Used when has_dual_bank is true */
-       uint32_t flash_regs_base;    /* Flash controller registers location */
-       uint32_t fsize_addr;         /* Location of FSIZE register */
-       uint32_t wps_group_size; /* write protection group sectors' count */
+       bool has_dual_bank;
+       uint16_t max_bank_size_kb;  /* Used when has_dual_bank is true */
+       uint32_t flash_regs_base;   /* Flash controller registers location */
+       uint32_t fsize_addr;        /* Location of FSIZE register */
+       uint32_t wps_group_size;    /* write protection group sectors' count */
        uint32_t wps_mask;
        /* function to compute flash_cr register values */
        uint32_t (*compute_flash_cr)(uint32_t cmd, int snb);
@@ -174,7 +174,7 @@ static const struct stm32h7x_part_info stm32h7x_parts[] = {
        .block_size                     = 32,
        .max_flash_size_kb      = 2048,
        .max_bank_size_kb       = 1024,
-       .has_dual_bank          = 1,
+       .has_dual_bank          = true,
        .flash_regs_base        = FLASH_REG_BASE_B0,
        .fsize_addr                     = 0x1FF1E880,
        .wps_group_size         = 1,
@@ -190,7 +190,7 @@ static const struct stm32h7x_part_info stm32h7x_parts[] = {
        .block_size                     = 16,
        .max_flash_size_kb      = 2048,
        .max_bank_size_kb       = 1024,
-       .has_dual_bank          = 1,
+       .has_dual_bank          = true,
        .flash_regs_base        = FLASH_REG_BASE_B0,
        .fsize_addr                     = 0x08FFF80C,
        .wps_group_size         = 4,

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)