[Tinyos-commits] CVS: tinyos-1.x/tos/lib/Flash BlockRead.nc, NONE,
1.1 BlockStorage.h, NONE, 1.1 BlockWrite.nc, NONE,
1.1 FormatStorage.nc, NONE, 1.1 Mount.nc, NONE, 1.1 Storage.h,
NONE, 1.1 ByteEEPROM.nc, 1.1, NONE ByteEEPROMC.nc, 1.1,
NONE PageEEPROM.h, 1.2, NONE PageEEPROM.nc, 1.1,
NONE PageEEPROMShare.nc, 1.1, NONE
David Gay
idgay at users.sourceforge.net
Mon Jul 11 16:36:11 PDT 2005
- Previous message: [Tinyos-commits]
CVS: tinyos-1.x/apps/TestNewFlash/Block README.txt, 1.1, 1.2
- Next message: [Tinyos-commits] CVS: tinyos-1.x/tos/lib/Flash/AT45DB AT45Remap.nc,
NONE, 1.1 BlockStorageC.nc, NONE, 1.1 BlockStorageM.nc, NONE,
1.1 ByteEEPROM.nc, NONE, 1.1 ByteEEPROMC.nc, NONE,
1.1 FormatStorageC.nc, NONE, 1.1 FormatStorageM.nc, NONE,
1.1 HALAT45DB.h, NONE, 1.1 HALAT45DBShare.nc, NONE,
1.1 PageEEPROM.h, NONE, 1.1 PageEEPROM.nc, NONE,
1.1 PageEEPROMShare.nc, NONE, 1.1 StorageManager.h, NONE,
1.1 StorageManagerC.nc, NONE, 1.1 StorageManagerM.nc, NONE,
1.1 Storage_chip.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/tos/lib/Flash
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28470
Added Files:
BlockRead.nc BlockStorage.h BlockWrite.nc FormatStorage.nc
Mount.nc Storage.h
Removed Files:
ByteEEPROM.nc ByteEEPROMC.nc PageEEPROM.h PageEEPROM.nc
PageEEPROMShare.nc
Log Message:
new flash abstraction (BlockStorage only for now), + reorganisation of
duplicated files
--- NEW FILE: BlockRead.nc ---
// $Id: BlockRead.nc,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:2
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
includes BlockStorage;
interface BlockRead {
command result_t read(block_addr_t addr, void* buf, block_addr_t len);
event void readDone(storage_result_t result, block_addr_t addr, void* buf, block_addr_t len);
command result_t verify();
event void verifyDone(storage_result_t result);
command result_t computeCrc(block_addr_t addr, block_addr_t len);
event void computeCrcDone(storage_result_t result, uint16_t crc, block_addr_t addr, block_addr_t len);
command block_addr_t getSize();
}
--- NEW FILE: BlockStorage.h ---
// $Id: BlockStorage.h,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:4
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
#ifndef __BLOCK_STORAGE_H__
#define __BLOCK_STORAGE_H__
typedef uint32_t block_addr_t;
typedef uint8_t blockstorage_t;
#endif
--- NEW FILE: BlockWrite.nc ---
// $Id: BlockWrite.nc,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:4
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
includes BlockStorage;
interface BlockWrite {
command result_t write(block_addr_t addr, void* buf, block_addr_t len);
event void writeDone(storage_result_t result, block_addr_t addr, void* buf, block_addr_t len);
command result_t erase();
event void eraseDone(storage_result_t result);
command result_t commit();
event void commitDone(storage_result_t result);
}
--- NEW FILE: FormatStorage.nc ---
// $Id: FormatStorage.nc,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:2
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
includes Storage;
interface FormatStorage {
command result_t init();
command result_t allocate(volume_id_t id, storage_addr_t size);
command result_t allocateFixed(volume_id_t id, storage_addr_t addr, storage_addr_t size);
command result_t commit();
event void commitDone(storage_result_t result);
}
--- NEW FILE: Mount.nc ---
// $Id: Mount.nc,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:2
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
includes Storage;
interface Mount {
command result_t mount(volume_id_t id);
event void mountDone(storage_result_t result, volume_id_t id);
}
--- NEW FILE: Storage.h ---
// $Id: Storage.h,v 1.1 2005/07/11 23:36:08 idgay Exp $
/* tab:2
* "Copyright (c) 2000-2005 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*/
/*
* @author: Jonathan Hui <jwhui at cs.berkeley.edu>
*/
#ifndef __STORAGE_H__
#define __STORAGE_H__
enum {
STORAGE_OK,
STORAGE_FAIL,
STORAGE_INVALID_SIGNATURE,
STORAGE_INVALID_CRC
};
enum {
STORAGE_INVALID_ADDR = (uint32_t)0xffff,
};
typedef uint8_t volume_t;
typedef uint8_t volume_id_t;
typedef uint8_t storage_result_t;
#include "Storage_chip.h"
#endif
--- ByteEEPROM.nc DELETED ---
--- ByteEEPROMC.nc DELETED ---
--- PageEEPROM.h DELETED ---
--- PageEEPROM.nc DELETED ---
--- PageEEPROMShare.nc DELETED ---
- Previous message: [Tinyos-commits]
CVS: tinyos-1.x/apps/TestNewFlash/Block README.txt, 1.1, 1.2
- Next message: [Tinyos-commits] CVS: tinyos-1.x/tos/lib/Flash/AT45DB AT45Remap.nc,
NONE, 1.1 BlockStorageC.nc, NONE, 1.1 BlockStorageM.nc, NONE,
1.1 ByteEEPROM.nc, NONE, 1.1 ByteEEPROMC.nc, NONE,
1.1 FormatStorageC.nc, NONE, 1.1 FormatStorageM.nc, NONE,
1.1 HALAT45DB.h, NONE, 1.1 HALAT45DBShare.nc, NONE,
1.1 PageEEPROM.h, NONE, 1.1 PageEEPROM.nc, NONE,
1.1 PageEEPROMShare.nc, NONE, 1.1 StorageManager.h, NONE,
1.1 StorageManagerC.nc, NONE, 1.1 StorageManagerM.nc, NONE,
1.1 Storage_chip.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-commits
mailing list