[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/rincon/tos/lib/Configuration
readme.txt, NONE, 1.1
dmm
rincon at users.sourceforge.net
Mon Aug 28 10:57:39 PDT 2006
- Previous message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/rincon/tos/lib/FlashBridge/apps/FlashBridgeViewer
readme.txt, NONE, 1.1 FlashBridgeViewer.h, NONE,
1.1 FlashBridgeViewerM.nc, NONE, 1.1 Makefile, NONE,
1.1 FlashBridgeViewerC.nc, NONE, 1.1 FlashBridgeViewerTestC.nc,
NONE, 1.1
- Next message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/rincon/tos/lib/FlashBridge/apps/FlashModifyViewer
FlashBridgeViewerTestC.nc, NONE, 1.1 Makefile, NONE,
1.1 FlashBridgeViewerM.nc, NONE, 1.1 FlashBridgeViewerC.nc,
NONE, 1.1 readme.txt, NONE, 1.1 FlashBridgeViewer.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/contrib/rincon/tos/lib/Configuration
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12130/contrib/rincon/tos/lib/Configuration
Added Files:
readme.txt
Log Message:
Uploaded new utilities:
* FlashBridge updates
* Configuration
* Leds
* RandomGen
Removed some apps:
* MeshCollect (in progress)
* FlashBridge moved from apps->lib
Updated some readme's.
--- NEW FILE: readme.txt ---
This component allows your application components to load and store configuration
settings from memory that supports modify. It is compatible with the following
media types found in FlashBridge/media:
> avr - i.e. ATmega128 microcontroller internal 4kB EEPROM.
> msp430 - i.e. MSP430F1611 microcontroller internal 256B flash
> at45db - i.e. Mica2/Z external "eeprom"/flash
It is not compatible with the external ST M25P80 tmote flash because of modify
limitiations.
Typically, you should include the /FlashBridge/media/avr or /FlashBridge/media/msp430
directories to use the internal microcontroller flash. If this is the only
non-volatile memory your program needs, you can do away with the external flash
chip completely in your deployment app.
Let me know how it goes. There's a demo app in the /Configuration/apps directory.
-David Moss (dmm at rincon.com)
/**
* Manage storing and retrieving configuration settings
* for various components, mainly to non-volatile internal microcontroller memory.
*
* Always connect your components to the parameterized interface
* unique("Configuration")
*
* On install, the internal flash should be erased automatically on
* both the avr and msp430 platforms, so you shouldn't have to worry
* about loading incorrect config data left over from a different
* version of the application.
*
* On boot, each unique parameterized Configuration interface will
* be called with an event to requestRegistration(). The component
* using the Configuration interface must call the command registrate(..)
* at that point to register its global buffers that store configuration data.
* After all components have registered, the ready() event will be signaled.
* At that point, it is safe to load and store settings. It is recommended
* that all loading and storing of settings be put in a repetitive task
* loop to ensure a proper flash transaction:
*
* task void loadSettings() {
* if(!call Configuration.load()) {
* post loadSettings();
* }
* }
*
*
* task void storeSettings() {
* if(!call Configuration.store()) {
* post storeSettings();
* }
* }
*
* Storing data will first calcute and store the CRC of the data to flash,
* then store the actual data to flash. Each client will take up the
* size they register with plus 2 bytes extra for the CRC.
*
* Loading data will first load the CRC from flash, then load the
* data from flash into the registered client's pointer. If
* the CRC's don't match, then the loaded() event will signal with
* valid == FALSE and result == SUCCESS. You can then fill
* in the registered buffer with default data and call store().
*
* @author David Moss
*/
- Previous message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/rincon/tos/lib/FlashBridge/apps/FlashBridgeViewer
readme.txt, NONE, 1.1 FlashBridgeViewer.h, NONE,
1.1 FlashBridgeViewerM.nc, NONE, 1.1 Makefile, NONE,
1.1 FlashBridgeViewerC.nc, NONE, 1.1 FlashBridgeViewerTestC.nc,
NONE, 1.1
- Next message: [Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/rincon/tos/lib/FlashBridge/apps/FlashModifyViewer
FlashBridgeViewerTestC.nc, NONE, 1.1 Makefile, NONE,
1.1 FlashBridgeViewerM.nc, NONE, 1.1 FlashBridgeViewerC.nc,
NONE, 1.1 readme.txt, NONE, 1.1 FlashBridgeViewer.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-contrib-commits
mailing list