HAL.cpp 238 B

123456789101112131415
  1. #include <assert.h>
  2. #include "HAL.h"
  3. namespace AP_HAL {
  4. HAL::FunCallbacks::FunCallbacks(void (*setup_fun)(void), void (*loop_fun)(void))
  5. : _setup(setup_fun)
  6. , _loop(loop_fun)
  7. {
  8. assert(setup_fun);
  9. assert(loop_fun);
  10. }
  11. }