[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/intelmote2
BlockStorageC.nc, NONE, 1.1.2.1 ConfigStorageC.nc, NONE,
1.1.2.1 LogStorageC.nc, NONE, 1.1.2.1
Philip Buonadonna
philipb at users.sourceforge.net
Tue Jul 25 18:41:03 PDT 2006
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/p30 Flash.nc,
NONE, 1.1.2.1 FlashC.nc, NONE, 1.1.2.1 HalP30C.nc, NONE,
1.1.2.1 HalP30P.nc, NONE, 1.1.2.1 HplP30.nc, NONE,
1.1.2.1 HplP30P.nc, NONE, 1.1.2.1 P30.h, NONE,
1.1.2.1 P30BlockC.nc, NONE, 1.1.2.1 P30BlockP.nc, NONE,
1.1.2.1 P30ConfigC.nc, NONE, 1.1.2.1 P30ConfigP.nc, NONE,
1.1.2.1 P30LogC.nc, NONE, 1.1.2.1 P30LogCircularP.nc, NONE,
1.1.2.1 P30LogP.nc, NONE, 1.1.2.1 Storage_chip.h, NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/tos/platforms/intelmote2/chips/pxa271
BlockStorageC.nc, 1.1.2.1, NONE Flash.nc, 1.1.2.1,
NONE FlashC.nc, 1.1.2.1, NONE HalP30P.nc, 1.1.2.1,
NONE HplP30.nc, 1.1.2.1, NONE HplP30P.nc, 1.1.2.2, NONE P30.h,
1.1.2.1, NONE Storage_chip.h, 1.1.2.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/intelmote2
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv23808
Added Files:
Tag: tinyos-2_0_devel-BRANCH
BlockStorageC.nc ConfigStorageC.nc LogStorageC.nc
Log Message:
Initial add of storage support configs for intel mote 2
--- NEW FILE: BlockStorageC.nc ---
/**
* Copyright (c) 2005-2006 Arch Rock Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
* - Neither the name of the Arch Rock Corporation nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* ARCHED ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE
*/
/**
* Implementation of the block storage abstraction for the pxa271
* embedded flash.
*
* @author Philip Buonadonna
* @author Kaisen Lin
* @version $Revision: 1.1.2.1 $ $Date: 2006/07/26 01:41:01 $
*/
generic configuration BlockStorageC( volume_id_t volume_id ) {
provides interface BlockRead;
provides interface BlockWrite;
}
implementation {
enum {
BLOCK_ID = unique( "pxa271p30.Block" ),
};
components P30BlockC as BlockC;
BlockRead = BlockC.Read[ volume_id ];
BlockWrite = BlockC.Write[ volume_id ];
}
--- NEW FILE: ConfigStorageC.nc ---
/**
* Copyright (c) 2005-2006 Arch Rock Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
* - Neither the name of the Arch Rock Corporation nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* ARCHED ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE
*/
/**
* Configuration component for storage management on the PXA271
*
* @author KaisenLin
* @author Phil Buonadonna
*/
generic configuration ConfigStorageC(volume_id_t vol_id) {
provides interface Mount;
provides interface ConfigStorage;
}
implementation {
enum {
CONFIG_ID = unique( "pxa271p30.Config" ),
};
components P30ConfigC as ConfigC;
ConfigStorage = ConfigC.ConfigStorage[ vol_id ];
Mount = ConfigC.Mount[ vol_id ];
}
--- NEW FILE: LogStorageC.nc ---
/*
* Copyright (c) 2005 Arch Rock Corporation
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of the Arch Rock Corporation nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARCHED
* ROCK OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*/
/**
* @author Kaisen Lin
* @author Phil Buonadonna
*
*/
generic configuration LogStorageC( volume_id_t volume_id, bool circular ) {
provides interface LogRead;
provides interface LogWrite;
}
implementation {
enum {
LOG_ID = unique( "pxa271p30.Log" ),
};
components P30LogC as LogC;
LogRead = LogC.Read[ volume_id ];
LogWrite = LogC.Write[ volume_id ];
components new P30LogCircularP(circular);
LogC.Circular[ volume_id ] -> P30LogCircularP.Circular;
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/pxa27x/p30 Flash.nc,
NONE, 1.1.2.1 FlashC.nc, NONE, 1.1.2.1 HalP30C.nc, NONE,
1.1.2.1 HalP30P.nc, NONE, 1.1.2.1 HplP30.nc, NONE,
1.1.2.1 HplP30P.nc, NONE, 1.1.2.1 P30.h, NONE,
1.1.2.1 P30BlockC.nc, NONE, 1.1.2.1 P30BlockP.nc, NONE,
1.1.2.1 P30ConfigC.nc, NONE, 1.1.2.1 P30ConfigP.nc, NONE,
1.1.2.1 P30LogC.nc, NONE, 1.1.2.1 P30LogCircularP.nc, NONE,
1.1.2.1 P30LogP.nc, NONE, 1.1.2.1 Storage_chip.h, NONE, 1.1.2.1
- Next message: [Tinyos-2-commits]
CVS: tinyos-2.x/tos/platforms/intelmote2/chips/pxa271
BlockStorageC.nc, 1.1.2.1, NONE Flash.nc, 1.1.2.1,
NONE FlashC.nc, 1.1.2.1, NONE HalP30P.nc, 1.1.2.1,
NONE HplP30.nc, 1.1.2.1, NONE HplP30P.nc, 1.1.2.2, NONE P30.h,
1.1.2.1, NONE Storage_chip.h, 1.1.2.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list