#ifndef _ADC_H #define _ADC_H void ADC_INIT(void); unsigned int getADCValue(unsigned char channel); /* struct board_data{ //int temperature;//2 int keep_tmp; uchar version;//1 uint volBat;//4 //int b20_value;//4 int box_tmp; }; */ struct board_data{ //int temperature;//2 uchar version;//1 uint volBat;//4 //int b20_value;//4 int box_tmp; int keep_tmp; }; extern struct board_data stm8_data; #endif