From d23fda3be353e64852ae04fd03f1cfc4326fec7f Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 23 Sep 2006 14:31:27 +0000 Subject: add reset key '9' to dfu dbgu code git-svn-id: https://svn.openpcd.org:2342/trunk@221 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/dfu/dbgu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware') diff --git a/firmware/src/dfu/dbgu.c b/firmware/src/dfu/dbgu.c index 9bfefc3..f77600d 100644 --- a/firmware/src/dfu/dbgu.c +++ b/firmware/src/dfu/dbgu.c @@ -36,6 +36,11 @@ static void DBGU_irq_handler(void) AT91F_DBGU_Get(&value); switch (value) { + case '9': + AT91F_DBGU_Printk("Resetting SAM7\n\r"); + AT91F_RSTSoftReset(AT91C_BASE_RSTC, AT91C_RSTC_PROCRST| + AT91C_RSTC_PERRST|AT91C_RSTC_EXTRST); + break; default: AT91F_DBGU_Printk("\n\r"); } -- cgit v1.2.3