ardupilot/libraries/AP_Notify
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
AP_BoardLED.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
AP_BoardLED.h AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
AP_Notify.cpp AP_Notify: added support for raspilot LED 2015-09-14 14:22:16 +10:00
AP_Notify.h Notify: change firmware_update event to flag 2015-09-09 10:39:50 +09:00
Buzzer.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
Buzzer.h Notify: remove GPS glitch notification 2015-03-13 16:40:41 +09:00
ExternalLED.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
ExternalLED.h AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
NavioLED_I2C.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
NavioLED_I2C.h AP_Notify: added abstract Led and RGBLed classes 2014-11-26 11:16:27 +11:00
NavioLED.cpp AP_Notify: added abstract Led and RGBLed classes 2014-11-26 11:16:27 +11:00
NavioLED.h AP_Notify: added abstract Led and RGBLed classes 2014-11-26 11:16:27 +11:00
NotifyDevice.h AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
OreoLED_PX4.cpp AP_Notify: sync oreoleds before a reboot 2015-09-09 10:39:54 +09:00
OreoLED_PX4.h AP_Notify: sync oreoleds before a reboot 2015-09-09 10:39:54 +09:00
RGBLed.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
RGBLed.h AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
ToneAlarm_Linux.cpp AP_HAL_Notify: standardize inclusion of libaries headers 2015-08-18 17:12:52 +10:00
ToneAlarm_Linux.h AP_Notify: rename member to initialized 2015-06-10 16:39:01 +10:00
ToneAlarm_PX4.cpp AP_Notify: add events.compass_cal_canceled 2015-09-03 16:59:11 +10:00
ToneAlarm_PX4.h AP_Notify: play tones for compass cal 2015-09-03 16:59:11 +10:00
ToshibaLED_I2C.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
ToshibaLED_I2C.h AP_Notify: added missing files 2013-08-30 13:01:35 +10:00
ToshibaLED_PX4.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
ToshibaLED_PX4.h AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
ToshibaLED.cpp AP_Notify: added abstract Led and RGBLed classes 2014-11-26 11:16:27 +11:00
ToshibaLED.h AP_Notify: added abstract Led and RGBLed classes 2014-11-26 11:16:27 +11:00
VRBoard_LED.cpp AP_Notify: standardize inclusion of libaries headers 2015-08-11 16:38:20 +10:00
VRBoard_LED.h AP_Notify: use RGB driver for board led in VRBRAIN boards. 2015-02-02 08:43:59 +11:00