ardupilot/libraries/AP_HAL_Empty/Scheduler.h
Peter Barker 2d3092407f AP_HAL_Empty: move implementations of functions to header
Makes it much clearer what's implemented and what's dangling
2022-06-23 12:38:41 +10:00

22 lines
657 B
C++

#pragma once
#include "AP_HAL_Empty.h"
class Empty::Scheduler : public AP_HAL::Scheduler {
public:
Scheduler() {}
void init() override {}
void delay(uint16_t ms) override {}
void delay_microseconds(uint16_t us) override {}
void register_timer_process(AP_HAL::MemberProc) override {}
void register_io_process(AP_HAL::MemberProc) override {}
void register_timer_failsafe(AP_HAL::Proc, uint32_t period_us) override {}
void set_system_initialized() override {}
bool is_system_initialized() override { return true; }
void reboot(bool hold_in_bootloader) override { for (;;); }
};