power down after two minutes
This commit is contained in:
@ -18,15 +18,11 @@ volatile uint32_t timestamp;
|
||||
ISR(TIMER0_A0, TA0_ISR) {
|
||||
timestamp++;
|
||||
schUpdate();
|
||||
|
||||
// P1OUT ^= BIT0;
|
||||
}
|
||||
|
||||
void timeInit() {
|
||||
timestamp = 0;
|
||||
|
||||
// P1DIR |= BIT0;
|
||||
|
||||
TACCR0 = 32;
|
||||
TACCTL0 = CCIE;
|
||||
TACTL = MC_1 | ID_0 | TASSEL_1 | TACLR;
|
||||
|
Reference in New Issue
Block a user