mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
AP_HAL_Empty: Stub out new Scheduler methods
This commit is contained in:
parent
a228519b18
commit
83adb72f16
@ -42,12 +42,23 @@ void EmptyScheduler::suspend_timer_procs()
|
||||
void EmptyScheduler::resume_timer_procs()
|
||||
{}
|
||||
|
||||
bool EmptyScheduler::in_timerprocess() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void EmptyScheduler::begin_atomic()
|
||||
{}
|
||||
|
||||
void EmptyScheduler::end_atomic()
|
||||
{}
|
||||
|
||||
bool EmptyScheduler::system_initializing() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void EmptyScheduler::system_initialized()
|
||||
{}
|
||||
|
||||
void EmptyScheduler::panic(const prog_char_t *errormsg) {
|
||||
hal.console->println_P(errormsg);
|
||||
for(;;);
|
||||
|
@ -14,15 +14,22 @@ public:
|
||||
void delay_microseconds(uint16_t us);
|
||||
void register_delay_callback(AP_HAL::Proc,
|
||||
uint16_t min_time_ms);
|
||||
|
||||
void register_timer_process(AP_HAL::TimedProc);
|
||||
void register_timer_failsafe(AP_HAL::TimedProc,
|
||||
uint32_t period_us);
|
||||
void suspend_timer_procs();
|
||||
void resume_timer_procs();
|
||||
|
||||
bool in_timerprocess();
|
||||
|
||||
void register_timer_failsafe(AP_HAL::TimedProc,
|
||||
uint32_t period_us);
|
||||
|
||||
void begin_atomic();
|
||||
void end_atomic();
|
||||
|
||||
bool system_initializing();
|
||||
void system_initialized();
|
||||
|
||||
void panic(const prog_char_t *errormsg);
|
||||
void reboot();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user