Added an idle function for long running functions to call.
This commit is contained in:
@@ -10,6 +10,7 @@ extern int strlen(const char *str);
|
|||||||
extern unsigned char inportb (unsigned short _port);
|
extern unsigned char inportb (unsigned short _port);
|
||||||
extern void outportb (unsigned short _port, unsigned char _data);
|
extern void outportb (unsigned short _port, unsigned char _data);
|
||||||
extern bool strcmp(char* str1, char* str2);
|
extern bool strcmp(char* str1, char* str2);
|
||||||
|
extern void idle();
|
||||||
/* ISRS.C */
|
/* ISRS.C */
|
||||||
void isrs_install();
|
void isrs_install();
|
||||||
/* This defines what the stack looks like after an ISR was running */
|
/* This defines what the stack looks like after an ISR was running */
|
||||||
|
|||||||
@@ -114,4 +114,9 @@ void main()
|
|||||||
/* ...and leave this loop in. There is an endless loop in
|
/* ...and leave this loop in. There is an endless loop in
|
||||||
* 'start.asm' also, if you accidentally delete this next line */
|
* 'start.asm' also, if you accidentally delete this next line */
|
||||||
for (;;);
|
for (;;);
|
||||||
|
}
|
||||||
|
|
||||||
|
void idle()
|
||||||
|
{
|
||||||
|
__asm__ __volatile__ ("hlt");
|
||||||
}
|
}
|
||||||
+1
-1
@@ -9,7 +9,7 @@ void run_shell()
|
|||||||
puts("Starting interactive shell...\n");
|
puts("Starting interactive shell...\n");
|
||||||
commandbuffer[0] = '\0';
|
commandbuffer[0] = '\0';
|
||||||
puts("#>");
|
puts("#>");
|
||||||
for(;;);
|
for(;;) idle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void key_pressed(unsigned char* character)
|
void key_pressed(unsigned char* character)
|
||||||
|
|||||||
Reference in New Issue
Block a user