[Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telos
ExecC.nc, NONE, 1.1 PluginC.nc, NONE, 1.1 hardware.h, NONE, 1.1
Jonathan Hui
jwhui at users.sourceforge.net
Sun Jul 17 13:53:21 PDT 2005
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/stm25p
ExtFlashC.nc, NONE, 1.1 ExtFlashM.nc, NONE, 1.1 STM25PC.nc,
1.1, NONE STM25PM.nc, 1.3, NONE
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telosb
ExecC.nc, NONE, 1.1 PluginC.nc, NONE, 1.1 PowerOffM.nc, NONE,
1.1 hardware.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20677/telos
Added Files:
ExecC.nc PluginC.nc hardware.h
Log Message:
- Added support for at45db flash chip and telosa platform.
--- NEW FILE: ExecC.nc ---
// $Id: ExecC.nc,v 1.1 2005/07/17 20:53:19 jwhui 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>
*/
module ExecC {
provides {
interface Exec;
}
}
implementation {
command void Exec.exec() {
__asm__ __volatile__ ("br #0x1a00\n\t" ::);
}
}
--- NEW FILE: PluginC.nc ---
module PluginC {
provides {
interface StdControl;
}
}
implementation {
command result_t StdControl.init() { return SUCCESS; }
command result_t StdControl.start() { return SUCCESS; }
command result_t StdControl.stop() { return SUCCESS; }
}
--- NEW FILE: hardware.h ---
#ifndef _H_hardware_h
#define _H_hardware_h
#include "msp430hardware.h"
void wait(uint16_t t) {
for ( ; t > 0; t-- );
}
void jumpToTOSApp() {
__asm__ __volatile__ ("br #0x3000\n\t" ::);
}
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
TOSH_ASSIGN_PIN(GREEN_LED, 5, 5);
TOSH_ASSIGN_PIN(YELLOW_LED, 5, 6);
// FLASH
TOSH_ASSIGN_PIN(FLASH_OUT, 3, 1);
TOSH_ASSIGN_PIN(FLASH_IN, 3, 2);
TOSH_ASSIGN_PIN(FLASH_CLK, 3, 3);
TOSH_ASSIGN_PIN(FLASH_PWR, 4, 3);
TOSH_ASSIGN_PIN(FLASH_CS, 4, 4);
void TOSH_SET_PIN_DIRECTIONS(void)
{
//LEDS
TOSH_SET_RED_LED_PIN();
TOSH_SET_GREEN_LED_PIN();
TOSH_SET_YELLOW_LED_PIN();
TOSH_MAKE_RED_LED_OUTPUT();
TOSH_MAKE_GREEN_LED_OUTPUT();
TOSH_MAKE_YELLOW_LED_OUTPUT();
//FLASH PINS
TOSH_MAKE_FLASH_OUT_OUTPUT();
TOSH_MAKE_FLASH_IN_INPUT();
TOSH_MAKE_FLASH_CLK_OUTPUT();
TOSH_MAKE_FLASH_PWR_OUTPUT();
TOSH_SET_FLASH_PWR_PIN();
TOSH_MAKE_FLASH_CS_OUTPUT();
TOSH_SET_FLASH_CS_PIN();
}
#endif // _H_hardware_h
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/stm25p
ExtFlashC.nc, NONE, 1.1 ExtFlashM.nc, NONE, 1.1 STM25PC.nc,
1.1, NONE STM25PM.nc, 1.3, NONE
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telosb
ExecC.nc, NONE, 1.1 PluginC.nc, NONE, 1.1 PowerOffM.nc, NONE,
1.1 hardware.h, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list