ADC已完成

This commit is contained in:
cbb
2025-10-02 02:52:07 +08:00
parent 6f89355a8a
commit 20fbb30067
19 changed files with 424 additions and 258 deletions
+2 -1
View File
@@ -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);