htujun
3 years ago
30 changed files with 2511 additions and 2292 deletions
@ -1,12 +1,11 @@
@@ -1,12 +1,11 @@
|
||||
#ifndef __ADC_H |
||||
#define __ADC_H |
||||
#include "sys.h" |
||||
#ifndef _adc_H |
||||
#define _adc_H |
||||
|
||||
#include "sys.h" |
||||
|
||||
void Adc_Init(void); |
||||
u16 Get_Adc(u8 ch);
|
||||
u16 Get_Adc_Average(u8 ch,u8 times);
|
||||
u16 Get_Adc_Average1(u8 ch1,u8 times); |
||||
u16 Get_Adc1(u8 ch1); |
||||
void ADCx_Init(void); |
||||
u16 Get_ADC_Value(u8 ch,u8 times); |
||||
u16 Get_ADC1_Value(u8 ch,u8 times); |
||||
|
||||
#endif |
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\src\stm32f10x_dma.c |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_dma.h |
||||
..\obj\stm32f10x_dma.o: ..\USER\stm32f10x.h |
||||
..\obj\stm32f10x_dma.o: ..\CORE\core_cm3.h |
||||
..\obj\stm32f10x_dma.o: D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h |
||||
..\obj\stm32f10x_dma.o: ..\USER\system_stm32f10x.h |
||||
..\obj\stm32f10x_dma.o: ..\USER\stm32f10x_conf.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_adc.h |
||||
..\obj\stm32f10x_dma.o: ..\USER\stm32f10x.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_bkp.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_can.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_cec.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_crc.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_dac.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_dbgmcu.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_dma.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_exti.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_flash.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_fsmc.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_gpio.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_i2c.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_iwdg.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_pwr.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_rcc.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_rtc.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_sdio.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_spi.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_tim.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_usart.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\stm32f10x_wwdg.h |
||||
..\obj\stm32f10x_dma.o: ..\STM32F10x_FWLib\inc\misc.h |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,13 @@
@@ -1,2 +1,13 @@
|
||||
Load "..\\OBJ\\Template.axf" |
||||
Erase Done.Programming Done.Verify OK.Flash Load finished at 12:58:02 |
||||
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' |
||||
Build target 'Target 1' |
||||
compiling adc.c... |
||||
linking... |
||||
..\OBJ\Template.axf: Error: L6218E: Undefined symbol DMA_Cmd (referred from adc.o). |
||||
..\OBJ\Template.axf: Error: L6218E: Undefined symbol DMA_DeInit (referred from adc.o). |
||||
..\OBJ\Template.axf: Error: L6218E: Undefined symbol DMA_Init (referred from adc.o). |
||||
Not enough information to list image symbols. |
||||
Not enough information to list load addresses in the image map. |
||||
Finished: 2 information, 0 warning and 3 error messages. |
||||
"..\OBJ\Template.axf" - 3 Error(s), 0 Warning(s). |
||||
Target not created. |
||||
Build Time Elapsed: 00:00:01 |
||||
|
@ -1 +1 @@
@@ -1 +1 @@
|
||||
2022/4/17 12:58:02 |
||||
2022/4/25 23:07:52 |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue