diff options
author | Christian Pointner <equinox@mur.at> | 2014-01-22 01:35:34 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2014-01-22 01:35:34 +0000 |
commit | e7b21f9bf45d100a198fe7c7a6b6e737720cdd2b (patch) | |
tree | dc657cbb4503807466c954dae02a7193dcef95e4 /software/mpu/main.c | |
parent | fixed not used USB OTG2 (diff) |
powerdown when halted
git-svn-id: https://svn.spreadspace.org/mur.sat@869 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu/main.c')
-rw-r--r-- | software/mpu/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/software/mpu/main.c b/software/mpu/main.c index d2bfdd9..55df8a8 100644 --- a/software/mpu/main.c +++ b/software/mpu/main.c @@ -112,5 +112,8 @@ int main(void) case MPU_BOOTLOADER: reset2bootloader(); break; case MPU_REBOOT: reboot(); break; } - for(;;); /* halting system, aka loop endlessly */ + + for(;;) { /* halting system, aka loop endlessly */ + port_wait_for_interrupt(); /* power down */ + } } |