The unified diff between revisions [cc8258a6..] and [253c6510..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'main.c'
# # old_revision [cc8258a6c3643514892e84cf24fed008bc6f9660] # new_revision [253c65100e2208e0b8c93178896f5aab89e4ec0b] # # patch "main.c" # from [0a896cdc054a7e9fc0211de74469c22eef83a867] # to [d5ad069a51eff072171a593f4f480b1e8aab11bb] # ============================================================ --- main.c 0a896cdc054a7e9fc0211de74469c22eef83a867 +++ main.c d5ad069a51eff072171a593f4f480b1e8aab11bb @@ -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)) @@ -171,7 +172,8 @@ int main(void) { while (1) { char c; putstr("prompt> "); - c = getch(); + while (!getch(&c)) + FP0XVAL ^= 0x04000000; if (c == 0x0a) continue; putch(c); @@ -255,6 +257,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;