2011-05-21 15:26:37 +00:00
|
|
|
#include <sysinit.h>
|
|
|
|
|
|
|
|
#include "basic/basic.h"
|
|
|
|
|
|
|
|
#include "lcd/render.h"
|
|
|
|
#include "lcd/backlight.h"
|
2011-06-15 08:53:12 +00:00
|
|
|
#include "lcd/allfonts.h"
|
2011-05-21 15:26:37 +00:00
|
|
|
|
2011-06-17 10:31:42 +00:00
|
|
|
#include "usb/usbmsc.h"
|
|
|
|
|
2011-05-21 15:26:37 +00:00
|
|
|
void ReinvokeISP(void);
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
|
2011-06-20 21:33:42 +00:00
|
|
|
void main_bsx(void) {
|
2011-05-21 15:26:37 +00:00
|
|
|
int yctr = 18;
|
|
|
|
int dx = 0;
|
|
|
|
uint32_t brightness = 0;
|
|
|
|
|
|
|
|
font_direction = FONT_DIR_LTR; // LeftToRight is the default
|
|
|
|
font = &Font_7x8;
|
|
|
|
|
|
|
|
DoString(0, 0, "bsx");
|
2011-07-18 20:09:31 +00:00
|
|
|
lcdDisplay();
|
2011-06-17 10:31:42 +00:00
|
|
|
delayms(1000);
|
|
|
|
usbMSCInit();
|
2011-05-21 15:26:37 +00:00
|
|
|
|
|
|
|
while (1) {
|
|
|
|
uint32_t results;
|
2011-07-18 20:09:31 +00:00
|
|
|
lcdDisplay();
|
2011-05-21 15:26:37 +00:00
|
|
|
delayms(10);
|
|
|
|
|
|
|
|
if (gpioGetValue(RB_BTN4)==0) {
|
|
|
|
while(gpioGetValue(RB_BTN4)==0);
|
|
|
|
DoString(0,8,"Enter ISP!");
|
2011-07-18 20:09:31 +00:00
|
|
|
lcdDisplay();
|
2011-05-21 15:26:37 +00:00
|
|
|
ReinvokeISP();
|
2011-05-22 15:48:02 +00:00
|
|
|
}
|
2011-05-21 15:26:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2011-05-22 15:48:02 +00:00
|
|
|
|