Browse Source

AP_HAL_Empty: Stub out new Scheduler methods

mission-4.1.18
Pat Hickey 12 years ago
parent
commit
83adb72f16
  1. 11
      libraries/AP_HAL_Empty/Scheduler.cpp
  2. 11
      libraries/AP_HAL_Empty/Scheduler.h

11
libraries/AP_HAL_Empty/Scheduler.cpp

@ -42,12 +42,23 @@ void EmptyScheduler::suspend_timer_procs()
void EmptyScheduler::resume_timer_procs() void EmptyScheduler::resume_timer_procs()
{} {}
bool EmptyScheduler::in_timerprocess() {
return false;
}
void EmptyScheduler::begin_atomic() void EmptyScheduler::begin_atomic()
{} {}
void EmptyScheduler::end_atomic() void EmptyScheduler::end_atomic()
{} {}
bool EmptyScheduler::system_initializing() {
return false;
}
void EmptyScheduler::system_initialized()
{}
void EmptyScheduler::panic(const prog_char_t *errormsg) { void EmptyScheduler::panic(const prog_char_t *errormsg) {
hal.console->println_P(errormsg); hal.console->println_P(errormsg);
for(;;); for(;;);

11
libraries/AP_HAL_Empty/Scheduler.h

@ -14,15 +14,22 @@ public:
void delay_microseconds(uint16_t us); void delay_microseconds(uint16_t us);
void register_delay_callback(AP_HAL::Proc, void register_delay_callback(AP_HAL::Proc,
uint16_t min_time_ms); uint16_t min_time_ms);
void register_timer_process(AP_HAL::TimedProc); void register_timer_process(AP_HAL::TimedProc);
void register_timer_failsafe(AP_HAL::TimedProc,
uint32_t period_us);
void suspend_timer_procs(); void suspend_timer_procs();
void resume_timer_procs(); void resume_timer_procs();
bool in_timerprocess();
void register_timer_failsafe(AP_HAL::TimedProc,
uint32_t period_us);
void begin_atomic(); void begin_atomic();
void end_atomic(); void end_atomic();
bool system_initializing();
void system_initialized();
void panic(const prog_char_t *errormsg); void panic(const prog_char_t *errormsg);
void reboot(); void reboot();

Loading…
Cancel
Save