GPIO

所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:1292KB
下载次数:6
上传日期:2011-06-02 16:16:51
上 传 者fh42272512
说明:  基于keil软件,c51编写的的GPIO口的一段开发程序。可用于测试与了解GPIO口的开发编程。
(Based on keil software, c51 the GPIO port prepared a development process. Can be used to test and understand the GPIO port development programming.)

文件列表:
GPIO (0, 2011-05-31)
GPIO\GPIO.Opt (5046, 2011-05-11)
GPIO\GPIO.Uv2 (4507, 2010-11-23)
GPIO\GPIO.plg (160, 2010-11-23)
GPIO\GPIO_GPIO.dep (20691, 2011-05-11)
GPIO\GPIO_Opt.Bak (5038, 2011-04-01)
GPIO\GPIO_Target 1.dep (71, 2010-11-23)
GPIO\GPIO_Uv2.Bak (4508, 2010-11-23)
GPIO\JLink Regs CM3.txt (497, 2011-01-24)
GPIO\JLinkLog.txt (55962, 2011-01-24)
GPIO\JLinkSettings.ini (375, 2011-01-24)
GPIO\List (0, 2011-05-31)
GPIO\List\GPIO.map (74800, 2011-03-19)
GPIO\List\cortexm3_macro.lst (26598, 2011-01-24)
GPIO\List\stm32f10x_vector.lst (40225, 2011-01-24)
GPIO\Obj (0, 2011-05-31)
GPIO\Obj\GPIO.axf (107296, 2011-03-19)
GPIO\Obj\GPIO.htm (59995, 2011-03-19)
GPIO\Obj\GPIO.lnp (924, 2011-03-19)
GPIO\Obj\GPIO.plg (187, 2011-05-11)
GPIO\Obj\GPIO.sct (479, 2011-01-24)
GPIO\Obj\GPIO.tra (3053, 2011-03-19)
GPIO\Obj\cortexm3_macro.d (57, 2011-01-24)
GPIO\Obj\cortexm3_macro.o (2520, 2011-01-24)
GPIO\Obj\main.crf (149045, 2011-03-19)
GPIO\Obj\main.d (1770, 2011-03-19)
GPIO\Obj\main.o (172880, 2011-03-19)
GPIO\Obj\stm32f10x_adc.crf (50297, 2011-01-24)
GPIO\Obj\stm32f10x_adc.d (474, 2011-01-24)
GPIO\Obj\stm32f10x_adc.o (60648, 2011-01-24)
GPIO\Obj\stm32f10x_bkp.crf (37577, 2011-01-24)
GPIO\Obj\stm32f10x_bkp.d (474, 2011-01-24)
GPIO\Obj\stm32f10x_bkp.o (43372, 2011-01-24)
GPIO\Obj\stm32f10x_can.crf (48744, 2011-01-24)
GPIO\Obj\stm32f10x_can.d (474, 2011-01-24)
GPIO\Obj\stm32f10x_can.o (51552, 2011-01-24)
GPIO\Obj\stm32f10x_crc.crf (26151, 2011-01-24)
GPIO\Obj\stm32f10x_crc.d (405, 2011-01-24)
GPIO\Obj\stm32f10x_crc.o (30156, 2011-01-24)
GPIO\Obj\stm32f10x_dac.crf (39535, 2011-01-24)
... ...

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V2.0.1 * Date : 06/13/2008 * Description : 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. *******************************************************************************/ 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. Directory contents ================== platform_config.h Evaluation board specific configuration file stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Header for stm32f10x_it.c main.c Main program Hardware environment ==================== This example runs on STMicroelectronics STM3210B-EVAL and STM3210E-EVAL evaluation boards and can be easily tailored to any other hardware. To select the STMicroelectronics evaluation board used to run the example, uncomment the corresponding line in platform_config.h file. + STM3210B-EVAL - Use LD1, LD2, LD3 and LD4 leds connected respectively to PC.06, PC.07, PC.08 and PC.09 pins + STM3210E-EVAL - Use LD1, LD2, LD3 and LD4 leds connected respectively to PF.06, PF0.7, PF.08 and PF.09 pins How to use it ============= In order to make the program work, you must do the following: - Create a project and setup all your toolchain's start-up files - Compile the directory content files and required Library files: + stm32f10x_lib.c + stm32f10x_gpio.c + stm32f10x_rcc.c + stm32f10x_nvic.c + stm32f10x_flash.c - Link all compiled files and load your image into target memory - Run the example ******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者