ctr_mcu/trunk/adc.h
fujita_ryohei e0c86ce6f1 ジャイロ仮対応
自己書き換え修正(割り込み内での書き換えはメーカー非推奨のため)


git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@38 013db118-44a6-b54f-8bf7-843cb86687b1
2009-12-07 08:00:28 +00:00

39 lines
627 B
C

#ifndef __adc__
#define __adc__
#include "jhl_defs.h"
///////////////////////////////////////
// ANI2 P22
#define ADC_SEL_AMB_BRIT 0x02
// ANI3 P23
#define ADC_SEL_GYRO_YAW 0x03
// ANI4 P24
#define ADC_SEL_GYRO_PITCH 0x04
// ANI5 P25
#define ADC_SEL_GYRO_ROLL 0x05
// ANI6 P26
#define ADC_SEL_TUNE 0x06
// ANI7 P27
#define ADC_SEL_VOL 0x07
// ANI8 P150
#define ADC_SEL_BATT_TEMP 0x08
// ANI9 P151
#define ADC_SEL_BATT_DET 0x09
///////////////////////////////////////
#define CODEC_REG_VOL 0x13
///////////////////////////////////////
u8 get_adc( u8 ch );
#endif