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

16
game-ctrl/time.c Normal file
View File

@ -0,0 +1,16 @@
#include <msp430g2553.h>
#include "time.h"
#include "PontCoopScheduler.h"
void __attribute__ ((interrupt (TIMER0_A0_VECTOR))) ta0_isr() {
schUpdate();
}
void timeInit() {
TACCR0 = 32;
TACCTL0 = CCIE;
TACTL = MC_1 | ID_0 | TASSEL_1 | TACLR;
}