mirror of https://github.com/ArduPilot/ardupilot
HAL_Empty: added dummy millis64() and micros64()
This commit is contained in:
parent
5a55101703
commit
6450c84987
|
@ -14,14 +14,22 @@ void EmptyScheduler::init(void* machtnichts)
|
|||
void EmptyScheduler::delay(uint16_t ms)
|
||||
{}
|
||||
|
||||
uint32_t EmptyScheduler::millis() {
|
||||
uint64_t EmptyScheduler::millis64() {
|
||||
return 10000;
|
||||
}
|
||||
|
||||
uint32_t EmptyScheduler::micros() {
|
||||
uint64_t EmptyScheduler::micros64() {
|
||||
return 200000;
|
||||
}
|
||||
|
||||
uint32_t EmptyScheduler::millis() {
|
||||
return millis64();
|
||||
}
|
||||
|
||||
uint32_t EmptyScheduler::micros() {
|
||||
return micros64();
|
||||
}
|
||||
|
||||
void EmptyScheduler::delay_microseconds(uint16_t us)
|
||||
{}
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ public:
|
|||
void delay(uint16_t ms);
|
||||
uint32_t millis();
|
||||
uint32_t micros();
|
||||
uint64_t millis64();
|
||||
uint64_t micros64();
|
||||
void delay_microseconds(uint16_t us);
|
||||
void register_delay_callback(AP_HAL::Proc,
|
||||
uint16_t min_time_ms);
|
||||
|
|
Loading…
Reference in New Issue