dbgmesg: show stackpointer
This commit is contained in:
parent
53bc25c0fa
commit
376db6a607
|
@ -83,6 +83,7 @@ void m_time(void){
|
||||||
struct tm* tm;
|
struct tm* tm;
|
||||||
int select=0;
|
int select=0;
|
||||||
char c[2]={0,0};
|
char c[2]={0,0};
|
||||||
|
int sp;
|
||||||
getInputWaitRelease();
|
getInputWaitRelease();
|
||||||
delayms(100);
|
delayms(100);
|
||||||
while(1) {
|
while(1) {
|
||||||
|
@ -133,6 +134,11 @@ void m_time(void){
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrint("Inc:");
|
lcdPrint("Inc:");
|
||||||
lcdPrintInt(meshincctr);
|
lcdPrintInt(meshincctr);
|
||||||
|
|
||||||
|
lcdPrint(" SP:");
|
||||||
|
__asm( "mov %0, sp\n" : "=r" (sp) :);
|
||||||
|
lcdPrint(IntToStrX(sp,4));
|
||||||
|
|
||||||
lcdNl();
|
lcdNl();
|
||||||
lcdPrint("Nice:");
|
lcdPrint("Nice:");
|
||||||
lcdPrintInt(meshnice);
|
lcdPrintInt(meshnice);
|
||||||
|
|
Loading…
Reference in New Issue