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

Revision:
9:4211d638b2e9
Parent:
3:2bc2b0dce10e
Child:
11:fede136943a9
--- a/mbedconsole.h	Sat Sep 22 04:14:01 2012 +0000
+++ b/mbedconsole.h	Wed Sep 26 04:12:57 2012 +0000
@@ -3,6 +3,7 @@
 
 #include "mbed.h"
 #include "vga640x480g.h"
+#include "PS2Keyboard.h"
 
 void vputc(char c);
 void vputs(char *s);
@@ -14,11 +15,32 @@
 
 void shell_begin();
 
+extern PS2Keyboard *ps2kb;
 
 
 
 extern Serial serial;
 
 
+class ConsoleStream : public Stream //do this so we get printf and other goodies. Uses C functions for VGA and PS/2
+{
+    public:
+    ConsoleStream(){}
+    protected:
+ 
+    // Stream implementation functions
+    virtual int _putc(int value)
+    {
+        vputc((char)value);
+        return 1;
+    }
+    virtual int _getc()
+    {
+        return 0; //not yet implemented
+    }
+};
+
+extern ConsoleStream console;
+
 
 #endif
\ No newline at end of file