game-ctrl merged

This commit is contained in:
2024-03-14 11:10:18 +01:00
parent 349c93b68f
commit 1959a3f578
40 changed files with 0 additions and 0 deletions

39
game-ctrl/main.c Normal file
View File

@ -0,0 +1,39 @@
#include <msp430g2553.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "time.h"
#include "PontCoopScheduler.h"
#include "led.h"
#include "displayDriver.h"
#include "canvas.h"
#include "game.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;
timeInit();
schInit();
ledInit();
displayDriverInit();
canvasInit();
gameInit();
__enable_interrupt();
while (1) {
schExec();
}
}