ardupilot/libraries/AP_HAL_FLYMAPLE/examples
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
..
AnalogIn AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AP_Baro_BMP085_test AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Blink AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Console AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
empty_example AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
I2CDriver_HMC5883L AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCInput AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCPassthroughTest AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Scheduler AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Semaphore AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
SPIDriver AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
Storage AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
UARTDriver AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
UtilityStringTest AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00