23 #pragma GCC optimize ("O2") 29 #if CONFIG_HAL_BOARD == HAL_BOARD_F4LIGHT 46 #define CHANNEL_READ_REPEAT 1 88 AP_HAL::panic(
"Error: AP_HAL_F4Light::AnalogIn out of channels\r\n");
131 uint16_t sample = (uint16_t)(dev->
adcx->DR & ADC_DR_DATA);
void _register_channel(AnalogSource *)
const adc_dev * _find_device() const
static void set_task_priority(void *h, uint8_t prio)
#define ANALOG_INPUT_NONE
caddr_t sbrk_ccm(int nbytes)
uint16_t _channel_repeat_count
Analog-to-Digital Conversion (ADC) header.
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
static AP_HAL::OwnPtr< AP_HAL::Device > dev
static void set_task_period(void *h, uint32_t period)
AP_HAL::AnalogSource * channel(int16_t n)
AnalogSource * _create_channel(uint8_t num)
#define F4Light_INPUT_MAX_CHANNELS
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
Board-specific pin information.
#define ANALOG_INPUT_F4Light_VCC
static void adc_start_conv(const adc_dev *dev)
void new_sample(uint16_t)
#define CHANNEL_READ_REPEAT
#define FUNCTOR_BIND_MEMBER(func, rettype,...)
void panic(const char *errormsg,...) FMT_PRINTF(1
static void * start_task(voidFuncPtr taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
static AnalogSource * _channels[F4Light_INPUT_MAX_CHANNELS]