Check stackpointer
This commit is contained in:
parent
861994ef93
commit
b6ef360f43
|
@ -43,7 +43,7 @@ void ChkBattery(void) {
|
|||
lcdPrintln("0");
|
||||
};
|
||||
lcdRefresh();
|
||||
// delayms_queue(100);
|
||||
delayms_queue(100);
|
||||
} while ((getInputRaw())==BTN_NONE);
|
||||
}
|
||||
|
||||
|
@ -137,3 +137,20 @@ void tick_alive(void){
|
|||
};
|
||||
return;
|
||||
};
|
||||
|
||||
//# MENU debug ShowSP
|
||||
void getsp(void) {
|
||||
int dx=0;
|
||||
int dy=8;
|
||||
int x;
|
||||
lcdClear();
|
||||
dx=DoString(0,dy,"SP:");
|
||||
while ((getInputRaw())==BTN_NONE){
|
||||
__asm( "mov %0, sp\n" : "=r" (x) :);
|
||||
DoIntX(0,dy+8,x);
|
||||
lcdDisplay();
|
||||
delayms_queue(50);
|
||||
};
|
||||
dy+=16;
|
||||
dx=DoString(0,dy,"Done.");
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue