stlink-common: Update STM32L0 and STM32L1 loader ABI
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>
Mon, 14 Mar 2016 12:32:48 +0000 (13:32 +0100)
committerMaxime Coquelin <mcoquelin.stm32@gmail.com>
Mon, 14 Mar 2016 14:12:44 +0000 (15:12 +0100)
commit907383da8ef95fedc630cdf7cf102d44ae229200
treee11f8ff3c1214d9e734473f19fca0badb6317bb5
parent5693181e6be20b4a4ebca8d3c21d44cd61e753ca
stlink-common: Update STM32L0 and STM32L1 loader ABI

This patch invert source and destination registers in the stm32l0 and stm32l1
loaders, so that it follows the same ABI as other stm32 loaders.

Doing that, the run_flash_loader() function can be simplified a little.

Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
flashloaders/stm32l0x.s
flashloaders/stm32lx.s
src/stlink-common.c