AP_HAL_ChibiOS.h 912 B

123456789101112131415161718192021
  1. #pragma once
  2. /* Your layer exports should depend on AP_HAL.h ONLY. */
  3. #include <AP_HAL/AP_HAL.h>
  4. /**
  5. * Umbrella header for AP_HAL_Empty module.
  6. * The module header exports singleton instances which must conform the
  7. * AP_HAL::HAL interface. It may only expose implementation details (class
  8. * names, headers) via the Empty namespace.
  9. * The class implementing AP_HAL::HAL should be called HAL_Empty and exist
  10. * in the global namespace. There should be a single const instance of the
  11. * HAL_Empty class called AP_HAL_Empty, instantiated in the HAL_Empty_Class.cpp
  12. * and exported as `extern const HAL_Empty AP_HAL_Empty;` in HAL_Empty_Class.h
  13. *
  14. * All declaration and compilation should be guarded by CONFIG_HAL_BOARD macros.
  15. * In this case, we're using CONFIG_HAL_BOARD == HAL_BOARD_EMPTY.
  16. * When creating a new HAL, declare a new HAL_BOARD_ in AP_HAL/AP_HAL_Boards.h
  17. */
  18. #include "HAL_ChibiOS_Class.h"