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: plEarlz.h
- Revision:
- 3:2bc2b0dce10e
- Child:
- 6:a4dff59ef214
diff -r e2a4c5d17d59 -r 2bc2b0dce10e plEarlz.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plEarlz.h Wed Sep 19 04:44:07 2012 +0000 @@ -0,0 +1,28 @@ +#ifndef PLEARLZ_H +#define PLEARLZ_H + + +int pl_shell(); + +static inline int is_whitespace(char c){ + return (c==' ') || (c=='\t') || (c=='\n') || (c=='\r'); +} + +static inline int is_numeric(char c){ + return (c>='0') && (c<='9'); +} + +static inline int is_alpha(char c){ + return ((c>='a') && (c<='z')) || ((c>='A') && (c<='Z')); +} + +static inline int is_identifier(char c){ + return is_alpha(c) || is_numeric(c) || (c=='_'); +} + +static inline int is_quote(char c){ + return (c=='\"') || (c=='\''); +} + + +#endif \ No newline at end of file