adc_hr.h

来自「基于st7的模数转换」· C头文件 代码 · 共 33 行

H
33
字号
/*
*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : adc_hr.h
Group            : IPSW,CMG-IPDF.
Author           : MCD Application Team
Date First Issued: 6/3/2002
********************************Documentation**********************************
General Purpose - Definition of constants used in place of magic numbers in 
				  adc.c.
********************************RevisionHistory********************************
_______________________________________________________________________________
Date :06/03/2002 	    Release:1.0 
Date :22/09/2003 	    Release:2.0       
                        1.Removed the mapping of hardware registers.
                        2.Defined constant for the magic numbers used in adc.c.
                        3.Included comments.
******************************************************************************/
#ifndef ADC_HR_H
#define ADC_HR_H    				          /* to avoid multiple inclusion */

                   /* Constant definition of the magic numbers used in adc.c */
                   
#define ADC_SPEED_SET         0x40
#define ADC_ON                0x20
#define ADC_OFF               0xDF
#define ADC_EOC               0x80
#define ADC_SEL_CHNL1         0xF0
#define ADC_SEL_CHNL2         0xF8

#endif /*ADC_HR_H */             	
/*** (c) 2003  STMicroelectronics ****************** END OF FILE *************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?