[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/shimmer hardware.h, 1.1, 1.2

steve ayer ayer1 at users.sourceforge.net
Wed Jul 16 11:47:34 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/shimmer
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3983

Modified Files:
	hardware.h 
Log Message:

fixed a very subtle power drain bug that only showed up on some
devices in sleep, and cleaned up some other missed details on this
same subject.

main attraction:  GIO0 was changed to an input to accomodate the fact
that it was attached to a pulldown, meant for a button on the external
connector.

when an output, some boards burned ~180 ua sleeping, the others 630
ua.  as an input, we changed this reading on an example of the latter
to 180.

thanks to catalin caranfil at realtime oem for finding the problem and
pushing for a solution for the masses!

other changes:

- made onewire (data) input
- made the spi pins all gpio in appropriate directions for their
connections
- made bt_pio input, as appropriate for its connection


Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/shimmer/hardware.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hardware.h	21 May 2008 22:07:24 -0000	1.1
--- hardware.h	16 Jul 2008 18:47:32 -0000	1.2
***************
*** 199,203 ****
    TOSH_SEL_BT_RTS_IOFUNC();
  
!   TOSH_MAKE_BT_PIO_OUTPUT();
    TOSH_SEL_BT_PIO_IOFUNC();
  
--- 199,203 ----
    TOSH_SEL_BT_RTS_IOFUNC();
  
!   TOSH_MAKE_BT_PIO_INPUT();
    TOSH_SEL_BT_PIO_IOFUNC();
  
***************
*** 217,220 ****
--- 217,239 ----
    TOSH_SEL_PROG_OUT_IOFUNC();
  
+   // USART lines, attached to a pullup
+   TOSH_SEL_UCLK0_IOFUNC();
+   TOSH_MAKE_UCLK0_OUTPUT();
+   TOSH_SET_UCLK0_PIN();
+   TOSH_SEL_UCLK1_IOFUNC();
+   TOSH_MAKE_UCLK1_OUTPUT();
+   TOSH_SET_UCLK1_PIN();
+ 
+   TOSH_SEL_SIMO0_IOFUNC();
+   TOSH_MAKE_SIMO0_OUTPUT();
+   TOSH_SET_SIMO0_PIN();
+   TOSH_SEL_SOMI0_IOFUNC();
+   TOSH_MAKE_SOMI0_INPUT();
+ 
+   TOSH_SEL_SIMO1_IOFUNC();
+   TOSH_MAKE_SIMO1_OUTPUT();
+   TOSH_SET_SIMO1_PIN();
+   TOSH_SEL_SOMI1_IOFUNC();
+   TOSH_MAKE_SOMI1_INPUT();
  
    // ADC lines
***************
*** 254,257 ****
--- 273,277 ----
    TOSH_MAKE_ONEWIRE_PWR_OUTPUT();
    TOSH_SEL_ONEWIRE_PWR_IOFUNC();
+   TOSH_MAKE_ONEWIRE_INPUT();
    TOSH_SEL_ONEWIRE_IOFUNC();
  
***************
*** 280,284 ****
    TOSH_MAKE_SER0_RTS_OUTPUT();
    TOSH_SEL_SER0_RTS_IOFUNC();
!   TOSH_MAKE_GIO0_OUTPUT();
    TOSH_SEL_GIO0_IOFUNC();
    TOSH_MAKE_GIO1_OUTPUT();
--- 300,304 ----
    TOSH_MAKE_SER0_RTS_OUTPUT();
    TOSH_SEL_SER0_RTS_IOFUNC();
!   TOSH_MAKE_GIO0_INPUT();
    TOSH_SEL_GIO0_IOFUNC();
    TOSH_MAKE_GIO1_OUTPUT();



More information about the Tinyos-2-commits mailing list