Ctest
所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:12KB
下载次数:7
上传日期:2009-07-23 09:57:49
上 传 者:
dangdangxiao
说明: STM32开发板的C语言测试程序。可以测试开发板上各模块是否正常
(STM32 development board of the C language test procedure. Development board to test whether it is normal for each module)
文件列表:
Ctest (0, 2009-07-23)
Ctest\ctest.eww (161, 2009-04-02)
Ctest\ctest01.dep (1499, 2009-04-10)
Ctest\ctest01.ewd (31907, 2009-04-02)
Ctest\ctest01.ewp (43805, 2009-04-03)
Ctest\Debug (0, 2009-07-23)
Ctest\Debug\Exe (0, 2009-04-30)
Ctest\Debug\List (0, 2009-04-30)
Ctest\Debug\Obj (0, 2009-07-23)
Ctest\Debug\Obj\ctest01.pbd (130, 2009-04-10)
Ctest\main.c (1515, 2009-04-07)
Ctest\settings (0, 2009-07-23)
Ctest\settings\ctest.wsdt (2501, 2009-04-10)
Ctest\settings\ctest01.cspy.bat (2170, 2009-04-10)
Ctest\settings\ctest01.dbgdt (6362, 2009-04-10)
Ctest\settings\ctest01.dni (552, 2009-04-10)
Ctest\settings\ctest02.cspy.bat (2169, 2009-04-02)
Ctest\settings\ctest02.dbgdt (63, 2009-04-02)
Ctest\settings\ctest02.dni (207, 2009-04-02)
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V2.0.3
* Date : 09/22/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.
GPIO_LED Port Pin 6, Pin 7, Pin 8 and Pin 9 are toggled in an infinite loop.
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******
近期下载者:
相关文件:
收藏者: