2011-05-21 17:26:37 +02:00
|
|
|
#include <sysinit.h>
|
|
|
|
|
|
|
|
#include "basic/basic.h"
|
|
|
|
|
|
|
|
#include "lcd/render.h"
|
|
|
|
#include "lcd/backlight.h"
|
2011-06-15 10:53:12 +02:00
|
|
|
#include "lcd/allfonts.h"
|
2011-05-21 17:26:37 +02:00
|
|
|
|
2011-06-17 12:31:42 +02:00
|
|
|
#include "usb/usbmsc.h"
|
|
|
|
|
2011-05-21 17:26:37 +02:00
|
|
|
void ReinvokeISP(void);
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
|
2011-06-20 23:33:42 +02:00
|
|
|
void main_bsx(void) {
|
2011-05-21 17:26:37 +02: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 22:09:31 +02:00
|
|
|
lcdDisplay();
|
2011-06-17 12:31:42 +02:00
|
|
|
delayms(1000);
|
|
|
|
usbMSCInit();
|
2011-05-21 17:26:37 +02:00
|
|
|
|
|
|
|
while (1) {
|
|
|
|
uint32_t results;
|
2011-07-18 22:09:31 +02:00
|
|
|
lcdDisplay();
|
2011-05-21 17:26:37 +02:00
|
|
|
delayms(10);
|
|
|
|
|
|
|
|
if (gpioGetValue(RB_BTN4)==0) {
|
|
|
|
while(gpioGetValue(RB_BTN4)==0);
|
|
|
|
DoString(0,8,"Enter ISP!");
|
2011-07-18 22:09:31 +02:00
|
|
|
lcdDisplay();
|
2011-05-21 17:26:37 +02:00
|
|
|
ReinvokeISP();
|
2011-05-22 17:48:02 +02:00
|
|
|
}
|
2011-05-21 17:26:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2011-05-22 17:48:02 +02:00
|
|
|
|