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.
Dependents: TargetManagerManualTest NerfUSTarget
include/TargetTicker.hpp@4:166a5b9c6e91, 2017-03-12 (annotated)
- Committer:
- dupm2216
- Date:
- Sun Mar 12 00:54:47 2017 +0000
- Revision:
- 4:166a5b9c6e91
- Parent:
- 2:08171ac3fea4
Decouple TargetTicker from TargetManager
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dupm2216 | 2:08171ac3fea4 | 1 | #ifndef TARGET_TICKER_HPP |
| dupm2216 | 2:08171ac3fea4 | 2 | #define TARGET_TICKER_HPP |
| dupm2216 | 2:08171ac3fea4 | 3 | |
| dupm2216 | 2:08171ac3fea4 | 4 | #include "mbed.h" |
| dupm2216 | 4:166a5b9c6e91 | 5 | #include "NerfusCallbackInterface.hpp" |
| dupm2216 | 2:08171ac3fea4 | 6 | #include "TargetTickerInterface.hpp" |
| dupm2216 | 2:08171ac3fea4 | 7 | |
| dupm2216 | 2:08171ac3fea4 | 8 | class TargetTicker : public TargetTickerInterface |
| dupm2216 | 2:08171ac3fea4 | 9 | { |
| dupm2216 | 2:08171ac3fea4 | 10 | public: |
| dupm2216 | 2:08171ac3fea4 | 11 | virtual void start(int timeout_ms); |
| dupm2216 | 2:08171ac3fea4 | 12 | virtual void stop(); |
| dupm2216 | 2:08171ac3fea4 | 13 | |
| dupm2216 | 4:166a5b9c6e91 | 14 | void init(NerfusCallbackInterface* nerfus_callback); |
| dupm2216 | 2:08171ac3fea4 | 15 | void timeout(); |
| dupm2216 | 2:08171ac3fea4 | 16 | |
| dupm2216 | 2:08171ac3fea4 | 17 | private: |
| dupm2216 | 4:166a5b9c6e91 | 18 | NerfusCallbackInterface *nerfus_callback; |
| dupm2216 | 2:08171ac3fea4 | 19 | Ticker ticker; |
| dupm2216 | 2:08171ac3fea4 | 20 | }; |
| dupm2216 | 2:08171ac3fea4 | 21 | |
| dupm2216 | 2:08171ac3fea4 | 22 | #endif |