Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
core/scheduler.h@27:b31ea8d74f9e, 2018-07-21 (annotated)
- Committer:
- gwappa
- Date:
- Sat Jul 21 00:36:38 2018 +0000
- Revision:
- 27:b31ea8d74f9e
add scheduler in order to fix the zero-latency bug
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gwappa | 27:b31ea8d74f9e | 1 | #ifndef SCHEDULER_H_ |
gwappa | 27:b31ea8d74f9e | 2 | #define SCHEDULER_H_ |
gwappa | 27:b31ea8d74f9e | 3 | |
gwappa | 27:b31ea8d74f9e | 4 | #include "mbed.h" |
gwappa | 27:b31ea8d74f9e | 5 | |
gwappa | 27:b31ea8d74f9e | 6 | namespace scheduler |
gwappa | 27:b31ea8d74f9e | 7 | { |
gwappa | 27:b31ea8d74f9e | 8 | void set(const us_timestamp_t& timeout_us, Callback<void ()> func); |
gwappa | 27:b31ea8d74f9e | 9 | void reset(); |
gwappa | 27:b31ea8d74f9e | 10 | } |
gwappa | 27:b31ea8d74f9e | 11 | |
gwappa | 27:b31ea8d74f9e | 12 | |
gwappa | 27:b31ea8d74f9e | 13 | #endif |