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
main.cpp@1:eb209f0468de, 2012-09-17 (annotated)
- Committer:
- earlz
- Date:
- Mon Sep 17 04:41:37 2012 +0000
- Revision:
- 1:eb209f0468de
- Parent:
- 0:6906dbde03da
- Child:
- 9:4211d638b2e9
Getting more and more useful
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
earlz | 1:eb209f0468de | 1 | #include "mbedconsole.h" |
earlz | 0:6906dbde03da | 2 | |
earlz | 0:6906dbde03da | 3 | |
earlz | 0:6906dbde03da | 4 | |
earlz | 0:6906dbde03da | 5 | DigitalOut myled(LED1); |
earlz | 0:6906dbde03da | 6 | |
earlz | 1:eb209f0468de | 7 | |
earlz | 1:eb209f0468de | 8 | Serial serial(USBTX, USBRX); |
earlz | 0:6906dbde03da | 9 | |
earlz | 0:6906dbde03da | 10 | |
earlz | 1:eb209f0468de | 11 | |
earlz | 0:6906dbde03da | 12 | |
earlz | 0:6906dbde03da | 13 | int main() { |
earlz | 0:6906dbde03da | 14 | init_vga(); |
earlz | 0:6906dbde03da | 15 | serial.baud(115200); |
earlz | 0:6906dbde03da | 16 | |
earlz | 0:6906dbde03da | 17 | vga_cls(); |
earlz | 0:6906dbde03da | 18 | |
earlz | 0:6906dbde03da | 19 | while(1) |
earlz | 0:6906dbde03da | 20 | { |
earlz | 1:eb209f0468de | 21 | vputs("mbedConsole by Jordan Earls\n"); |
earlz | 1:eb209f0468de | 22 | shell_begin(); |
earlz | 0:6906dbde03da | 23 | } |
earlz | 0:6906dbde03da | 24 | } |