[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/telosb
hardware.h, 1.2, 1.3
Joe Polastre
jpolastre at users.sourceforge.net
Sun Oct 24 14:10:02 PDT 2004
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/SystemCore/MementoMori/java
PrintFailed.class, 1.1, 1.2 PrintFailed.java, 1.1,
1.2 RosterMsg.class, 1.1, 1.2 RosterMsg.java, 1.1, 1.2
- Next message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/telosb
hardware.h, 1.3, 1.4
- 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-serv20385
Modified Files:
hardware.h
Log Message:
low power updates to hardware.h
- clear port states in tosh_set_pin_directions to counter anything
not cleared by a POR or by the bootloader
- flash_hold must be high when writing to the flash
Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/telosb/hardware.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hardware.h 20 Oct 2004 21:34:29 -0000 1.2
--- hardware.h 24 Oct 2004 21:10:00 -0000 1.3
***************
*** 100,104 ****
TOSH_CLR_SIMO0_PIN();
TOSH_SET_UCLK0_PIN();
- TOSH_wait();
TOSH_CLR_UCLK0_PIN();
}
--- 100,103 ----
***************
*** 112,117 ****
--- 111,121 ----
TOSH_MAKE_SIMO0_OUTPUT();
TOSH_MAKE_UCLK0_OUTPUT();
+ TOSH_MAKE_FLASH_HOLD_OUTPUT();
+ TOSH_MAKE_FLASH_CS_OUTPUT();
+ TOSH_SET_FLASH_HOLD_PIN();
TOSH_SET_FLASH_CS_PIN();
+ TOSH_wait();
+
// initiate sequence;
TOSH_CLR_FLASH_CS_PIN();
***************
*** 127,131 ****
TOSH_FLASH_M25P_DP_bit(TRUE); // 7
- TOSH_CLR_UCLK0_PIN();
TOSH_SET_FLASH_CS_PIN();
--- 131,134 ----
***************
*** 133,140 ****
--- 136,158 ----
TOSH_MAKE_SIMO0_INPUT();
TOSH_MAKE_UCLK0_INPUT();
+ TOSH_CLR_FLASH_HOLD_PIN();
}
void TOSH_SET_PIN_DIRECTIONS(void)
{
+ // reset all of the ports to be input and using i/o functionality
+ P1SEL = 0;
+ P2SEL = 0;
+ P3SEL = 0;
+ P4SEL = 0;
+ P5SEL = 0;
+ P6SEL = 0;
+ P1DIR = 0;
+ P2DIR = 0;
+ P3DIR = 0;
+ P4DIR = 0;
+ P5DIR = 0;
+ P6DIR = 0;
+
//LEDS
TOSH_SET_RED_LED_PIN();
***************
*** 147,150 ****
--- 165,169 ----
//1-Wire PINS
TOSH_SET_ONEWIRE_PIN();
+ TOSH_MAKE_ONEWIRE_OUTPUT();
//RADIO PINS
***************
*** 172,175 ****
--- 191,196 ----
TOSH_MAKE_FLASH_CS_OUTPUT();
TOSH_SET_FLASH_CS_PIN();
+ TOSH_MAKE_FLASH_HOLD_OUTPUT();
+ TOSH_CLR_FLASH_HOLD_PIN();
//Put the flash in deep sleep state
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/SystemCore/MementoMori/java
PrintFailed.class, 1.1, 1.2 PrintFailed.java, 1.1,
1.2 RosterMsg.class, 1.1, 1.2 RosterMsg.java, 1.1, 1.2
- Next message: [Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/telosb
hardware.h, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list