fix
This commit is contained in:
parent
2f8e2937c1
commit
5b9194caae
@ -7,7 +7,7 @@ MCU=msp430g2553
|
|||||||
CFLAGS=-Wall -mmcu=$(MCU) -std=gnu99 -I $(TOOLCHAIN_PREFIX)/include -O1 -g0
|
CFLAGS=-Wall -mmcu=$(MCU) -std=gnu99 -I $(TOOLCHAIN_PREFIX)/include -O1 -g0
|
||||||
|
|
||||||
# for debugging
|
# for debugging
|
||||||
CFLAGS+= -g3 -ggdb -gdwarf-2
|
#CFLAGS+= -g3 -ggdb -gdwarf-2
|
||||||
|
|
||||||
LDFLAGS=-mmcu=$(MCU) -L $(TOOLCHAIN_PREFIX)/include
|
LDFLAGS=-mmcu=$(MCU) -L $(TOOLCHAIN_PREFIX)/include
|
||||||
|
|
||||||
|
@ -1165,10 +1165,11 @@ t_melodies tusch2 = {
|
|||||||
|
|
||||||
void playTusch1(void *handle) {
|
void playTusch1(void *handle) {
|
||||||
sequencerPlayMelodies(&tusch1);
|
sequencerPlayMelodies(&tusch1);
|
||||||
|
schAdd(playTusch1, NULL, 30000, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void melodyInit() {
|
void melodyInit() {
|
||||||
// sequencerPlayMelodies(&tetrisTheme);
|
sequencerPlayMelodies(&tetrisTheme);
|
||||||
schAdd(playTusch1, NULL, 2000, 0);
|
schAdd(playTusch1, NULL, 2000, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ typedef struct {
|
|||||||
#define NUM_OF_CHANNELS 3
|
#define NUM_OF_CHANNELS 3
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t taskId;
|
uint8_t taskId;
|
||||||
uint8_t numOfMelodies;
|
|
||||||
bool firstRun;
|
bool firstRun;
|
||||||
|
uint8_t numOfMelodies;
|
||||||
uint8_t pace; // quarter notes per minute
|
uint8_t pace; // quarter notes per minute
|
||||||
uint8_t sync;
|
uint8_t sync;
|
||||||
t_melody melodies[NUM_OF_CHANNELS];
|
t_melody melodies[NUM_OF_CHANNELS];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user