资源简介
附件是智能净水器的源代码,采用STM32F030 MCU+wifi模块设计
代码片段和文件信息
/**
******************************************************************************
* @file stm32f0xx_adc.c
* @author MCD Application Team
* @version V1.2.0
* @date 01-August-2013
* @brief This file provides firmware functions to manage the following
* functionalities of the Analog to Digital Convertor (ADC) peripheral:
* + Initialization and Configuration
* + Power saving
* + Analog Watchdog configuration
* + Temperature Sensor Vrefint (Internal Reference Voltage) and
* Vbat (Voltage battery) management
* + ADC Channels Configuration
* + ADC Channels DMA Configuration
* + Interrupts and flags management
*
* @verbatim
================================================================================
##### How to use this driver #####
================================================================================
[..]
(#) Enable the ADC interface clock using
RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1 ENABLE);
(#) 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 scan direction 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() and
ADC_ChannelConfig() 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_GetCalibrationFactor() 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_DMARequestModeConfig() function.
* @endverbatim
*
******************************************************************************
* @attention
*
* © COPYRIGHT 2013 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-21 10:25 智能净水器\
目录 0 2017-11-21 10:24 智能净水器\Debug\
目录 0 2017-11-21 10:24 智能净水器\Debug\Exe\
文件 18432 2017-04-08 14:59 智能净水器\Debug\Exe\Z_BootLoader.hex
文件 136324 2017-04-08 14:59 智能净水器\Debug\Exe\Z_BootLoader.out
文件 6563 2017-04-12 11:19 智能净水器\Debug\Exe\Z_BootLoader.sim
文件 161370 2017-04-26 22:56 智能净水器\Debug\Exe\Z_Project.hex
文件 497167 2017-04-26 22:56 智能净水器\Debug\Exe\Z_Project.out
文件 57411 2017-04-12 11:19 智能净水器\Debug\Exe\Z_Project.sim
目录 0 2017-11-21 10:24 智能净水器\Debug\Exe\tool\
文件 167424 2016-11-14 11:46 智能净水器\Debug\Exe\tool\CombineHex.exe
文件 202240 2016-11-25 10:20 智能净水器\Debug\Exe\tool\FirmWare.exe
文件 166912 2016-12-03 15:50 智能净水器\Debug\Exe\tool\Hex2Bin.exe
文件 31232 2016-12-03 16:16 智能净水器\Debug\Exe\tool\WifiCrc.exe
文件 18432 2017-04-08 14:59 智能净水器\Debug\Exe\tool\Z_BootLoader.hex
文件 161370 2017-04-26 22:56 智能净水器\Debug\Exe\tool\Z_Project.hex
文件 179789 2017-04-26 22:57 智能净水器\Debug\Exe\tool\如新生产烧录固件.hex
目录 0 2017-11-21 10:24 智能净水器\Debug\List\
文件 7493 2017-04-21 09:31 智能净水器\Debug\List\My_Adc.lst
文件 7135 2017-04-21 09:31 智能净水器\Debug\List\My_Adc.s
文件 31095 2017-04-21 09:31 智能净水器\Debug\List\My_Buzz.lst
文件 18142 2017-04-21 09:31 智能净水器\Debug\List\My_Buzz.s
文件 5026 2017-04-21 09:31 智能净水器\Debug\List\My_Err.lst
文件 5440 2017-04-21 09:31 智能净水器\Debug\List\My_Err.s
文件 26841 2017-04-21 09:31 智能净水器\Debug\List\My_FactoryTest.lst
文件 20757 2017-04-21 09:31 智能净水器\Debug\List\My_FactoryTest.s
文件 17860 2017-04-21 09:31 智能净水器\Debug\List\My_Filter.lst
文件 13919 2017-04-21 09:31 智能净水器\Debug\List\My_Filter.s
文件 152251 2017-04-21 09:31 智能净水器\Debug\List\My_I2C.lst
文件 106170 2017-04-21 09:31 智能净水器\Debug\List\My_I2C.s
文件 22794 2017-04-21 09:44 智能净水器\Debug\List\My_Key.lst
............此处省略438个文件信息
- 上一篇:pcm音频测试文件
- 下一篇:金融大数据技术与实战-王健宗
评论
共有 条评论