V2.31
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/********************************** (C) COPYRIGHT *******************************
|
||||
* File Name : main.c
|
||||
* Author : WCH
|
||||
* Version : V1.0.0
|
||||
* Date : 2021/06/06
|
||||
* Version : V1.0.1
|
||||
* Date : 2025/01/16
|
||||
* Description : Main program body.
|
||||
*********************************************************************************
|
||||
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
/* Global Variable */
|
||||
u16 ADC_val[2];
|
||||
s16 Calibrattion_Val1 = 0;
|
||||
s16 Calibrattion_Val2 = 0;
|
||||
vs16 Calibrattion_Val1 = 0;
|
||||
vs16 Calibrattion_Val2 = 0;
|
||||
|
||||
/*********************************************************************
|
||||
* @fn ADC_Function_Init
|
||||
@@ -52,7 +52,7 @@ void ADC_Function_Init(void)
|
||||
ADC_InitStructure.ADC_Mode = ADC_Mode_AlterTrig;
|
||||
ADC_InitStructure.ADC_ScanConvMode = DISABLE;
|
||||
ADC_InitStructure.ADC_ContinuousConvMode = DISABLE;
|
||||
ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigInjecConv_T2_CC1;
|
||||
ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_None;
|
||||
ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right;
|
||||
ADC_InitStructure.ADC_NbrOfChannel = 1;
|
||||
ADC_InitStructure.ADC_OutputBuffer = ADC_OutputBuffer_Disable;
|
||||
|
||||
Reference in New Issue
Block a user