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: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: Controller.h
- Revision:
- 38:930469a33001
- Parent:
- 10:fd4670ec0806
- Child:
- 39:cb67926712d4
diff -r 2d9480c498c9 -r 930469a33001 Controller.h
--- a/Controller.h Tue Jun 14 15:56:14 2016 +0000
+++ b/Controller.h Tue Jun 14 17:49:08 2016 +0000
@@ -8,8 +8,6 @@
class Controller {
public:
Controller(bool threaded, int interval_ms);
-
- virtual void update() = 0;
virtual std::string get_name() = 0;
@@ -22,6 +20,11 @@
void set_priority(osPriority priority);
osPriority get_priority();
+
+ protected:
+ virtual void update() = 0;
+
+ unsigned long num_iters;
private:
bool threaded;