Browse Source

AP_ADC: enable APM1 ADC on Linux

master
Andrew Tridgell 12 years ago
parent
commit
30b6b23b10
  1. 5
      libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.pde

5
libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.pde

@ -13,13 +13,14 @@
#include <AP_HAL.h> #include <AP_HAL.h>
#include <AP_HAL_AVR.h> #include <AP_HAL_AVR.h>
#include <AP_HAL_Linux.h>
#include <AP_ADC.h> #include <AP_ADC.h>
uint32_t timer; uint32_t timer;
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 #if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
/* Only build this sketch for APM1 */ /* Only build this sketch for APM1 and Linux */
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
AP_ADC_ADS7844 adc; AP_ADC_ADS7844 adc;

Loading…
Cancel
Save