ardupilot/libraries/AP_HAL
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 AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
utility AP_HAL: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
AnalogIn.h AP_HAL: added servorail_voltage and power_status_flags() API on AnalogIn 2014-02-15 05:00:09 +11:00
AP_HAL_Boards.h AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AP_HAL_Macros.h AP_HAL: use noreturn attribute on panic 2015-06-08 21:09:08 +10:00
AP_HAL_Namespace.h AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AP_HAL.h AP_HAL: removed separate Console class 2013-10-05 18:32:00 +10:00
GPIO.h AP_HAL: make new GPIO functions optional 2015-09-14 14:22:16 +10:00
HAL.h AP_HAL: add the possibility to have more than 1 i2c 2015-07-10 14:23:17 +10:00
I2CDriver.h AP_HAL: fixed I2C build on APM2 2014-07-14 09:44:35 +10:00
RCInput.h AP_HAL: Added deinit() method to RCInput 2015-07-23 08:51:37 +10:00
RCOutput.h AP_HAL: RCOutput: add methods to allow grouping writes 2015-10-06 10:42:18 +11:00
Scheduler.h AP_HAL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.h AP_HAL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
SPIDriver.h AP_HAL: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
Storage.h AP_HAL: removed old storage type read/write functions 2014-08-13 18:46:44 +10:00
UARTDriver.cpp AP_HAL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.h AP_HAL: create a common utility/RingBuffer.h header 2015-01-07 08:41:14 +11:00
Util.cpp AP_HAL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Util.h AP_HAL: added generic perf counter 2015-10-20 18:09:57 +11:00