A project to implement a console using the Mbed using VGA for video output and a PS/2 keyboard for the input. The eventual goal is to also include tools for managing SD cards, and a semi-self-hosting programming environment.
Dependencies: PS2_MbedConsole fastlib SDFileSystem vga640x480g_mbedconsole lightvm mbed
MbedConsole is a cool little project to have a self-contained computer all on an Mbed. So far it has VGA and PS/2 support and can stand alone without a computer powering it. Next planned features are SD card support and a lightweight programmable VM complete with a file editor and self-hosted assembler.
You can view additional details about it at http://earlz.net/tags/mbedconsole
Diff: shell.cpp
- Revision:
- 12:3ee3062cc11c
- Parent:
- 10:bda85442b674
- Child:
- 13:442bd2fb4ea0
--- a/shell.cpp Fri Sep 28 04:03:54 2012 +0000 +++ b/shell.cpp Fri Sep 28 04:35:00 2012 +0000 @@ -16,8 +16,12 @@ if(strlcmp(cmd, "help", 5)==0){ valid=true; vputs("Command list:\n"); - vputs("help -- this text \n"); - vputs("cls -- clear the screen\n"); + vputs("help -- this text \n"); + vputs("cls -- clear the screen\n"); + vputs("testX -- test (where X is number) performs tests\n"); + vputs("reboot -- resets the processor\n"); + vputs("about -- prints text about how we got to here\n"); + vputs("plearlz -- enter the PLEarlz Forth shell\n"); }else if(strlcmp(cmd,"cls",4)==0){ valid=true; vga_cls(); @@ -51,9 +55,15 @@ }else if(strlcmp(cmd, "plearlz", 8)==0){ valid=1; pl_shell(); + }else if(strlcmp(cmd,"reboot", 7)==0){ + valid=1; + NVIC_SystemReset(); + }else if(strlcmp(cmd, "about", 6)==0){ + valid=1; + vputs("I am Jack's broken monolog\n"); } if(!valid){ - vputs("invalid command!\n"); + vputs("Invalid Command! Try `help` if you need it\n"); } } }