nuttx/configs/vsn/src
2013-09-28 16:50:07 -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 Email address change in nuttx/ 2012-09-13 18:32:24 +00:00
buttons.c Incorporate changes from Uros Platise 2011-03-26 01:04:10 +00:00
chipcon.c Incorporate changes from Uros Platise 2011-03-26 01:04:10 +00:00
leds.c Fix NuTiny-SDK-NUC120 LEDs 2013-02-27 15:16:46 +00:00
Makefile Remove .context kludge from apps/ directory 2012-12-23 22:17:09 +00:00
muxbus.c Add support for multiplexed SDIO pins from Uros 2011-08-19 16:51:04 +00:00
power.c Incorporate changes from Uros Platise 2011-03-26 01:04:10 +00:00
README.txt Implement redirection of output from NSH builtin commands to a file in a mounted volume 2013-01-15 21:01:37 +00:00
rtac.c More changes from Uros 2011-03-28 15:01:43 +00:00
sif.c Clean up some naming: fd vs. fildes vs. filedes and filep vs filp 2013-09-28 16:50:07 -06:00
spi.c Created new directories to hold SPI-related files 2013-07-01 08:11:54 -06:00
sysclock.c Add STM32 FLASH driver 2011-05-07 16:59:20 +00:00
usbdev.c Removed stm32_internal.h; Changes for clean compile of STM32F3Discovery configuration with SPI and USB 2013-02-09 15:03:49 +00:00
usbmsc.c Move apps/examples/usbmsc to apps/system/usbmsc 2013-09-25 16:54:39 -06:00
vsn.h Add syslog.h; rename lib_rawprintf() to syslog() 2013-01-28 21:55:16 +00: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.