资源简介
STM32F334的库函数模板,参考正点原子F103建立,
可以使用。
代码片段和文件信息
/**
******************************************************************************
* @file stm32f30x_adc.c
* @author MCD Application Team
* @version V1.2.3
* @date 10-July-2015
* @brief This file provides firmware functions to manage the following
* functionalities of the Analog to Digital Convertor (ADC) peripheral:
* + Initialization and Configuration
* + Analog Watchdog configuration
* + Temperature Sensor Vbat & Vrefint (Internal Reference Voltage) management
* + Regular Channels Configuration
* + Regular Channels DMA Configuration
* + Injected channels Configuration
* + Interrupts and flags management
* + Dual mode configuration
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
(#) select the ADC clock using the function RCC_ADCCLKConfig()
(#) Enable the ADC interface clock using RCC_AHBPeriphClockCmd();
(#) ADC pins configuration
(++) Enable the clock for the ADC GPIOs using the following function:
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOx ENABLE);
(++) Configure these ADC pins in analog mode using GPIO_Init();
(#) Configure the ADC conversion resolution data alignment external
trigger and edge sequencer lenght and Enable/Disable the continuous mode
using the ADC_Init() function.
(#) Activate the ADC peripheral using ADC_Cmd() function.
*** ADC channels group configuration ***
========================================
[..]
(+) To configure the ADC channels features use ADC_Init() ADC_InjectedInit()
and/or ADC_RegularChannelConfig() functions.
(+) To activate the continuous mode use the ADC_ContinuousModeCmd()
function.
(+) To activate the Discontinuous mode use the ADC_DiscModeCmd() functions.
(+) To activate the overrun mode use the ADC_OverrunModeCmd() functions.
(+) To activate the calibration mode use the ADC_StartCalibration() functions.
(+) To read the ADC converted values use the ADC_GetConversionValue()
function.
*** DMA for ADC channels features configuration ***
===================================================
[..]
(+) To enable the DMA mode for ADC channels group use the ADC_DMACmd() function.
(+) To configure the DMA transfer request use ADC_DMAConfig() function.
@endverbatim
*
******************************************************************************
* @attention
*
* © COPYRIGHT 2015 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
* You may not use this file exce
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 109951 2015-07-08 19:30 0-temple\CORE\core_cm4.h
文件 17427 2015-07-08 19:30 0-temple\CORE\core_cmFunc.h
文件 26854 2015-07-08 19:30 0-temple\CORE\core_cmInstr.h
文件 22948 2015-07-08 19:30 0-temple\CORE\core_cmSimd.h
文件 22159 2015-07-08 19:34 0-temple\CORE\startup_stm32f334x8.s
文件 48355 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_adc.h
文件 27256 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_can.h
文件 25495 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_comp.h
文件 4646 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_crc.h
文件 16707 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_dac.h
文件 4247 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_dbgmcu.h
文件 21192 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_dma.h
文件 12081 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_exti.h
文件 12775 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_flash.h
文件 28045 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_fmc.h
文件 15002 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_gpio.h
文件 173297 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_hrtim.h
文件 18066 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_i2c.h
文件 4696 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_iwdg.h
文件 9384 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_misc.h
文件 10977 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_opamp.h
文件 6033 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_pwr.h
文件 32143 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_rcc.h
文件 39731 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_rtc.h
文件 23527 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_spi.h
文件 24724 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_syscfg.h
文件 63177 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_tim.h
文件 26329 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_usart.h
文件 3540 2015-07-10 23:35 0-temple\FWLIB\inc\stm32f30x_wwdg.h
文件 92562 2015-07-10 23:35 0-temple\FWLIB\src\stm32f30x_adc.c
............此处省略151个文件信息
- 上一篇:单极性SPWM波的产生
- 下一篇:基于移动平台的轻博客系统开发与设计
评论
共有 条评论