GPIO

所属分类:嵌入式/单片机/硬件编程
开发工具:C++
文件大小:15KB
下载次数:15
上传日期:2010-04-01 15:21:00
上 传 者wsrylb
说明:  STM32的GPIO端口配置需要的下载!!
(STM32 of the GPIO port configuration needed to download! !)

文件列表:
GPIO\IOToggle\main.c (5414, 2009-04-06)
GPIO\IOToggle\platform_config.h (2231, 2009-04-06)
GPIO\IOToggle\stm32f10x_conf.h (3213, 2009-04-06)
GPIO\IOToggle\stm32f10x_it.c (4367, 2009-04-06)
GPIO\IOToggle\stm32f10x_it.h (1888, 2009-04-06)
GPIO\IOToggle (0, 2002-01-01)
GPIO\JTAG_Remap\main.c (5389, 2009-04-06)
GPIO\JTAG_Remap\platform_config.h (2369, 2009-04-06)
GPIO\JTAG_Remap\stm32f10x_conf.h (3216, 2009-04-06)
GPIO\JTAG_Remap\stm32f10x_it.c (4373, 2009-04-06)
GPIO\JTAG_Remap\stm32f10x_it.h (1890, 2009-04-06)
GPIO\JTAG_Remap (0, 2002-01-01)
GPIO (0, 2002-01-01)

/** @page GPIO_IOToggle GPIO_IOToggle @verbatim ******************** (C) COPYRIGHT 2009 STMicroelectronics ******************* * @file GPIO/IOToggle/readme.txt * @author MCD Application Team * @version V3.0.0 * @date 04/06/2009 * @brief Description of the GPIO IOToggle Example. ****************************************************************************** * THE PRESENT FIRMWARE 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. ****************************************************************************** @endverbatim @par Example Description This example describes how to use GPIO BSRR (Port bit set/reset register) and BRR (Port bit reset register) for IO toggling. These registers allow modifying only one or several GPIO pins in a single atomic write access. GPIO_LED Port Pin 6, Pin 7, Pin 8 and Pin 9 are toggled in an infinite loop. @par Directory contents - GPIO/IOToggle/platform_config.h Evaluation board specific configuration file - GPIO/IOToggle/stm32f10x_conf.h Library Configuration file - GPIO/IOToggle/stm32f10x_it.c Interrupt handlers - GPIO/IOToggle/stm32f10x_it.h Header for stm32f10x_it.c - GPIO/IOToggle/main.c Main program @par Hardware and Software environment - This example runs on STM32F10x High-Density, STM32F10x Medium-Density and STM32F10x Low-Density Devices. - This example has been tested with STMicroelectronics STM3210E-EVAL (STM32F10x High-Density) and STM3210B-EVAL (STM32F10x Medium-Density) evaluation boards and can be easily tailored to any other supported device and development board. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. - STM3210E-EVAL Set-up - Use LD1, LD2, LD3 and LD4 leds connected respectively to PF.06, PF0.7, PF.08 and PF.09 pins - STM3210B-EVAL Set-up - Use LD1, LD2, LD3 and LD4 leds connected respectively to PC.06, PC.07, PC.08 and PC.09 pins @par How to use it ? In order to make the program work, you must do the following: - Create a project and setup all project configuration - Add the required Library files: - stm32f10x_gpio.c - stm32f10x_rcc.c - system_stm32f10x.c - Edit stm32f10x.h file to select the device you are working on. @b Tip: You can tailor the provided project template to run this example, for more details please refer to "stm32f10x_stdperiph_lib_um.chm" user manual; select "Peripheral Examples" then follow the instructions provided in "How to proceed" section. - Link all compiled files and load your image into target memory - Run the example @note - Low-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 32 and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. *

© COPYRIGHT 2009 STMicroelectronics

*/

近期下载者

相关文件


收藏者