Oscar Schofield / Mbed 2 deprecated Elec350_OBS

Dependencies:   mbed

Committer:
Oschofield
Date:
Tue Dec 01 13:18:49 2015 +0000
Revision:
21:53c2a598dda1
added the App.h and app.cpp files to library;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Oschofield 21:53c2a598dda1 1 #ifndef _APP_H_
Oschofield 21:53c2a598dda1 2 #define _APP_H_
Oschofield 21:53c2a598dda1 3
Oschofield 21:53c2a598dda1 4 #include <string>
Oschofield 21:53c2a598dda1 5 #include "mbed.h"
Oschofield 21:53c2a598dda1 6
Oschofield 21:53c2a598dda1 7 class App
Oschofield 21:53c2a598dda1 8 {
Oschofield 21:53c2a598dda1 9 protected:
Oschofield 21:53c2a598dda1 10 string name;
Oschofield 21:53c2a598dda1 11 Serial* serialPort;
Oschofield 21:53c2a598dda1 12
Oschofield 21:53c2a598dda1 13 public:
Oschofield 21:53c2a598dda1 14 App(string name, Serial* serialPort); //constructor
Oschofield 21:53c2a598dda1 15 string getName(); //returns the App name
Oschofield 21:53c2a598dda1 16 virtual void start();
Oschofield 21:53c2a598dda1 17 virtual void run() = 0;
Oschofield 21:53c2a598dda1 18 virtual void stop();
Oschofield 21:53c2a598dda1 19
Oschofield 21:53c2a598dda1 20 };
Oschofield 21:53c2a598dda1 21
Oschofield 21:53c2a598dda1 22 #endif
Oschofield 21:53c2a598dda1 23