* Make total stack size available as a symbol

* Implement SWI handler to enable/disable interrupts
* Implement event system to deal with kicking non-interrupt code
This commit is contained in:
2011-06-03 21:22:01 +00:00
parent 0f508fb424
commit 9f79b3d82e
9 changed files with 171 additions and 3 deletions

5
main.c
View File

@@ -4,6 +4,7 @@
#include "timer.h"
#include "uart.h"
#include "interrupt.h"
#include "event.h"
#define PINSEL0 (*((volatile unsigned char *) 0xE002C000))
#define FP0XDIR (*((volatile unsigned int *) 0x3FFFC000))
@@ -255,6 +256,10 @@ int main(void) {
timer_set_period(10000*TIMER_MS);
reply("done");
break;
case 'E':
event_dispatch();
reply("done");
break;
default:
reply("Unrecognised command.");
break;