Torsten Wylegala
/
rtos-example
rtos example
Fork of mbed_blinky by
Runnable.h@8:ec1a44f8e456, 2016-02-04 (annotated)
- Committer:
- torstenwylegala
- Date:
- Thu Feb 04 10:43:16 2016 +0000
- Revision:
- 8:ec1a44f8e456
init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
torstenwylegala | 8:ec1a44f8e456 | 1 | #ifndef RUNNABLE_H_ |
torstenwylegala | 8:ec1a44f8e456 | 2 | #define RUNNABLE_H_ |
torstenwylegala | 8:ec1a44f8e456 | 3 | |
torstenwylegala | 8:ec1a44f8e456 | 4 | #include "mbed.h" |
torstenwylegala | 8:ec1a44f8e456 | 5 | |
torstenwylegala | 8:ec1a44f8e456 | 6 | class Runnable { |
torstenwylegala | 8:ec1a44f8e456 | 7 | |
torstenwylegala | 8:ec1a44f8e456 | 8 | private: |
torstenwylegala | 8:ec1a44f8e456 | 9 | |
torstenwylegala | 8:ec1a44f8e456 | 10 | public: |
torstenwylegala | 8:ec1a44f8e456 | 11 | |
torstenwylegala | 8:ec1a44f8e456 | 12 | virtual void run() = 0; |
torstenwylegala | 8:ec1a44f8e456 | 13 | |
torstenwylegala | 8:ec1a44f8e456 | 14 | static void callback(void const *argument); |
torstenwylegala | 8:ec1a44f8e456 | 15 | |
torstenwylegala | 8:ec1a44f8e456 | 16 | }; |
torstenwylegala | 8:ec1a44f8e456 | 17 | |
torstenwylegala | 8:ec1a44f8e456 | 18 | |
torstenwylegala | 8:ec1a44f8e456 | 19 | |
torstenwylegala | 8:ec1a44f8e456 | 20 | #endif |