\r
SRCS = \\r
badge/main.c \\r
+ badge/jumpnrun/collision.c \\r
+ badge/jumpnrun/enemies.c \\r
+ badge/jumpnrun/items.c \\r
+ badge/jumpnrun/jumpnrun.c \\r
+ badge/jumpnrun/level_load.c \\r
+ badge/jumpnrun/tiles.c \\r
badge/ui/display.c \\r
badge/ui/event.c \\r
badge/ui/sprite.c\r
+\r
SRCS += \\r
dataflash/at45db041d.c \\r
dataflash/iobase.c \\r
#include "ui/display.h"
#include "ui/sprite.h"
#include "ui/event.h"
+#include "jumpnrun/jumpnrun.h"
#include "r0ketports.h"
#include "drivers/fatfs/ff.h"
// pmuInit();
// adcInit();
rbInit();
+ usbMSCInit();
badge_display_init();
badge_event_start();
+ for(;;) {
+ if(JUMPNRUN_ERROR == jumpnrun_play("smb.lvl")) {
+ break;
+ }
+ }
+
+/*
uint8_t buttons = 0;
for(uint8_t i = 0; ; ++i) {
}
}
}
+*/
return 0;
}
}
void badge_event_start(void) {
- timer32Init(0, TIMER32_CCLK_10MS);
+ timer32Init(0, TIMER32_CCLK_10MS * 2);
timer32SetIntHandler(badge_event_irq);
timer32Enable(0);
}