This repository has been archived on 2024-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
game-ctrl-01/main.c

43 lines
697 B
C
Raw Permalink Normal View History

2024-03-07 15:51:44 +01:00
#include <msp430g2553.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "time.h"
#include "PontCoopScheduler.h"
#include "led.h"
2024-03-08 09:57:47 +01:00
#include "displayDriver.h"
#include "canvas.h"
#include "displayTest.h"
2024-03-12 17:53:42 +01:00
#include "displayTest2.h"
#include "displayTest3.h"
2024-03-07 15:51:44 +01:00
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;
timeInit();
schInit();
ledInit();
2024-03-08 09:57:47 +01:00
displayDriverInit();
canvasInit();
2024-03-12 17:53:42 +01:00
displayTest3Init();
2024-03-08 09:57:47 +01:00
2024-03-07 15:51:44 +01:00
__enable_interrupt();
while (1) {
schExec();
}
}