|
|
|
@ -2,6 +2,8 @@
@@ -2,6 +2,8 @@
|
|
|
|
|
#include <AP_HAL/AP_HAL.h> |
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_EMPTY |
|
|
|
|
|
|
|
|
|
#include <assert.h> |
|
|
|
|
|
|
|
|
|
#include "HAL_Empty_Class.h" |
|
|
|
|
#include "AP_HAL_Empty_Private.h" |
|
|
|
|
|
|
|
|
@ -52,6 +54,20 @@ void HAL_Empty::init(int argc,char* const argv[]) const {
@@ -52,6 +54,20 @@ void HAL_Empty::init(int argc,char* const argv[]) const {
|
|
|
|
|
_member->init(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void HAL_Empty::run(int argc, char* const argv[], Callbacks* callbacks) const |
|
|
|
|
{ |
|
|
|
|
assert(callbacks); |
|
|
|
|
|
|
|
|
|
init(argc, argv); |
|
|
|
|
|
|
|
|
|
callbacks->setup(); |
|
|
|
|
scheduler->system_initialized(); |
|
|
|
|
|
|
|
|
|
for (;;) { |
|
|
|
|
callbacks->loop(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const AP_HAL::HAL& AP_HAL::get_HAL() { |
|
|
|
|
static const HAL_Empty hal; |
|
|
|
|
return hal; |
|
|
|
|