X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fshimmer2%2Fchips%2Fgyro%2FGyroBoardP.nc;h=516aa75bc732b04458a9dff1a88d7ba436ba7cda;hb=ea6a01cf52434a3e2f915759820504472c619468;hp=54cdeb70b84ea6c711de668ecbf047ef756b415b;hpb=e6168841ee034ab0d56fdc6584fb3c302691ea1d;p=tinyos-2.x.git diff --git a/tos/platforms/shimmer2/chips/gyro/GyroBoardP.nc b/tos/platforms/shimmer2/chips/gyro/GyroBoardP.nc index 54cdeb70..516aa75b 100644 --- a/tos/platforms/shimmer2/chips/gyro/GyroBoardP.nc +++ b/tos/platforms/shimmer2/chips/gyro/GyroBoardP.nc @@ -104,7 +104,14 @@ implementation { } command error_t StdControl.start(){ - TOSH_CLR_SER0_CTS_PIN(); // enable analog signals + /* + * adding a redundant power-up for apps that power cycle the gyro mid-course to save current + * since we're past the initial on-dock programming, gyro should power back up gracefully + */ + TOSH_CLR_PROG_OUT_PIN(); + + // enable analog signal path + TOSH_CLR_SER0_CTS_PIN(); return SUCCESS; } @@ -116,6 +123,7 @@ implementation { // kill the led call GyroBoard.ledOff(); + call buttonNotify.disable(); return SUCCESS; }