资源简介
用于stm32红外线测距
代码片段和文件信息
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : stm32f10x_adc.c
* Author : MCD Application Team
* Version : V1.0
* Date : 10/08/2007
* Description : This file provides all the ADC firmware functions.
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#include “stm32f10x_adc.h“
#include “stm32f10x_rcc.h“
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* ADC ADON mask */
#define CR2_ADON_Set ((u32)0x00000001)
#define CR2_ADON_Reset ((u32)0xFFFFFFFE)
/* ADC DMA mask */
#define CR2_DMA_Set ((u16)0x0100)
#define CR2_DMA_Reset ((u16)0xFEFF)
/* ADC RSTCAL mask */
#define CR2_RSTCAL_Set ((u16)0x0008)
/* ADC CAL mask */
#define CR2_CAL_Set ((u16)0x0004)
/* ADC SWSTRT mask */
#define CR2_SWSTRT_Set ((u32)0x00400000)
/* ADC DISCNUM mask */
#define CR1_DISCNUM_Reset ((u32)0xFFFF1FFF)
/* ADC DISCEN mask */
#define CR1_DISCEN_Set ((u32)0x00000800)
#define CR1_DISCEN_Reset ((u32)0xFFFFF7FF)
/* ADC EXTTRIG mask */
#define CR2_EXTTRIG_Set ((u32)0x00100000)
#define CR2_EXTTRIG_Reset ((u32)0xFFEFFFFF)
/* ADC Software start mask */
#define CR2_EXTTRIG_SWSTRT_Set ((u32)0x00500000)
#define CR2_EXTTRIG_SWSTRT_Reset ((u32)0xFFAFFFFF)
/* ADC JAUTO mask */
#define CR1_JAUTO_Set ((u32)0x00000400)
#define CR1_JAUTO_Reset ((u32)0xFFFFFBFF)
/* ADC JDISCEN mask */
#define CR1_JDISCEN_Set ((u32)0x00001000)
#define CR1_JDISCEN_Reset ((u32)0xFFFFEFFF)
/* ADC JEXTSEL mask */
#define CR2_JEXTSEL_Reset ((u32)0xFFFF8FFF)
/* ADC JEXTTRIG mask */
#define CR2_JEXTTRIG_Set ((u32)0x00008000)
#define CR2_JEXTTRIG_Reset ((u32)0xFFFF7FFF)
/* ADC JSWSTRT mask */
#define CR2_JSWSTRT_Set ((u32)0x00200000)
/* ADC injected software start mask */
#define CR2_JEXTTRIG_JSWSTRT_Set ((u32)0x00208000)
#define CR2_JEXTTRIG_JSWSTRT_Reset ((u32)0xFFDF7FFF)
/* ADC AWDCH mask */
#define CR1_AWDCH_Reset ((u32)0xFFFFFFE0)
/* ADC
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1280464 2016-07-15 09:34 红外模块\elecfans.com-红外测距模块GP2D12使用说明书.pdf
文件 54784 2016-07-26 17:20 红外模块\gp2d12-使用表格.xls
文件 383684 2016-07-15 10:14 红外模块\GP2Y0A21YK0F.pdf
文件 2167 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\cortexm3_macro.h
文件 16275 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_adc.h
文件 4081 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_bkp.h
文件 12173 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_can.h
文件 12405 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_dma.h
文件 5722 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_exti.h
文件 10336 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_flash.h
文件 12416 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_gpio.h
文件 15535 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_i2c.h
文件 3388 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_iwdg.h
文件 2934 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_lib.h
文件 20143 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_map.h
文件 16252 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_nvic.h
文件 3829 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_pwr.h
文件 13710 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_rcc.h
文件 3591 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_rtc.h
文件 9290 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_spi.h
文件 3169 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_systick.h
文件 29007 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_tim.h
文件 34659 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_tim1.h
文件 3383 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_type.h
文件 11700 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_usart.h
文件 2604 2016-02-11 09:16 红外模块\USART1_ADC\library\inc\stm32f10x_wwdg.h
文件 55087 2016-02-11 09:16 红外模块\USART1_ADC\library\src\stm32f10x_adc.c
文件 11168 2016-02-11 09:16 红外模块\USART1_ADC\library\src\stm32f10x_bkp.c
文件 31671 2016-02-11 09:16 红外模块\USART1_ADC\library\src\stm32f10x_can.c
文件 23344 2016-02-11 09:16 红外模块\USART1_ADC\library\src\stm32f10x_dma.c
............此处省略140个文件信息
评论
共有 条评论