diff options
author | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-23 14:31:27 +0000 |
---|---|---|
committer | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-09-23 14:31:27 +0000 |
commit | d23fda3be353e64852ae04fd03f1cfc4326fec7f (patch) | |
tree | b854a7844375f08d86644cfcc4adb3807e9f83c8 | |
parent | 1ba82b71074e31e0a9451e80c2de4bca2716adf2 (diff) |
add reset key '9' to dfu dbgu code
git-svn-id: https://svn.openpcd.org:2342/trunk@221 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r-- | firmware/src/dfu/dbgu.c | 5 |
1 files changed, 5 insertions, 0 deletions
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"); } |