ardupilot/libraries/AP_HAL_PX4
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
..
examples/simple AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AnalogIn.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_PX4_Main.h HAL_PX4: make APM sketches into daemons 2013-01-04 11:14:35 +11:00
AP_HAL_PX4_Namespace.h HAL_PX4: added hal.i2c support on PX4 boards 2015-09-08 16:46:52 +10:00
AP_HAL_PX4.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
GPIO.cpp AP_HAL_PX4: remove unused var 2015-08-25 13:51:21 +09:00
GPIO.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
HAL_PX4_Class.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
HAL_PX4_Class.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.cpp HAL_PX4: added hal.i2c support on PX4 boards 2015-09-08 16:46:52 +10:00
I2CDriver.h HAL_PX4: added hal.i2c support on PX4 boards 2015-09-08 16:46:52 +10:00
NSHShellStream.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
px4_param.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput.cpp AP_HAL_PX4: remove unused write method 2015-09-29 11:53:49 +09:00
RCOutput.h AP_HAL_PX4: remove unused write method 2015-09-29 11:53:49 +09:00
Scheduler.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Scheduler.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.cpp AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.h AP_HAL_PX4: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.cpp HAL_PX4: Rework support for FLOW_CONTROL_AUTO. 2015-08-19 15:21:10 +10:00
UARTDriver.h HAL_PX4: Rework support for FLOW_CONTROL_AUTO. 2015-08-19 15:21:10 +10:00
Util.cpp HAL_PX4: implement AP_HAL::Util perf calls for PX4 2015-10-20 18:09:57 +11:00
Util.h HAL_PX4: implement AP_HAL::Util perf calls for PX4 2015-10-20 18:09:57 +11:00