]> git.gag.com Git - fw/openocd/commit
flash/stm32l4x: always use stm32l4_get_flash_reg
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Mon, 9 Mar 2020 18:10:56 +0000 (19:10 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Sun, 3 May 2020 20:43:13 +0000 (21:43 +0100)
commit880508f68fc58aa00ce5b7005e06221dba89c69e
tree5c219047bc2a5e2f11765830ea726f9fc260c440
parentf6cf18556420cd2d7fb747866392b118ec71c036
flash/stm32l4x: always use stm32l4_get_flash_reg

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.
a table with register offset will be introduced, thus correct register
addresses will be obtained using this table and the driver internal
function 'stm32l4_get_flash_reg' will be responsible of this.

Change-Id: I74bf61a83fe53575623640af0328b3253ecc796f
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5508
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-by: Michael Jung <mijung@gmx.net>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/stm32l4x.c