diff options
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 1b5e09f..fd0cbd5 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -12,6 +12,7 @@ #include <util/time.h> void localtest(void); +void uarttest(unsigned char); void c_irq_handler(void) { @@ -90,6 +91,7 @@ void c_irq_handler(void) } else { cmd[off] = (char) data; off += 1; + add_thread(uarttest, (void*)data, 2); } } else if (off == 2048) { if (data == 0x0D) { @@ -246,3 +248,8 @@ unsigned long c_fiq_handler(void) void localtest(void) { } + +void uarttest(unsigned char a) +{ + uart_char(a); +} |