2012-12-14 21:55:38 -04:00
|
|
|
|
|
|
|
#ifndef __AP_HAL_EMPTY_H__
|
|
|
|
#define __AP_HAL_EMPTY_H__
|
|
|
|
|
|
|
|
/* Your layer exports should depend on AP_HAL.h ONLY. */
|
2015-08-11 03:28:43 -03:00
|
|
|
#include <AP_HAL/AP_HAL.h>
|
2012-12-14 21:55:38 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Umbrella header for AP_HAL_Empty module.
|
|
|
|
* The module header exports singleton instances which must conform the
|
|
|
|
* AP_HAL::HAL interface. It may only expose implementation details (class
|
|
|
|
* names, headers) via the Empty namespace.
|
|
|
|
* The class implementing AP_HAL::HAL should be called HAL_Empty and exist
|
|
|
|
* in the global namespace. There should be a single const instance of the
|
|
|
|
* HAL_Empty class called AP_HAL_Empty, instantiated in the HAL_Empty_Class.cpp
|
|
|
|
* and exported as `extern const HAL_Empty AP_HAL_Empty;` in HAL_Empty_Class.h
|
|
|
|
*
|
|
|
|
* All declaration and compilation should be guarded by CONFIG_HAL_BOARD macros.
|
|
|
|
* In this case, we're using CONFIG_HAL_BOARD == HAL_BOARD_EMPTY.
|
|
|
|
* When creating a new HAL, declare a new HAL_BOARD_ in AP_HAL/AP_HAL_Boards.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "HAL_Empty_Class.h"
|
|
|
|
|
|
|
|
#endif //__AP_HAL_EMPTY_H__
|
|
|
|
|