2024-03-25 13:28:33 +01:00
|
|
|
#include <msp430g2553.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2024-03-28 16:48:29 +01:00
|
|
|
#include "spi.h"
|
2024-03-26 14:43:02 +01:00
|
|
|
#include "psg.h"
|
2024-03-26 10:44:23 +01:00
|
|
|
#include "scheduler.h"
|
2024-03-26 15:58:45 +01:00
|
|
|
#include "sequencer.h"
|
2024-04-10 14:10:42 +02:00
|
|
|
#include "melody_tetris.h"
|
2024-04-14 14:59:37 +02:00
|
|
|
#include "melody_tusch1.h"
|
2024-04-10 14:37:20 +02:00
|
|
|
#include "mute.h"
|
2024-03-26 10:44:23 +01:00
|
|
|
|
2024-03-25 13:28:33 +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;
|
|
|
|
|
|
|
|
|
2024-03-26 10:44:23 +01:00
|
|
|
schInit();
|
|
|
|
|
2024-04-15 17:04:27 +02:00
|
|
|
spiInit();
|
2024-03-26 14:43:02 +01:00
|
|
|
psgInit();
|
2024-04-10 14:37:20 +02:00
|
|
|
muteInit();
|
2024-03-26 15:58:45 +01:00
|
|
|
sequencerInit();
|
2024-03-25 23:13:33 +01:00
|
|
|
|
2024-03-26 14:43:02 +01:00
|
|
|
__enable_interrupt();
|
2024-03-25 22:11:15 +01:00
|
|
|
|
2024-04-17 15:30:45 +02:00
|
|
|
|
2024-03-25 13:28:33 +01:00
|
|
|
while (1) {
|
2024-03-26 10:44:23 +01:00
|
|
|
schExec();
|
2024-03-25 13:28:33 +01:00
|
|
|
}
|
|
|
|
}
|