/**
@page GPIO_IOToggle GPIO IO Toggle example
@verbatim
******************** (C) COPYRIGHT 2014 STMicroelectronics *******************
* @file GPIO/GPIO_IOToggle/readme.txt
* @author MCD Application Team
* @version V1.3.0
* @date 16-January-2014
* @brief GPIO IO Toggle example Description.
******************************************************************************
*
* 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:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
@endverbatim
@par Example Description
GPIO ports are connected on AHB bus, using BSRR and BRR registers two cycles are
required to set a pin and another two cycles to reset it. So GPIO pins can toggle
at AHB clock divided by 4.
This example describes how to use BSRR and BRR (Port Bit Set/Reset Register High
and Low) for maximum IO toggling.
PC10 and PC11 when using the STM320518-EVAL (configured in output pushpull mode)
toggles in a forever loop:
- Set PC10 and PC11 by setting corresponding bits in BSRR register
- Reset PC10 and PC11 by setting corresponding bits in BRR register
In this example, HCLK is configured at 48 MHz so PC10 and PC11 toggles at 12MHz.
To achieve the maximum IO toggling frequency, you have to configure your compiler
options for high speed optimization.
@par Directory contents
- GPIO/GPIO_IOToggle/stm32f0xx_conf.h Library Configuration file
- GPIO/GPIO_IOToggle/stm32f0xx_it.c Interrupt handlers
- GPIO/GPIO_IOToggle/stm32f0xx_it.h Interrupt handlers header file
- GPIO/GPIO_IOToggle/main.c Main program
- GPIO/GPIO_IOToggle/main.h Main program header file
- GPIO/GPIO_IOToggle/system_stm32f0xx.c STM32F0xx system source file
@note The "system_stm32f0xx.c" is generated by an automatic clock configuration
tool and can be easily customized to meet user application requirements.
To select different clock setup, use the "STM32F0xx_Clock_Configuration_VX.Y.Z.xls"
provided with the AN4055 package available on <a href="http://www.st.com/internet/mcu/class/1734.jsp"> ST Microcontrollers </a>
@par Hardware and Software environment
- This example runs on STM32F0xx Devices.
- This example has been tested with STMicroelectronics STM320518-EVAL and
STM32072B-EVAL including respectively STM32F051R8T6 and STM32F072VBT6 devices
and can be easily tailored to any other supported device and development boardd.
@par How to use it ?
In order to make the program work, you must do the following :
- Copy all source files from this example folder to the template folder under
Project\STM32F0xx_StdPeriph_Templates
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32 USB复合设备 双游戏摇杆代码和PCB文件 (303个子文件)
STM32F042.uvguix.Administrator 140KB
Joystick_Sender_F103C8.axf 601KB
lunzhou.uvgui_Kelly.bak 71KB
lunzhou_uvproj.bak 16KB
lunzhou_uvopt.bak 13KB
stm32f0xx_tim.c 130KB
stm32f10x_tim.c 107KB
stm32f0xx_rtc.c 93KB
stm32f0xx_usart.c 87KB
stm32f0xx_rcc.c 67KB
stm32f10x_flash.c 61KB
stm32f0xx_can.c 57KB
stm32f0xx_i2c.c 55KB
stm32f0xx_spi.c 52KB
stm32f10x_rcc.c 50KB
stm32f0xx_adc.c 47KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f0xx_flash.c 42KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f0xx_dma.c 33KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f0xx_dac.c 26KB
stm32f0xx_cec.c 24KB
stm32f10x_gpio.c 23KB
stm32f0xx_pwr.c 20KB
stm32f0xx_gpio.c 20KB
stm32f10x_dac.c 19KB
usbd_req.c 17KB
core_cm3.c 17KB
usb_core.c 16KB
usb_dcd.c 16KB
stm32f0xx_comp.c 15KB
stm32f0xx_crs.c 14KB
stm32f0xx_syscfg.c 13KB
system_stm32f0xx.c 12KB
system_stm32f0xx.c 12KB
system_stm32f0xx.c 12KB
system_stm32f0xx.c 12KB
system_stm32f0xx.c 12KB
usb_dcd_int.c 12KB
stm32f10x_cec.c 11KB
joystick1_core.c 11KB
stm32f0xx_iwdg.c 11KB
joystick2_core.c 11KB
stm32f0xx_exti.c 11KB
usbd_hid_cdc_wrapper.c 11KB
stm32f0xx_crc.c 11KB
main.c 10KB
stm32f0xx_wwdg.c 10KB
usbd_core.c 10KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
24l01.c 8KB
stm32f10x_bkp.c 8KB
24l01.c 8KB
usbd_desc.c 8KB
stm32f0xx_dbgmcu.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
usbd_pwr.c 6KB
stm32f0xx_misc.c 6KB
NRF24L01.c 6KB
stm32f10x_wwdg.c 6KB
usbd_ioreq.c 5KB
USBD_Config_0.c 5KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
IIC.c 5KB
usb_bsp.c 5KB
stm32f10x_it.c 4KB
stm32f0xx_it.c 4KB
spi.c 4KB
stm32f10x_crc.c 3KB
spi.c 3KB
usbd_usr.c 3KB
main.c 3KB
usb_bsp_template.c 2KB
USBTest.vbproj.GenerateResource.Cache 907B
USBTest.vbproj.GenerateResource.Cache 849B
main.crf 346KB
24l01.crf 345KB
system_stm32f10x.crf 342KB
spi.crf 341KB
stm32f10x_it.crf 340KB
core_cm3.crf 4KB
system_stm32f10x.d 2KB
stm32f10x_it.d 2KB
24l01.d 2KB
main.d 2KB
spi.d 2KB
core_cm3.d 125B
startup_stm32f10x_hd.d 94B
lunzhou_Target 1.dep 14KB
lunzhou_Target 1.dep 8KB
共 303 条
- 1
- 2
- 3
- 4
资源评论
- Wisdom_ABEN2016-11-09不错的资料,学习学习
- 大山在线2017-07-15东西还是不错的。学习中
- 李沐泽2018-05-18资源不错 工程也巡行了 没报错 用来学习学习 挺合适的 哈哈哈
- neogeo642019-10-17不错 可以用
- maohuihua2018-12-26新手,学习学习
Kelly97582044-A
- 粉丝: 5
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功