[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telosb hardware.h, 1.1, 1.2

Jonathan Hui jwhui at users.sourceforge.net
Thu Jul 21 11:54:29 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telosb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv338/telosb

Modified Files:
	hardware.h 
Log Message:
- Added mica2 support to TOSBoot for Deluge 2.0.



Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/telosb/hardware.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hardware.h	17 Jul 2005 20:53:19 -0000	1.1
--- hardware.h	21 Jul 2005 18:54:26 -0000	1.2
***************
*** 1,4 ****
! #ifndef _H_hardware_h
! #define _H_hardware_h
  
  #include "msp430hardware.h"
--- 1,34 ----
! // $Id$
! 
! /*									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 __HARDWARE_H__
! #define __HARDWARE_H__
  
  #include "msp430hardware.h"
***************
*** 30,34 ****
  void TOSH_SET_PIN_DIRECTIONS(void)
  {
-   // reset all of the ports to be input and using i/o functionality
    P1SEL = 0;
    P2SEL = 0;
--- 60,63 ----
***************
*** 37,63 ****
    P5SEL = 0;
    P6SEL = 0;
! 
    P1DIR = 0xe0;
    P1OUT = 0x00;
!  
    P2DIR = 0x7b;
    P2OUT = 0x10;
! 
    P3DIR = 0xf1;
    P3OUT = 0x00;
! 
    P4DIR = 0xfd;
    P4OUT = 0xdd;
! 
    P5DIR = 0xff;
    P5OUT = 0xff;
! 
    P6DIR = 0xff;
    P6OUT = 0x00;
! 
    P1IE = 0;
    P2IE = 0;
  }
  
! #endif // _H_hardware_h
! 
--- 66,91 ----
    P5SEL = 0;
    P6SEL = 0;
!   
    P1DIR = 0xe0;
    P1OUT = 0x00;
!   
    P2DIR = 0x7b;
    P2OUT = 0x10;
!   
    P3DIR = 0xf1;
    P3OUT = 0x00;
!   
    P4DIR = 0xfd;
    P4OUT = 0xdd;
!   
    P5DIR = 0xff;
    P5OUT = 0xff;
!   
    P6DIR = 0xff;
    P6OUT = 0x00;
!   
    P1IE = 0;
    P2IE = 0;
  }
  
! #endif



More information about the Tinyos-beta-commits mailing list