diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-26 01:04:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-26 01:04:10 +0000 |
commit | 54150a8f62d57bd3af5efce1439ba3c29e20f07f (patch) | |
tree | 4c791787398c9f76ccd9c8a56e1dd139c2a4e8e4 /apps/vsn/poweroff/poweroff.c | |
parent | c62abcf9c8c26757ac5e6fbf0fd9813f1ba087a6 (diff) | |
download | nuttx-54150a8f62d57bd3af5efce1439ba3c29e20f07f.tar.gz nuttx-54150a8f62d57bd3af5efce1439ba3c29e20f07f.tar.bz2 nuttx-54150a8f62d57bd3af5efce1439ba3c29e20f07f.zip |
Incorporate changes from Uros Platise
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3419 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/vsn/poweroff/poweroff.c')
-rw-r--r-- | apps/vsn/poweroff/poweroff.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/vsn/poweroff/poweroff.c b/apps/vsn/poweroff/poweroff.c index f8b56e0d8..ca3f056e8 100644 --- a/apps/vsn/poweroff/poweroff.c +++ b/apps/vsn/poweroff/poweroff.c @@ -37,6 +37,18 @@ int poweroff_main(int argc, char *argv[]) { +/* TODO: + * - replace this by sending general system signal to shutdown, where i.e. nsh + * must issue down script (it may check whether nsh is running before spawning + * a new process with nsh poweroff) + * - wait for some time (~0.5 second for VSN), that SDcard is flashed and synced + * - call poweroff + * + * TODO on boot: + * - if external key is pressed, do not start the nsh! but wait until it is released + * (to get rid of bad mounts of the sdcard etc.) this could be handled in the + * button driver immediately on system boot + */ board_power_off(); return 0; } |