diff options
author | Christian Cunningham <cc@localhost> | 2022-01-31 19:34:03 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-31 19:34:03 -0700 |
commit | 1b4c8e04ded44fa11a1e95d2db5bef4b8eaddcd1 (patch) | |
tree | 6ee2fcc6de6d038dfdb4b769d081e0cc47030b8b /src/cpu | |
parent | a1f49718aee378fa075303c86106309091d56b80 (diff) |
Remove old global
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/irq.c | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c index 7f2a89e..24a809c 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -93,30 +93,24 @@ unsigned long c_fiq_handler(void) void handle_data(unsigned char data) { - unsigned long off = cmdidx; - if (off < 2048) { - // Newline Case - if (data == 0x0D) { - // Backspace Case - } else if (data == 0x08 || data == 0x7F) { - // Lock Case - } else if (data == 0x6C) { - lock_mutex(&exe_cnt_m, SYS_PID); - // Release Case - } else if (data == 0x72) { - release_mutex(&exe_cnt_m, SYS_PID); - } else if (data == 0x61) { - add_thread(testfxn, 0, 3); - } else if (data == 0x62) { - add_thread(uart_scheduler, 0, 2); - } else if (data == 0x63) { - add_thread(heap_info, 0, 2); - // Else output - } else { - } - } else if (off == 2048) { + // Newline Case + if (data == 0x0D) { + // Backspace Case + } else if (data == 0x08 || data == 0x7F) { + // Lock Case + } else if (data == 0x6C) { + lock_mutex(&exe_cnt_m, SYS_PID); + // Release Case + } else if (data == 0x72) { + release_mutex(&exe_cnt_m, SYS_PID); + } else if (data == 0x61) { + add_thread(testfxn, 0, 3); + } else if (data == 0x62) { + add_thread(uart_scheduler, 0, 2); + } else if (data == 0x63) { + add_thread(heap_info, 0, 2); + } else { } - cmdidx = off; g_Drawer.x = 0; g_Drawer.y = 7; for(int i = 0; i < 128; i++) @@ -124,7 +118,6 @@ void handle_data(unsigned char data) g_Drawer.x = 0; g_Drawer.y = 7; write_string(&g_Drawer, "> "); - write_string(&g_Drawer, cmd); } void testfxn2(void) |