summaryrefslogtreecommitdiff
path: root/apps/vsn/poweroff/poweroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/vsn/poweroff/poweroff.c')
-rw-r--r--apps/vsn/poweroff/poweroff.c12
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;
}