added power-up call to stdcontrol.start to service apps that duty
cycle the gyros to save power (won't hurt apps having already called
stdcontrol.init).
}
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;
}
// kill the led
call GyroBoard.ledOff();
+ call buttonNotify.disable();
return SUCCESS;
}
* @date March, 2010
*/
-configuration HplUserButtonC {
+configuration HplGyroButtonC {
provides interface GeneralIO;
provides interface GpioInterrupt;
}