Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SX1272lib mbed-src
Diff: Terminal.h
- Revision:
 - 2:8d8295a51f68
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Terminal.h	Thu Oct 01 09:40:30 2015 +0200
@@ -0,0 +1,34 @@
+#ifndef _TERMINAL_HPP_
+#define _TERMINAL_HPP_
+
+#include <list>
+#include <string>
+#include "mbed.h"
+#include "CmdFactory.h"
+#include "dbg.h"
+
+
+class Terminal
+{
+    public:
+        Terminal(Settings* settings, Serial *serial, InterruptIn* pinStart);
+        ~Terminal();
+        
+        void start(void);
+        void executeCmd(string rxBuffer);
+ 
+    private:
+        void buttonPressed();
+
+        static list<string> tokenize(const string& str, const string& delimiters = " ");
+
+        Settings* settings_;
+        Serial *serial_;
+        InterruptIn* pinStart_;
+        volatile bool buttonStart_;
+        
+        CmdFactory *cmdFactory_;
+
+};
+
+#endif