[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/telosb
GoldenImage.h, NONE, 1.1 TOSBoot.h, NONE, 1.1
Jonathan Hui
jwhui at users.sourceforge.net
Mon Nov 22 09:46:14 PST 2004
- Previous message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/pc HPLSTM25PC.nc,
NONE, 1.1 TOSBoot.h, NONE, 1.1
- Next message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/Deluge Deluge.h,
1.1, 1.2 DelugeM.nc, 1.1, 1.2 DelugeMetadataM.nc, 1.1,
1.2 DelugePageTransferC.nc, 1.1, 1.2 DelugePageTransferM.nc,
1.1, 1.2 DelugeStorageC.nc, 1.1, 1.2 DelugeStorageM.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/telosb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6952
Added Files:
GoldenImage.h TOSBoot.h
Log Message:
- Platform specific files for the golden image and bootloader.
--- NEW FILE: GoldenImage.h ---
// $Id: GoldenImage.h,v 1.1 2004/11/22 17:46:10 jwhui Exp $
/* tab:4
* "Copyright (c) 2000-2004 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 __GOLDEN_IMAGE_H__
#define __GOLDEN_IMAGE_H__
#define GI_NUM_SECTIONS 2
uint32_t startAddrs[GI_NUM_SECTIONS] = { 0x5000, 0xffe0 };
uint32_t endAddrs[GI_NUM_SECTIONS] = { 0xb000, 0x10000 };
#define GI_GET_BYTE(x) (*(uint8_t*)((uint16_t)(x)))
#endif
--- NEW FILE: TOSBoot.h ---
// $Id: TOSBoot.h,v 1.1 2004/11/22 17:46:10 jwhui Exp $
/* tab:4
* "Copyright (c) 2000-2004 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 __MSP_BOOTLOADER_H__
#define __MSP_BOOTLOADER_H__
#define TOSBOOT_INT_PAGE_SIZE ((uint32_t)512)
#define TOSBOOT_GOLDEN_IMG_ADDR ((uint32_t)0xf0200)
#define TOSBOOT_GESTURE_MAX_COUNT 3
enum {
TOSBOOT_GOLDEN_IMG_LOADED = 1,
TOSBOOT_EXPLICIT_REBOOT = 2,
TOSBOOT_PROGRAM_FAIL_FLAG = 4,
};
// bootloader state
#define TOSBOOT_LOAD_IMG_ADDR 0x70 // 1 byte
#define TOSBOOT_GESTURE_COUNT_ADDR 0x71 // 1 byte
#define TOSBOOT_NEW_IMG_START_ADDR 0x72 // 4 bytes
#define TOSBOOT_CUR_IMG_START_ADDR 0x76 // 4 bytes
#define TOSBOOT_PROGRAM_BUF_ADDR 0x7a // 4 bytes
#define TOSBOOT_FLAGS_ADDR 0x7e // 1 byte
#endif
- Previous message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/pc HPLSTM25PC.nc,
NONE, 1.1 TOSBoot.h, NONE, 1.1
- Next message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/Deluge Deluge.h,
1.1, 1.2 DelugeM.nc, 1.1, 1.2 DelugeMetadataM.nc, 1.1,
1.2 DelugePageTransferC.nc, 1.1, 1.2 DelugePageTransferM.nc,
1.1, 1.2 DelugeStorageC.nc, 1.1, 1.2 DelugeStorageM.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list