HAL_Empty: added dummy millis64() and micros64()

This commit is contained in:
Andrew Tridgell 2014-08-20 07:59:21 +10:00
parent 5a55101703
commit 6450c84987
2 changed files with 12 additions and 2 deletions

View File

@ -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)
{}

View File

@ -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);