Initial import of STM32 IoT sensor node
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user