2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Files at this revision

API Documentation at this revision

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

Config.h Show annotated file Show diff for this revision Revisions of this file
SimpleShell.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /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));
 
 /*