20 lines
264 B
C
20 lines
264 B
C
#ifndef __ADC_H
|
|
#define __ADC_H
|
|
|
|
/*
|
|
* ADC 通道 PC0/ADC_IN10
|
|
*/
|
|
|
|
#include <stm32f10x_conf.h>
|
|
|
|
// ADC1 初始化
|
|
void adc1_init(void);
|
|
|
|
// ADC 转换取值
|
|
// channal 表示通道
|
|
uint16_t adc1_get_value(uint8_t channal);
|
|
|
|
|
|
|
|
#endif // __ADC_H
|