tabs to spaces
This commit is contained in:
parent
db90eb17f9
commit
fb0cfc87bd
8
led.c
8
led.c
@ -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
28
main.c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user