IO_Toggle

所属分类:嵌入式/单片机/硬件编程
开发工具:Visual C++
文件大小:41KB
下载次数:54
上传日期:2012-05-03 21:37:17
上 传 者lipeiwei
说明:  利用STM32F407 Discovery开发板,实现对GPIO口以及与其相关的时钟等的配置
(Use STM32F407 Discovery Board,set GPIO and system clock etc. corecctly.)

文件列表:
IO_Toggle\EWARM\IO_Toggle.ewd (24217, 2011-10-28)
IO_Toggle\EWARM\IO_Toggle.ewp (25969, 2011-10-28)
IO_Toggle\EWARM\IO_Toggle.eww (163, 2011-10-28)
IO_Toggle\EWARM\stm32f4xx_flash.icf (1342, 2011-10-28)
IO_Toggle\EWARM\settings\IO_Toggle.cspy.bat (1274, 2012-05-03)
IO_Toggle\EWARM\settings\IO_Toggle.wsdt (2637, 2012-05-03)
IO_Toggle\EWARM\settings\IO_Toggle.dbgdt (63, 2012-05-03)
IO_Toggle\EWARM\settings\IO_Toggle.dni (258, 2012-05-03)
IO_Toggle\EWARM\IO_Toggle\Obj\IO_Toggle.pbd (865, 2012-05-03)
IO_Toggle\EWARM\IO_Toggle.dep (10454, 2012-05-03)
IO_Toggle\main.c (4279, 2011-10-28)
IO_Toggle\MDK-ARM\IO_Toggle.uvopt (11475, 2011-10-28)
IO_Toggle\MDK-ARM\IO_Toggle.uvproj (17549, 2011-10-28)
IO_Toggle\stm32f4xx_conf.h (3808, 2011-10-28)
IO_Toggle\stm32f4xx_it.c (4457, 2011-10-28)
IO_Toggle\stm32f4xx_it.h (2067, 2011-10-28)
IO_Toggle\system_stm32f4xx.c (21172, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle\.cproject (37617, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle\.project (2882, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle\IO_Toggle.launch (4132, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle\TASKING\stm32f4xx.lsl (15846, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\.cproject (20755, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\.project (4340, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\.settings\com.atollic.truestudio.debug.hardware_device.prefs (222, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\IO_Toggle.elf.launch (4757, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\stm32_flash.ld (4978, 2011-10-28)
IO_Toggle\EWARM\IO_Toggle\Exe (0, 2012-05-03)
IO_Toggle\EWARM\IO_Toggle\Obj (0, 2012-05-03)
IO_Toggle\EWARM\IO_Toggle\List (0, 2012-05-03)
IO_Toggle\TASKING\.metadata\Link (0, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle\TASKING (0, 2011-10-28)
IO_Toggle\TrueSTUDIO\.metadata\Link (0, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle\.settings (0, 2011-10-28)
IO_Toggle\EWARM\settings (0, 2012-05-03)
IO_Toggle\EWARM\IO_Toggle (0, 2012-05-03)
IO_Toggle\TASKING\.metadata (0, 2011-10-28)
IO_Toggle\TASKING\IO_Toggle (0, 2011-10-28)
IO_Toggle\TrueSTUDIO\.metadata (0, 2011-10-28)
IO_Toggle\TrueSTUDIO\IO_Toggle (0, 2011-10-28)
... ...

/** @page GPIO_IOToggle GPIO IO Toggle example @verbatim ******************** (C) COPYRIGHT 2011 STMicroelectronics ******************* * @file IO_Toggle/readme.txt * @author MCD Application Team * @version V1.0.0 * @date 19-September-2011 * @brief Description of the GPIO IO Toggle 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 toggle the GPIO pins connected on AHB bus. PD12, PD13, PD14 and PD15 (configured in output pushpull mode) toggles in a forever loop. - Set PD12, PD13, PD14 and PD15 by setting corresponding bits in BSRRL register - Reset PD12, PD13, PD14 and PD15 by setting corresponding bits in BSRRH register In this example, HCLK is configured at 168 MHz. @par Directory contents - IO_Toggle/stm32f4xx_conf.h Library Configuration file - IO_Toggle/stm32f4xx_it.c Interrupt handlers - IO_Toggle/stm32f4xx_it.h Interrupt handlers header file - IO_Toggle/main.c Main program - IO_Toggle/system_stm32f4xx.c STM32F4xx system source file @par Hardware and Software environment - This example runs on STM32F4xx Devices Revision A. - This example has been tested with STM32F4-Discovery (MB997) RevA and can be easily tailored to any other development board - STM32F4-Discovery - LED4, LED3, LED5 and LED6 are connected respectively to PD.12, PD.13, PD.14 and PD.15. @par How to use it ? In order to make the program work, you must do the following : + EWARM - Open the IO_Toggle.eww workspace - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) + MDK-ARM - Open the IO_Toggle.uvproj project - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) + TASKING - Open TASKING toolchain. - Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next". - Browse to TASKING workspace directory and select the project "IO_Toggle" - Rebuild all project files: Select the project in the "Project explorer" window then click on Project->build project menu. - Run program: Select the project in the "Project explorer" window then click Run->Debug (F11) + TrueSTUDIO - Open the TrueSTUDIO toolchain. - Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace directory. - Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next". - Browse to the TrueSTUDIO workspace directory and select the project "IO_Toggle" - Rebuild all project files: Select the project in the "Project explorer" window then click on Project->build project menu. - Run program: Select the project in the "Project explorer" window then click Run->Debug (F11) *

© COPYRIGHT 2011 STMicroelectronics

*/

近期下载者

相关文件


收藏者