issue in display, digit calculation found

This commit is contained in:
hg
2016-08-31 16:53:26 +02:00
parent 12ef714fbd
commit bad3a4308f
4 changed files with 16 additions and 3 deletions

View File

@ -18,11 +18,15 @@ 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;