openocd/src
Tarek BOCHKATI dc43ecce5a flash/stm32l4x: introduce table with register offsets
This change is a preparation for STM32L5 support on top of L4 driver
STM32L5 flash is quite similar to L4 flash, mainly register names
and offsets and some bits are changed.

flash_regs table is introduced within stm32l4_flash_bank struct in order
to get correct register offsets, by using the driver internal function
'stm32l4_get_flash_reg_by_index'.

To use efficiently register indexes, stm32l4 _[get|read|write]_flash_reg
functions are surcharged to accept register indexes.

IMPORTANT: stm32l4_write_option is not surcharged, and they always accept
the option register offset.

tested on NUCLEO-G474RE and STM32L4R9I-DISCO

Change-Id: I739d3e97d63b831af6aa569c5629db0000209551
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5509
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2020-11-15 21:42:17 +00:00
..
flash flash/stm32l4x: introduce table with register offsets 2020-11-15 21:42:17 +00:00
helper helper/command: fix clang static analyzer warning 2020-11-04 17:35:14 +00:00
jtag jtag/drivers/cmsis_dap: fix build with gcc 10.1.0 2020-11-15 21:38:29 +00:00
pld openocd: use proper format with uint32_t 2020-09-05 17:12:44 +01:00
rtos rtos: make private the API rtos_try_next() 2020-11-04 17:39:42 +00:00
server target, register: allow a register hidden from gdb and 'reg' cmd 2020-11-15 21:05:37 +00:00
svf openocd: fix command's usage string 2020-09-05 17:13:10 +01:00
target target/armv7m, cortex_m: fix misleading comments 2020-11-15 21:09:08 +00:00
transport build: fix build with --enable-minidriver-dummy 2020-11-07 20:53:39 +00:00
xsvf openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
hello.c helper/command: change prototype of command_print/command_print_sameline 2019-05-14 19:37:11 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
openocd.c openocd: convert function setup_command_handler() to static 2020-11-04 17:40:14 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00