2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Revision 1:7019a60fd585, committed 2018-12-02
- Comitter:
- shimniok
- Date:
- Sun Dec 02 16:50:51 2018 +0000
- Parent:
- 0:7e98bbfd102a
- Child:
- 2:b10ea7f5ff5d
- Commit message:
- added command attach and test command
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Config.h Sun Dec 02 16:50:51 2018 +0000 @@ -0,0 +1,10 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +class Config { +public: + int load(char *filename); + get(char *name); +} + +#endif \ No newline at end of file
--- a/SimpleShell.lib Sat Dec 01 23:27:11 2018 +0000 +++ b/SimpleShell.lib Sun Dec 02 16:50:51 2018 +0000 @@ -1,1 +1,1 @@ -SimpleShell#49820d5a38c9 +SimpleShell#998a7ed04f10
--- a/main.cpp Sat Dec 01 23:27:11 2018 +0000 +++ b/main.cpp Sun Dec 02 16:50:51 2018 +0000 @@ -22,11 +22,19 @@ Thread thread; +void test() { + printf("Hello world!\n"); +} + + // main() runs in its own thread in the OS int main() { printf("Bootup...\n"); fflush(stdout); + + sh.attach(test, "test"); + thread.start(callback(&sh, &SimpleShell::run)); /*