AP_HAL: Scheduler should use stdint types, conform names

This commit is contained in:
Pat Hickey 2012-09-05 16:54:21 -07:00 committed by Andrew Tridgell
parent a9dff1ad25
commit 1d89419059

View File

@ -4,14 +4,16 @@
#include "AP_HAL_Namespace.h"
#include <stdint.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;
Scheduler( AP_HAL::Periodic ) {}
virtual void init() = 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;
};
#endif // __AP_HAL_SCHEDULER_H__