This commit is contained in:
2024-04-15 17:00:59 +02:00
parent 3eed2e30eb
commit 0c4533bfac

View File

@ -1,3 +1,4 @@
#include <stdint.h>
#include <msp430g2553.h> #include <msp430g2553.h>
#include "spi.h" #include "spi.h"
#include "../game-ctrl/sound.h" #include "../game-ctrl/sound.h"
@ -8,7 +9,7 @@ volatile t_SoundCmd cmd;
void __attribute__ ((interrupt (USCIAB0RX_VECTOR))) receive() { void __attribute__ ((interrupt (USCIAB0RX_VECTOR))) receive() {
if (UC0IFG & UCB0RXIFG) { if (UC0IFG & UCB0RXIFG) {
// receive an octet // receive an octet
cmd = UCB0RXBUF cmd = UCB0RXBUF;
} }
} }