This commit is contained in:
2024-06-12 23:15:34 +02:00
commit 1b6f444f4a
6 changed files with 205 additions and 0 deletions

29
main.c Normal file
View File

@ -0,0 +1,29 @@
#include <msp430g2553.h>
#include <stdint.h>
#include <stdlib.h>
#include "scheduler.h"
int main() {
WDTCTL = WDTPW | WDTHOLD;
__disable_interrupt();
// highest possible system clock
DCOCTL = DCO0 | DCO1 | DCO2;
BCSCTL1 = XT2OFF | RSEL0 | RSEL1 | RSEL2 | RSEL3;
BCSCTL2 = 0;
BCSCTL3 = 0;
schInit();
__enable_interrupt();
while (1) {
schExec();
}
}