9
0
Fork 0
nuttx-bb/nuttx/configs/vsn/src
patacongo 0bb0a4e316 Move file-system header files to include/nuttx/fs
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4499 7fd9a85b-ad96-42d3-883c-3090e2eb8679
2012-03-21 18:01:07 +00:00
..
Makefile Massive name change USB STRG -> USB MSC 2012-01-25 20:17:59 +00:00
README.txt Re-organize header files so that file systems can be built outside of the nuttx tree; add a binfs file system to apps/namedapp 2011-03-28 00:05:58 +00:00
boot.c Add support for multiplexed SDIO pins from Uros 2011-08-19 16:51:04 +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 Incorporate changes from Uros Platise 2011-03-26 01:04:10 +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
rtac.c More changes from Uros 2011-03-28 15:01:43 +00:00
sif.c Move file-system header files to include/nuttx/fs 2012-03-21 18:01:07 +00:00
spi.c Add initial CC1101 wireless logic from Uros 2011-05-16 15:09:39 +00:00
sysclock.c Add STM32 FLASH driver 2011-05-07 16:59:20 +00:00
usbdev.c Add support for RAMTRON NVRAM devices 2011-03-06 15:39:02 +00:00
usbmsc.c Massive name change USB STRG -> USB MSC 2012-01-25 20:17:59 +00:00
vsn.h Add support for multiplexed SDIO pins from Uros 2011-08-19 16:51:04 +00:00

README.txt

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 either user_start or exec_namedapp()
   with application as set in the .config


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 namedapp.