Changed SAM4S Erase for effective Sector erase
commit24a1e7b0fc6b18fd2b8e6f5486d2cece8e1d0d8e
authorOlivier Schonken <olivier.schonken@gmail.com>
Mon, 4 Jun 2012 05:33:15 +0000 (4 07:33 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 26 Jun 2012 13:51:59 +0000 (26 13:51 +0000)
tree732a8b9c1009f8008bd8c8c8fc32b3e1b67604ab
parent5b0a1315948252ddde03fc74763ef8300c5f329c
Changed SAM4S Erase for effective Sector erase

In the previous iteration, the page counter for erases would not be updated with
the erase size.  This patch keeps the page counter synced with the sector counter.

Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
Change-Id: I95e56a3257b2ad8301c9f28167b842fa6466334f
Reviewed-on: http://openocd.zylin.com/686
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/at91sam4.c