文件名称:example_GPIO
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 278kb
- 下载次数:
- 0次
- 提 供 者:
- 彭**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本例展示了如何通过设置GPIO BSRR寄存器(Port bit set/reset registe)和GPIO BRR寄存器 (Port bit reset register)来翻转IO的状态。
通过设置这两个寄存器,可以利用单比特操作(single atomic write access)来改变一个或者几个IO端口的状态。
这个例子原本应用于STM32评估板(STM3210B-EVAL),为了使本例能在STM3210B-LK1上运行,应当把使用端口PC.06 – PC.09改为使用PC.04 – PC.07。-This example shows how to set the GPIO BSRR register (Port bit set/reset registe) and GPIO the BRR register (Port bit reset register) to flip the state of the IO. By setting these two registers, you can use a single-bit operations (single the atomic write access) to change the status of one or several IO ports. This example was originally used in the STM32 evaluation board (the STM3210B-EVAL), in order to make this case to run on in the STM3210B-the LK1 should use port PC.06- PC.09 used instead PC.04- PC.07.
通过设置这两个寄存器,可以利用单比特操作(single atomic write access)来改变一个或者几个IO端口的状态。
这个例子原本应用于STM32评估板(STM3210B-EVAL),为了使本例能在STM3210B-LK1上运行,应当把使用端口PC.06 – PC.09改为使用PC.04 – PC.07。-This example shows how to set the GPIO BSRR register (Port bit set/reset registe) and GPIO the BRR register (Port bit reset register) to flip the state of the IO. By setting these two registers, you can use a single-bit operations (single the atomic write access) to change the status of one or several IO ports. This example was originally used in the STM32 evaluation board (the STM3210B-EVAL), in order to make this case to run on in the STM3210B-the LK1 should use port PC.06- PC.09 used instead PC.04- PC.07.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
example_GPIO\App\bsp.c
............\...\bsp.h
............\...\main.c
............\...\stm32f10x_conf.h
............\...\stm32f10x_it.c
............\...\stm32f10x_it.h
............\FWLib\inc\cortexm3_macro.h
............\.....\...\stm32f10x_adc.h
............\.....\...\stm32f10x_bkp.h
............\.....\...\stm32f10x_can.h
............\.....\...\stm32f10x_crc.h
............\.....\...\stm32f10x_dac.h
............\.....\...\stm32f10x_dbgmcu.h
............\.....\...\stm32f10x_dma.h
............\.....\...\stm32f10x_exti.h
............\.....\...\stm32f10x_flash.h
............\.....\...\stm32f10x_fsmc.h
............\.....\...\stm32f10x_gpio.h
............\.....\...\stm32f10x_i2c.h
............\.....\...\stm32f10x_iwdg.h
............\.....\...\stm32f10x_lib.h
............\.....\...\stm32f10x_map.h
............\.....\...\stm32f10x_nvic.h
............\.....\...\stm32f10x_pwr.h
............\.....\...\stm32f10x_rcc.h
............\.....\...\stm32f10x_rtc.h
............\.....\...\stm32f10x_sdio.h
............\.....\...\stm32f10x_spi.h
............\.....\...\stm32f10x_systick.h
............\.....\...\stm32f10x_tim.h
............\.....\...\stm32f10x_type.h
............\.....\...\stm32f10x_usart.h
............\.....\...\stm32f10x_wwdg.h
............\.....\src\stm32f10x_adc.c
............\.....\...\stm32f10x_bkp.c
............\.....\...\stm32f10x_can.c
............\.....\...\stm32f10x_crc.c
............\.....\...\stm32f10x_dac.c
............\.....\...\stm32f10x_dbgmcu.c
............\.....\...\stm32f10x_dma.c
............\.....\...\stm32f10x_exti.c
............\.....\...\stm32f10x_flash.c
............\.....\...\stm32f10x_fsmc.c
............\.....\...\stm32f10x_gpio.c
............\.....\...\stm32f10x_i2c.c
............\.....\...\stm32f10x_iwdg.c
............\.....\...\stm32f10x_lib.c
............\.....\...\stm32f10x_nvic.c
............\.....\...\stm32f10x_pwr.c
............\.....\...\stm32f10x_rcc.c
............\.....\...\stm32f10x_rtc.c
............\.....\...\stm32f10x_sdio.c
............\.....\...\stm32f10x_spi.c
............\.....\...\stm32f10x_systick.c
............\.....\...\stm32f10x_tim.c
............\.....\...\stm32f10x_usart.c
............\.....\...\stm32f10x_wwdg.c
............\Project\cortexm3_macro.s
............\.......\Debug\Exe\example_GPIO.out
............\.......\.....\Obj\bsp.o
............\.......\.....\...\cortexm3_macro.o
............\.......\.....\...\example_GPIO.pbd
............\.......\.....\...\stm32f10x_flash.o
............\.......\.....\...\stm32f10x_gpio.o
............\.......\.....\...\stm32f10x_it.o
............\.......\.....\...\stm32f10x_lib.o
............\.......\.....\...\stm32f10x_nvic.o
............\.......\.....\...\stm32f10x_rcc.o
............\.......\.....\...\stm32f10x_vector.o
............\.......\example_GPIO.dep
............\.......\example_GPIO.ewd
............\.......\example_GPIO.ewp
............\.......\example_GPIO.eww
............\.......\lnkarm_flash.xcl
............\.......\lnkarm_ram.xcl
............\.......\settings\example_GPIO.cspy.bat
............\.......\........\example_GPIO.dbgdt
............\.......\........\example_GPIO.dni
............\.......\........\example_GPIO.wsdt
............\.......\........\example_GPIO_Debug.jlink
............\.......\stm32f10x_flash.icf
............\.......\stm32f10x_ram.icf
............\.......\stm32f10x_vector.c
............\.......\Debug\Exe
............\.......\.....\List
............\.......\.....\Obj
............\FWLib\inc
............\.....\src
............\Project\Debug
............\.......\settings
............\App
............\FWLib
............\Project
example_GPIO
............\...\bsp.h
............\...\main.c
............\...\stm32f10x_conf.h
............\...\stm32f10x_it.c
............\...\stm32f10x_it.h
............\FWLib\inc\cortexm3_macro.h
............\.....\...\stm32f10x_adc.h
............\.....\...\stm32f10x_bkp.h
............\.....\...\stm32f10x_can.h
............\.....\...\stm32f10x_crc.h
............\.....\...\stm32f10x_dac.h
............\.....\...\stm32f10x_dbgmcu.h
............\.....\...\stm32f10x_dma.h
............\.....\...\stm32f10x_exti.h
............\.....\...\stm32f10x_flash.h
............\.....\...\stm32f10x_fsmc.h
............\.....\...\stm32f10x_gpio.h
............\.....\...\stm32f10x_i2c.h
............\.....\...\stm32f10x_iwdg.h
............\.....\...\stm32f10x_lib.h
............\.....\...\stm32f10x_map.h
............\.....\...\stm32f10x_nvic.h
............\.....\...\stm32f10x_pwr.h
............\.....\...\stm32f10x_rcc.h
............\.....\...\stm32f10x_rtc.h
............\.....\...\stm32f10x_sdio.h
............\.....\...\stm32f10x_spi.h
............\.....\...\stm32f10x_systick.h
............\.....\...\stm32f10x_tim.h
............\.....\...\stm32f10x_type.h
............\.....\...\stm32f10x_usart.h
............\.....\...\stm32f10x_wwdg.h
............\.....\src\stm32f10x_adc.c
............\.....\...\stm32f10x_bkp.c
............\.....\...\stm32f10x_can.c
............\.....\...\stm32f10x_crc.c
............\.....\...\stm32f10x_dac.c
............\.....\...\stm32f10x_dbgmcu.c
............\.....\...\stm32f10x_dma.c
............\.....\...\stm32f10x_exti.c
............\.....\...\stm32f10x_flash.c
............\.....\...\stm32f10x_fsmc.c
............\.....\...\stm32f10x_gpio.c
............\.....\...\stm32f10x_i2c.c
............\.....\...\stm32f10x_iwdg.c
............\.....\...\stm32f10x_lib.c
............\.....\...\stm32f10x_nvic.c
............\.....\...\stm32f10x_pwr.c
............\.....\...\stm32f10x_rcc.c
............\.....\...\stm32f10x_rtc.c
............\.....\...\stm32f10x_sdio.c
............\.....\...\stm32f10x_spi.c
............\.....\...\stm32f10x_systick.c
............\.....\...\stm32f10x_tim.c
............\.....\...\stm32f10x_usart.c
............\.....\...\stm32f10x_wwdg.c
............\Project\cortexm3_macro.s
............\.......\Debug\Exe\example_GPIO.out
............\.......\.....\Obj\bsp.o
............\.......\.....\...\cortexm3_macro.o
............\.......\.....\...\example_GPIO.pbd
............\.......\.....\...\stm32f10x_flash.o
............\.......\.....\...\stm32f10x_gpio.o
............\.......\.....\...\stm32f10x_it.o
............\.......\.....\...\stm32f10x_lib.o
............\.......\.....\...\stm32f10x_nvic.o
............\.......\.....\...\stm32f10x_rcc.o
............\.......\.....\...\stm32f10x_vector.o
............\.......\example_GPIO.dep
............\.......\example_GPIO.ewd
............\.......\example_GPIO.ewp
............\.......\example_GPIO.eww
............\.......\lnkarm_flash.xcl
............\.......\lnkarm_ram.xcl
............\.......\settings\example_GPIO.cspy.bat
............\.......\........\example_GPIO.dbgdt
............\.......\........\example_GPIO.dni
............\.......\........\example_GPIO.wsdt
............\.......\........\example_GPIO_Debug.jlink
............\.......\stm32f10x_flash.icf
............\.......\stm32f10x_ram.icf
............\.......\stm32f10x_vector.c
............\.......\Debug\Exe
............\.......\.....\List
............\.......\.....\Obj
............\FWLib\inc
............\.....\src
............\Project\Debug
............\.......\settings
............\App
............\FWLib
............\Project
example_GPIO