This commit is contained in:
Daniel Borges
2012-11-16 09:18:57 +01:00
commit ea6f1ef80a
79 changed files with 3595 additions and 0 deletions

41
Player/arm7/source/main.c Normal file
View File

@@ -0,0 +1,41 @@
#include <nds.h>
#include <dswifi7.h>
#include <maxmod7.h>
#include "Player.h"
void VCountHandler()
{
inputGetAndSend();
}
int main()
{
irqInit();
fifoInit();
readUserSettings();
initClockIRQ();
SetYtrigger(80);
installSystemFIFO();
irqSet(IRQ_VCOUNT, VCountHandler);
irqSet(IRQ_VBLANK, 0);
irqEnable(IRQ_VBLANK|IRQ_VCOUNT|IRQ_NETWORK);
powerOn(POWER_SOUND);
REG_SOUNDCNT = SOUND_ENABLE | SOUND_VOL(127);
static Player oPlayer;
Player_Init(& oPlayer);
while ( 1 )
{
swiWaitForVBlank();
Player_Execute(& oPlayer);
}
return 0;
}