Ardupilot2/Tools
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
..
APM2_2560_bootloader Tools: fixup line endings 2014-04-15 15:55:15 +09:00
APM_radio_test Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArduPilotMega_demo Tools: fixup line endings 2014-04-15 15:55:15 +09:00
ArdupilotMegaPlanner Mission planner moved notice 2013-02-05 18:24:05 +08:00
ArduPPM Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
autotest autotest: make CopterAVC use EKF2 2015-10-20 21:00:59 +11:00
CHDK-Scripts CHDK script changes 2014-12-26 16:04:35 +09:00
CPUInfo AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Failsafe Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
FlightGear Tools: standardize inclusion of libaries headers 2015-08-11 16:28:41 +10:00
Frame_params Update 3DR_X8-M_RTF.param 2015-10-18 09:27:54 +09:00
GIT_Test autotest: Enable SITL code to call an external ROS simulator for ArduPlane 2015-03-14 09:07:52 +11:00
gittools Tools: gittools: add git-subsystems-split 2015-09-09 10:50:35 +10:00
Hello AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Linux_HAL_Essentials Linux_HAL_Essentials: Update README.md 2015-10-08 15:24:14 +09:00
LogAnalyzer LogAnalyzer: adjust for change in vehicle definition MSG string 2015-10-15 09:40:25 +09:00
PPM_decoding Tools: fixup line endings 2014-04-15 15:55:15 +09:00
PXF Tools: Add PXF enable and check CS scripts 2014-07-14 09:29:36 +10:00
Replay AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
scripts Tools: fixed datestamp on compiler download 2015-10-20 15:54:44 +11:00
SerialProxy Tools Serial Proxy: fixup line endings 2014-04-15 15:55:30 +09:00
vagrant Tools: fixed datestamp on compiler download 2015-10-20 15:54:44 +11:00
Xplane import Tools directory 2011-09-09 11:31:32 +10:00