mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00

電池残量が30%未満の時に充電しながらoffすると充電LEDが消えない不具合修正 隠語を普通語に コメント追加 しばらくほっといて電源を入れようとすると一発目電源が入らない件。まだ完全修正じゃないが 電源on時、シーケンスを誤っていた。(task_sys.c) git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@332 013db118-44a6-b54f-8bf7-843cb86687b1
49 lines
751 B
C
49 lines
751 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_3D 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
|
|
|
|
|
|
|
|
///////////////////////////////////////
|
|
extern u8 vol_polling;
|
|
extern u8 vol_level_twl;
|
|
|
|
|
|
|
|
///////////////////////////////////////
|
|
u8 get_adc( u8 ch );
|
|
void vol_reset();
|
|
|
|
|
|
|
|
#endif
|