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.
app.h@21:53c2a598dda1, 2015-12-01 (annotated)
- 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?
User | Revision | Line number | New 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 |