資源簡介
詳細(xì)列出了所有獨立外設(shè)的各種初始化操作和基本配置

代碼片段和文件信息
/********************?(C)?COPYRIGHT?2007?STMicroelectronics?********************
*?File?Name??????????:?main.c
*?Author?????????????:?MCD?Application?Team
*?Version????????????:?V1.0
*?Date???????????????:?10/08/2007
*?Description????????:?Main?program?body
********************************************************************************
*?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_lib.h“
/*?Private?typedef?-----------------------------------------------------------*/
/*?Private?define?------------------------------------------------------------*/
#define?ADC1_DR_Address????((u32)0x4001244C)
/*?Private?macro?-------------------------------------------------------------*/
/*?Private?variables?---------------------------------------------------------*/
ADC_InitTypeDef?ADC_InitStructure;
DMA_InitTypeDef?DMA_InitStructure;
vu16?ADC_ConvertedValue;
ErrorStatus?HSEStartUpStatus;
????
/*?Private?function?prototypes?-----------------------------------------------*/
void?RCC_Configuration(void);
void?GPIO_Configuration(void);
void?NVIC_Configuration(void);
??
/*?Private?functions?---------------------------------------------------------*/
/*******************************************************************************
*?Function?Name??:?main
*?Description????:?Main?program
*?Input??????????:?None
*?Output?????????:?None
*?Return?????????:?None
*******************************************************************************/
int?main(void)
{
#ifdef?DEBUG
??debug();
#endif
??/*?System?clocks?configuration?---------------------------------------------*/
??RCC_Configuration();
??/*?NVIC?configuration?------------------------------------------------------*/
??NVIC_Configuration();
??/*?GPIO?configuration?------------------------------------------------------*/
??GPIO_Configuration();
??/*?DMA?channel1?configuration?----------------------------------------------*/
??DMA_DeInit(DMA_Channel1);
??DMA_InitStructure.DMA_PeripheralbaseAddr?=?ADC1_DR_Address;
??DMA_InitStructure.DMA_MemorybaseAddr?=?(u32)&ADC_ConvertedValue;
??DMA_InitStructure.DMA_DIR?=?DMA_DIR_PeripheralSRC;
??DMA_InitStructure.DMA_BufferSize?=?1;
??DMA_InitStructure.DMA_PeripheralInc?=?DMA_PeripheralInc_Disable;
??DMA_InitStructure.DMA_MemoryInc?=?DMA_MemoryInc_Disable;
??DMA_InitStructure.DMA_PeripheralDataSize?=?DMA_PeripheralDataSize_HalfWord;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1366??2009-12-19?20:01??2.8TFT_sch\ARM技術(shù)交流網(wǎng)歡迎您下載.txt
?????文件???????8469??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example1\main.c
?????文件???????2283??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example1\readme.txt
?????文件???????5572??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example1\stm32f10x_conf.h
?????文件??????22695??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example1\stm32f10x_it.c
?????文件???????3267??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example1\stm32f10x_it.h
?????文件??????11193??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example2\main.c
?????文件???????3061??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example2\readme.txt
?????文件???????5568??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example2\stm32f10x_conf.h
?????文件??????23145??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example2\stm32f10x_it.c
?????文件???????3267??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example2\stm32f10x_it.h
?????文件???????8414??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example3\main.c
?????文件???????2576??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example3\readme.txt
?????文件???????5578??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example3\stm32f10x_conf.h
?????文件??????22910??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example3\stm32f10x_it.c
?????文件???????3267??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example3\stm32f10x_it.h
?????文件??????12116??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example4\main.c
?????文件???????3593??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example4\readme.txt
?????文件???????5568??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example4\stm32f10x_conf.h
?????文件??????23180??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example4\stm32f10x_it.c
?????文件???????3267??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example4\stm32f10x_it.h
?????文件??????10076??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example5\main.c
?????文件???????2930??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example5\readme.txt
?????文件???????5572??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example5\stm32f10x_conf.h
?????文件??????22695??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example5\stm32f10x_it.c
?????文件???????3267??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\ADC\Example5\stm32f10x_it.h
?????文件??????10711??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\BKP\Example1\main.c
?????文件???????1596??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\BKP\Example1\main.h
?????文件???????2809??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\BKP\Example1\readme.txt
?????文件???????5578??2007-10-08?00:50??2.8TFT_sch\STM32入門程序\FWLib\examples\BKP\Example1\stm32f10x_conf.h
............此處省略563個文件信息
評論
共有 條評論