tabs to spaces
This commit is contained in:
parent
db90eb17f9
commit
fb0cfc87bd
8
led.c
8
led.c
@ -13,12 +13,12 @@
|
|||||||
|
|
||||||
|
|
||||||
void ledExec() {
|
void ledExec() {
|
||||||
P1OUT ^= BIT0;
|
P1OUT ^= BIT0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ledInit() {
|
void ledInit() {
|
||||||
P1DIR |= BIT0;
|
P1DIR |= BIT0;
|
||||||
P1OUT &= ~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() {
|
int main() {
|
||||||
WDTCTL = WDTPW | WDTHOLD;
|
WDTCTL = WDTPW | WDTHOLD;
|
||||||
|
|
||||||
__disable_interrupt();
|
__disable_interrupt();
|
||||||
|
|
||||||
// highest possible system clock
|
// highest possible system clock
|
||||||
DCOCTL = DCO0 | DCO1 | DCO2;
|
DCOCTL = DCO0 | DCO1 | DCO2;
|
||||||
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
|
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
|
||||||
BCSCTL2 = 0;
|
BCSCTL2 = 0;
|
||||||
BCSCTL3 = 0;
|
BCSCTL3 = 0;
|
||||||
|
|
||||||
|
|
||||||
timeInit();
|
timeInit();
|
||||||
schInit();
|
schInit();
|
||||||
|
|
||||||
ledInit();
|
ledInit();
|
||||||
|
|
||||||
__enable_interrupt();
|
__enable_interrupt();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
schExec();
|
schExec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user