ADC已完成
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "initial.h"
|
||||
#include "systick.h"
|
||||
#include <stdint.h>
|
||||
|
||||
extern u16 adc_value[7];
|
||||
|
||||
/*!
|
||||
\brief configure the DMA peripheral
|
||||
@@ -78,7 +80,6 @@ void adc_config(void) {
|
||||
|
||||
/* 使能ADC接口 */
|
||||
adc_enable(ADC0);
|
||||
delay_1ms(1);
|
||||
/* ADC校准 */
|
||||
adc_calibration_enable(ADC0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user