From: OpenOCD-Gerrit <ope...@us...> - 2020-03-20 07:09:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 1891c2d26e240a76b2a5a1761ff0da7693d89901 (commit) from 140fe7f7145cb1159e9f530067e8acc62a3584b3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1891c2d26e240a76b2a5a1761ff0da7693d89901 Author: Tarek BOCHKATI <tar...@gm...> Date: Tue Mar 17 16:31:51 2020 +0100 flash/stm32h7x: use proper data type (bool) for has_dual_bank + minor changes in comments' alignment to please our eyes Change-Id: Ifa35a1032afc4e9aee524f596c0298a9eea49c37 Signed-off-by: Tarek BOCHKATI <tar...@gm...> Reviewed-on: http://openocd.zylin.com/5500 Tested-by: jenkins Reviewed-by: Christopher Head <ch...@za...> diff --git a/src/flash/nor/stm32h7x.c b/src/flash/nor/stm32h7x.c index 6edbc00fa..1e2b35159 100644 --- a/src/flash/nor/stm32h7x.c +++ b/src/flash/nor/stm32h7x.c @@ -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, ----------------------------------------------------------------------- Summary of changes: src/flash/nor/stm32h7x.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) hooks/post-receive -- Main OpenOCD repository |