mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
added MSP_ACC_TRIM stuff for android GUI. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@231 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
15 lines
412 B
C
Executable file
15 lines
412 B
C
Executable file
#pragma once
|
|
|
|
#define ADC_BATTERY 0
|
|
#define ADC_CURRENT 1
|
|
|
|
typedef struct drv_adc_config_t {
|
|
uint8_t powerAdcChannel; // which channel used for current monitor, allowed PA1, PB1 (ADC_Channel_1, ADC_Channel_9)
|
|
} drv_adc_config_t;
|
|
|
|
|
|
void adcInit(drv_adc_config_t *init);
|
|
uint16_t adcGetChannel(uint8_t channel);
|
|
#ifdef FY90Q
|
|
void adcSensorInit(sensor_t *acc, sensor_t *gyro);
|
|
#endif
|