summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/lpc17xx/mbed/BoardInit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lpc17xx/mbed/BoardInit.c b/arch/arm/lpc17xx/mbed/BoardInit.c
index bd31b35..968e723 100644
--- a/arch/arm/lpc17xx/mbed/BoardInit.c
+++ b/arch/arm/lpc17xx/mbed/BoardInit.c
@@ -1,4 +1,5 @@
#include "lpc17xx_nvic.h"
+#include "lpc17xx_clkpwr.h"
extern uintptr_t __cs3_interrupt_vector_mutable[];
@@ -13,4 +14,7 @@ void BoardShutdown() {
}
void BoardExceptionHandler(int code) {
+ volatile int i;
+ for (i = 0; i < 100000; i++);
+ CLKPWR_DeepPowerDown();
}