ardupilot/libraries/AP_HAL_Empty
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/empty_example AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AnalogIn.cpp HAL_Empty: avoid some float conversion warnings 2014-07-08 20:27:13 +10:00
AnalogIn.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_Empty_Main.h AP_HAL_Empty: main calls system_initialized 2013-01-10 14:37:07 -08:00
AP_HAL_Empty_Namespace.h HAL_Empty: removed Console driver 2013-10-05 18:32:35 +10:00
AP_HAL_Empty_Private.h HAL_Empty: removed Console driver 2013-10-05 18:32:35 +10:00
AP_HAL_Empty.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
GPIO.cpp AP_HAL: convert to unix file format 2013-09-19 16:26:14 +10:00
GPIO.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
HAL_Empty_Class.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
HAL_Empty_Class.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.cpp AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
I2CDriver.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
PrivateMember.cpp AP_HAL_Empty: started building out the scaffolding 2012-12-20 14:52:30 +11:00
PrivateMember.h AP_HAL_Empty: started building out the scaffolding 2012-12-20 14:52:30 +11:00
RCInput.cpp AP_HAL: removed RCInput valid_channels() and added new_input() and num_channels() 2014-03-25 14:39:41 +11:00
RCInput.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput.cpp AP_HAL_Empty: remove unused write method 2015-09-29 11:53:42 +09:00
RCOutput.h AP_HAL_Empty: remove unused write method 2015-09-29 11:53:42 +09:00
Scheduler.cpp HAL_Empty: added dummy millis64() and micros64() 2014-08-20 07:59:21 +10:00
Scheduler.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Semaphores.cpp AP_HAL_Empty: implement new Semaphore interface 2013-01-03 13:48:07 -08:00
Semaphores.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
SPIDriver.cpp AP_HAL_Empty: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
SPIDriver.h AP_HAL_Empty: Add support for using SPI devices of the same type. 2015-09-18 09:15:09 +10:00
Storage.cpp AP_HAL: removed old storage type read/write functions 2014-08-13 18:46:44 +10:00
Storage.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.cpp HAL_Empty: implement a dummy buffered write 2013-10-03 12:21:08 +10:00
UARTDriver.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Util.h AP_HAL_Empty: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00