Fix stm32l readmem32.
authorKarl Palsson <karlp@tweak.net.au>
Wed, 12 Oct 2011 01:45:28 +0000 (01:45 +0000)
committerKarl Palsson <karlp@tweak.net.au>
Wed, 12 Oct 2011 01:45:28 +0000 (01:45 +0000)
commit371b100cb08289f7507c5fb2b245ebc63c403411
treeca4740f3884f3a74f84ce4454d624856ecc994da
parentd12da44c747ef42e0b4d6c5944103fec3e3681d3
Fix stm32l readmem32.

As noted, the usb transfer only has a 1 byte length, but it also has a different mode
to enter.

Tidied up and removed more duplicate and hard coded code, tried to add some notes on
where the magic came from.

No idea where the chip ids came from, I can't find them in the datasheets anywhere.
gdbserver/gdb-server.c
src/stlink-common.c
src/stlink-common.h
src/stlink-usb.c
src/stlink-usb.h
src/test_usb.c