stlink: support srst reset
commitcc4a934d37136dfedfdceeee35aa016e8e781f14
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 19 Apr 2012 14:51:14 +0000 (19 15:51 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 30 Apr 2012 13:05:09 +0000 (30 13:05 +0000)
tree7011bcbba539bd6fea59617e549a22173d8114e9
parent2d8c7c510be09188b6c5446264cd8fcaa9c1e75a
stlink: support srst reset

This adds the ability to support srst reset for the stlink/v2.
stlink/v1 will fallback to using SYSRESETREQ which is a full reset - including peripherals.

To enable the use of the srst add the following to your cfg:
reset_config srst_only

Change-Id: I570de607c5f370fd6a4abf47360686c9be07bcdd
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/581
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/target/stm32_stlink.c