1 #ifndef LIBPROPELLER_SCHEDULER_H_
2 #define LIBPROPELLER_SCHEDULER_H_
11 #define CLKFREQ unit_CLKFREQ
12 extern unsigned volatile int unit_CNT;
60 if ((CNT - start_CNT_) >= period_ticks_) {
61 start_CNT_ += period_ticks_;
76 return (CLKFREQ * 10) / deci_hz;
80 unsigned int next_read_time_;
81 unsigned int start_CNT_;
82 unsigned int period_ticks_;
85 #endif // LIBPROPELLER_SCHEDULER_H_