mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_HAL Scheduler: interface has AP_PeriodicProcess functionality
This commit is contained in:
parent
a1863ec1f5
commit
6671310399
@ -9,12 +9,18 @@
|
||||
class AP_HAL::Scheduler {
|
||||
public:
|
||||
Scheduler() {}
|
||||
virtual void init() = 0;
|
||||
virtual void init(void* implspecific) = 0;
|
||||
virtual void delay(uint32_t ms) = 0;
|
||||
virtual uint32_t millis() = 0;
|
||||
virtual uint32_t micros() = 0;
|
||||
virtual void delay_microseconds(uint16_t us) = 0;
|
||||
virtual void register_delay_callback(void(*cb)(void));
|
||||
virtual void register_delay_callback(AP_HAL::Proc) = 0;
|
||||
virtual void register_timer_process(AP_HAL::TimedProc,
|
||||
uint32_t period_us, uint16_t phase) = 0;
|
||||
virtual void register_timer_failsafe(AP_HAL::TimedProc,
|
||||
uint32_t period_us) = 0;
|
||||
virtual void suspend_timer_procs() = 0;
|
||||
virtual void resume_timer_procs() = 0;
|
||||
};
|
||||
|
||||
#endif // __AP_HAL_SCHEDULER_H__
|
||||
|
Loading…
Reference in New Issue
Block a user