projects
/
gbajam21
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added apex audio system
[gbajam21]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
d7a3308
..
03930b1
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-3,6
+3,9
@@
#include "intr.h"
#include "debug.h"
#include "intr.h"
#include "debug.h"
+#include "AAS.h"
+#include "data.h"
+
#define RGB15(r, g, b) \
(((uint16_t)(r) & 0x1f) | \
(((uint16_t)(g) & 0x1f) << 5) | \
#define RGB15(r, g, b) \
(((uint16_t)(r) & 0x1f) | \
(((uint16_t)(g) & 0x1f) << 5) | \
@@
-17,6
+20,12
@@
int main(void)
intr_init();
intr_init();
+ interrupt(INTR_TIMER1, AAS_Timer1InterruptHandler);
+ AAS_SetConfig(AAS_CONFIG_MIX_24KHZ, AAS_CONFIG_CHANS_8, AAS_CONFIG_SPATIAL_STEREO, AAS_CONFIG_DYNAMIC_ON);
+ unmask(INTR_TIMER1);
+ intr_enable();
+
+
REG_DISPCNT = 3 | DISPCNT_BG2;
vptr = (uint16_t*)VRAM_START_ADDR;
REG_DISPCNT = 3 | DISPCNT_BG2;
vptr = (uint16_t*)VRAM_START_ADDR;
@@
-31,6
+40,8
@@
int main(void)
}
}
}
}
+ AAS_MOD_Play(AAS_DATA_MOD_popcorn);
+
for(;;);
return 0;
}
for(;;);
return 0;
}