From 54150a8f62d57bd3af5efce1439ba3c29e20f07f Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 26 Mar 2011 01:04:10 +0000 Subject: Incorporate changes from Uros Platise git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3419 42af7a65-404d-4744-a932-0658087f49c3 --- apps/vsn/poweroff/poweroff.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'apps/vsn/poweroff/poweroff.c') 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; } -- cgit v1.2.3