AP_HAL_Empty: add panic method to scheduler

This commit is contained in:
Pat Hickey 2012-12-17 16:28:22 -08:00 committed by Andrew Tridgell
parent 9656b0ad0e
commit 885fc79af5
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@
using namespace Empty;
extern const AP_HAL::HAL& hal;
EmptyScheduler::EmptyScheduler()
{}
@ -51,6 +53,11 @@ void EmptyScheduler::begin_atomic()
void EmptyScheduler::end_atomic()
{}
void EmptyScheduler::panic(const prog_char_t *errormsg) {
hal.console->println_P(errormsg);
for(;;);
}
void EmptyScheduler::reboot() {
for(;;);
}

View File

@ -24,6 +24,7 @@ public:
void begin_atomic();
void end_atomic();
void panic(const prog_char_t *errormsg);
void reboot();
};