23 lines
380 B
C
23 lines
380 B
C
|
#ifndef AT91_ADC_H_
|
||
|
#define AT91_ADC_H_
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#define ADC_GYRO_ROLL 0
|
||
|
#define ADC_GYRO_NICK 1
|
||
|
#define ADC_GYRO_YAW 2
|
||
|
#define ADC_ACC_ROLL 3
|
||
|
#define ADC_ACC_NICK 4
|
||
|
#define ADC_ACC_YAW 5
|
||
|
#define ADC_VOLTAGE 6
|
||
|
|
||
|
#define ADC_CAL_GYRO 1
|
||
|
#define ADC_CAL_ACC 2
|
||
|
|
||
|
void adc_trigger(void);
|
||
|
|
||
|
void adc_calibrate(uint32_t mode);
|
||
|
void at91_adc_init(void);
|
||
|
|
||
|
#endif /*AT91_ADC_H_*/
|