mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
19 lines
425 B
C++
19 lines
425 B
C++
|
|
#ifndef __AP_HAL_SCHEDULER_H__
|
|
#define __AP_HAL_SCHEDULER_H__
|
|
|
|
#include "AP_HAL_Namespace.h"
|
|
|
|
class AP_HAL::Scheduler {
|
|
public:
|
|
Scheduler() {}
|
|
virtual void init() = 0;
|
|
virtual void delay(unsigned long ms) = 0;
|
|
virtual unsigned long millis() = 0;
|
|
virtual unsigned long micros() = 0;
|
|
virtual void delayMicroseconds(unsigned int us) = 0;
|
|
};
|
|
|
|
#endif // __AP_HAL_SCHEDULER_H__
|
|
|