power down after two minutes

This commit is contained in:
hg
2016-09-08 23:28:32 +02:00
parent 7fac5ed223
commit 61d0e492f0
2 changed files with 13 additions and 4 deletions

View File

@ -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;