nuttx/configs/vsn/src
2015-10-04 16:01:02 -06:00
..
.gitignore .dSYM only needs to be in the same .gitignore files as .exe 2013-05-30 15:02:04 -06:00
boot.c Modify board_power_off() so that is is called only via boardctl() 2015-07-02 17:09:16 -06:00
buttons.c Move board_ prototypes from arch.h to board.h 2015-02-27 20:02:03 -06:00
chipcon.c Remove TABs 2015-10-04 16:01:02 -06:00
leds.c Eliminate somw warnings 2015-09-08 09:19:40 -06:00
Makefile More trailing whilespace removal 2014-04-13 16:22:22 -06:00
muxbus.c More trailing whilespace removal 2014-04-13 16:22:22 -06:00
power.c Modify board_power_off() so that is is called only via boardctl() 2015-07-02 17:09:16 -06:00
README.txt More trailing whilespace removal 2014-04-13 16:22:22 -06:00
rtac.c Make some file section headers more consistent with standard 2015-04-08 09:15:17 -06:00
sif.c Remove TABs 2015-10-04 16:01:02 -06:00
spi.c Make some file section headers more consistent with standard 2015-04-08 09:15:17 -06:00
sysclock.c More trailing whilespace removal 2014-04-13 16:22:22 -06:00
usbdev.c Make some file section headers more consistent with standard 2015-04-08 09:15:17 -06:00
usbmsc.c Make some file section headers more consistent with standard 2015-04-08 09:15:17 -06:00
vsn.h Remaining files under nuttx/configs changed to use the corrected syslog interfaces 2014-10-08 15:32:00 -06:00

VSN Board Support Package, for the NuttX, Uros Platise <uros.platise@isotel.eu>
===============================================================================
http://www.netClamps.com

The directory contains start-up and board level functions.
Execution starts in the following order:

 - sysclock, immediately after reset stm32_rcc calls external
   clock configuration when
     CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG=y
   is set. It must be set for the VSN board.

 - boot, performs initial chip and board initialization
 - sched/os_bringup.c then calls user entry defined in the .config file.


Naming throughout the code
==========================

 - _init(): used to be called once only, after powerup, to perform board
   initialization
 - _start() or called via FS _open(): starts peripheral power, puts it
   into operation
 - _stop() or called via FS _close(): opposite to _start()


System notifications (a sort of run-levels)
===========================================

On the VSN, NSH represents the core application as it supports scripts
easily adaptable for any custom application configuration. NSH is
invoked as follows (argument runs a script from the /etc/init.d directory):

 - nsh init: on system powerup called by the NuttX APP_START

TODOs:

 - nsh xpowerup: run on external power used to:
   - try to setup an USB serial connection
   - configure SLIP mode, internet
   - start other internet services, such as telnetd, ftpd, httpd

 - nsh xpowerdown: run whenever USB recevied suspend signal or
   external power has been removed.
   - used to stop internet services

 - nsh batdown: whenever battery is completely discharged


Compile notes
===============================

To link-in the sif_main() utility do, in this folder:
 - make context TOPDIR=<path to nuttx top dir>

This will result in registering the application into the builtin application
registry.