Ardupilot2/libraries/AP_HAL_Linux
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/BusTest AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AnalogIn_Navio.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn_Navio.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_Linux_Main.h HAL_Linux: use board subtypes 2014-07-14 09:44:35 +10:00
AP_HAL_Linux_Namespace.h AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
AP_HAL_Linux_Private.h AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
AP_HAL_Linux.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
ConsoleDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
ConsoleDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
dsm.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
dsm.h HAL_Linux: added low level DSM decoder 2014-10-08 12:50:50 +11:00
GPIO_BBB.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
GPIO_BBB.h AP_HAL_Linux: ERLEBOARD legacy support 2015-09-09 10:31:55 +10:00
GPIO_RPI.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
GPIO_RPI.h AP_HAL_Linux: Move RPi version check to util class 2015-09-24 13:04:18 +10:00
GPIO.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
GPIO.h AP_HAL_Linux: added support for raspilot GPIO 2015-09-14 14:22:15 +10:00
HAL_Linux_Class.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
HAL_Linux_Class.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Heat_Pwm.cpp AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
Heat_Pwm.h AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
Heat.h AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
I2CDriver.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
px4io_protocol.h AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
RaspilotAnalogIn.cpp HAL_Linux: fixed apm2 build 2015-09-14 14:22:16 +10:00
RaspilotAnalogIn.h AP_HAL_Linux: new files for raspilot 2015-09-14 14:22:16 +10:00
RCInput_AioPRU.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_AioPRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_Navio.cpp AP_HAL_Linux: fix build for raspilot after Util change 2015-09-24 15:31:32 +10:00
RCInput_Navio.h AP_HAL_Linux: remove extra spaces in RCInput_Navio 2015-09-24 13:04:18 +10:00
RCInput_PRU.cpp AP_HAL_Linux: ERLEBOARD legacy support 2015-09-09 10:31:55 +10:00
RCInput_PRU.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_Raspilot.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCInput_Raspilot.h AP_HAL_Linux: added support for raspilot RCInput 2015-09-14 14:22:15 +10:00
RCInput_UDP_Protocol.h AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput_UDP.cpp AP_HAL_Linux: RCInput_UDP: Fix compiling warning 2015-10-16 10:28:07 +11:00
RCInput_UDP.h AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput_ZYNQ.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput_ZYNQ.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.cpp AP_HAL_Linux: Add Support for RCInput_UDP 2015-09-07 12:10:08 +10:00
RCInput.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
RCOutput_AioPRU.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_AioPRU.h AP_HAL_Linux: remove unused write method 2015-09-29 11:53:46 +09:00
RCOutput_Bebop.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_Bebop.h AP_HAL_Linux: RCOutput_Bebop: group writes 2015-10-06 11:03:30 +11:00
RCOutput_PCA9685.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_PCA9685.h AP_HAL_Linux: RCOutput_PCA9685: group writes 2015-10-06 11:03:30 +11:00
RCOutput_PRU.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_PRU.h AP_HAL_Linux: remove unused write method 2015-09-29 11:53:46 +09:00
RCOutput_Raspilot.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_Raspilot.h AP_HAL_Linux: remove unused write method 2015-09-29 11:53:46 +09:00
RCOutput_ZYNQ.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
RCOutput_ZYNQ.h AP_HAL_Linux: remove unused write method 2015-09-29 11:53:46 +09:00
RPIOUARTDriver.cpp HAL_Linux: don't panic on runtime failures 2015-09-14 14:22:16 +10:00
RPIOUARTDriver.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
sbus.cpp HAL_Linux: fixed build warnings 2014-10-09 16:49:23 +11:00
sbus.h HAL_Linux: added SBUS decoder from PX4 project 2014-10-07 14:57:34 +11:00
Scheduler.cpp AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
Scheduler.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
SerialDevice.h AP_HAL_Linux: added SerialDevice interface 2015-07-29 08:36:05 +10:00
SPIDriver.cpp AP_HAL_Linux: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
SPIDriver.h AP_HAL_Linux: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
SPIUARTDriver.cpp AP_HAL_Linux: fixed ublox debug message 2015-09-14 14:22:16 +10:00
SPIUARTDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage_FRAM.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage_FRAM.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
TCPServerDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
TCPServerDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
ToneAlarmDriver.cpp AP_HAL_Linux: added tonealarm support for raspilot 2015-09-14 14:22:16 +10:00
ToneAlarmDriver.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
UARTDriver.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
UARTDriver.h AP_HAL_Linux: use method for downcast 2015-09-23 09:01:29 +10:00
UDPDevice.cpp AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UDPDevice.h AP_HAL_Linux: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
Util_RPI.cpp AP_HAL_Linux: fix build for raspilot after Util change 2015-09-24 15:31:32 +10:00
Util_RPI.h AP_HAL_Linux: fix build for raspilot after Util change 2015-09-24 15:31:32 +10:00
Util.cpp AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00
Util.h AP_HAL_Linux: add support for a pwm heater 2015-10-06 15:21:39 +11:00