tabs to spaces

This commit is contained in:
Wolfgang Hottgenroth 2019-01-24 09:15:08 +01:00
parent db90eb17f9
commit fb0cfc87bd
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
2 changed files with 18 additions and 18 deletions

8
led.c
View File

@ -13,12 +13,12 @@
void ledExec() {
P1OUT ^= BIT0;
P1OUT ^= BIT0;
}
void ledInit() {
P1DIR |= BIT0;
P1OUT &= ~BIT0;
P1DIR |= BIT0;
P1OUT &= ~BIT0;
schAdd(ledExec, NULL, 0, 100);
schAdd(ledExec, NULL, 0, 100);
}

28
main.c
View File

@ -11,25 +11,25 @@
int main() {
WDTCTL = WDTPW | WDTHOLD;
WDTCTL = WDTPW | WDTHOLD;
__disable_interrupt();
__disable_interrupt();
// highest possible system clock
DCOCTL = DCO0 | DCO1 | DCO2;
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
BCSCTL2 = 0;
BCSCTL3 = 0;
// highest possible system clock
DCOCTL = DCO0 | DCO1 | DCO2;
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
BCSCTL2 = 0;
BCSCTL3 = 0;
timeInit();
schInit();
timeInit();
schInit();
ledInit();
ledInit();
__enable_interrupt();
__enable_interrupt();
while (1) {
schExec();
}
while (1) {
schExec();
}
}