ardupilot/libraries/AP_HAL_VRBRAIN
Caio Marcelo de Oliveira Filho 2e464a53c2 AP_HAL: make code not depend on concrete HAL implementations
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.

A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.

The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.

Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.

The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
..
AP_HAL_VRBRAIN.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_VRBRAIN_Main.h
AP_HAL_VRBRAIN_Namespace.h
AnalogIn.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
GPIO.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
GPIO.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
HAL_VRBRAIN_Class.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
HAL_VRBRAIN_Class.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput.cpp AP_HAL_VRBRAIN: remove unused write method 2015-09-29 11:53:53 +09:00
RCOutput.h AP_HAL_VRBRAIN: remove unused write method 2015-09-29 11:53:53 +09:00
Scheduler.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Scheduler.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.cpp HAL_VRBrain: Rework of support for FLOW_CONTROL_AUTO from PX4 HAL 2015-08-19 15:21:19 +10:00
UARTDriver.h HAL_VRBrain: Rework of support for FLOW_CONTROL_AUTO from PX4 HAL 2015-08-19 15:21:19 +10:00
Util.cpp AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Util.h AP_HAL_VRBRAIN: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00