]> git.sur5r.net Git - openocd/commit
flash: cleanup stm32lx driver
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 4 Jan 2013 21:15:59 +0000 (21:15 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 21 Jan 2013 16:45:20 +0000 (16:45 +0000)
commitaef50bc5638bf0729ad0029dda3567333e728795
treea7a7936d0faccd5e76a721b357514311676f2e1b
parent9cdb6b438dbdb967ef86d76aa5842b981c6830c7
flash: cleanup stm32lx driver

Handle any leading bytes upto the next 128 byte page, enabling us to safely
use the faster page write.

Rather than use a separate word/byte write to program any trailing bytes
we use a combined write function.

Use memcpy for byte writes and change loader to using bytes.

Change-Id: Ie0164a30388f018dd00e752cf5ff87d4f96ced97
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1008
Tested-by: jenkins
src/flash/nor/stm32lx.c