Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/HyperTerminal_HwFlowControl/platform_config.h @ 0:c59513fd84fb
Initial commit of STM32 test code.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 03 Oct 2011 21:19:15 +1030 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c59513fd84fb |
---|---|
1 /** | |
2 ****************************************************************************** | |
3 * @file USART/HyperTerminal_HwFlowControl/platform_config.h | |
4 * @author MCD Application Team | |
5 * @version V3.5.0 | |
6 * @date 08-April-2011 | |
7 * @brief Evaluation board specific configuration file. | |
8 ****************************************************************************** | |
9 * @attention | |
10 * | |
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS | |
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE | |
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY | |
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING | |
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE | |
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. | |
17 * | |
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2> | |
19 ****************************************************************************** | |
20 */ | |
21 | |
22 /* Define to prevent recursive inclusion -------------------------------------*/ | |
23 #ifndef __PLATFORM_CONFIG_H | |
24 #define __PLATFORM_CONFIG_H | |
25 | |
26 /* Includes ------------------------------------------------------------------*/ | |
27 | |
28 /* Exported types ------------------------------------------------------------*/ | |
29 /* Exported constants --------------------------------------------------------*/ | |
30 /* Uncomment the line corresponding to the STMicroelectronics evaluation board | |
31 used to run the example */ | |
32 #if !defined (USE_STM32100B_EVAL) && !defined (USE_STM3210B_EVAL) && !defined (USE_STM3210E_EVAL) && !defined (USE_STM32100E_EVAL) | |
33 //#define USE_STM32100B_EVAL | |
34 //#define USE_STM3210B_EVAL | |
35 //#define USE_STM32100E_EVAL | |
36 #define USE_STM3210E_EVAL | |
37 #endif | |
38 | |
39 /* Define the STM32F10x hardware depending on the used evaluation board */ | |
40 #if defined(USE_STM3210B_EVAL) || defined (USE_STM32100B_EVAL) | |
41 #define GPIOx GPIOD | |
42 #define RCC_APB2Periph_GPIOx RCC_APB2Periph_GPIOD | |
43 #define GPIO_RTSPin GPIO_Pin_4 | |
44 #define GPIO_CTSPin GPIO_Pin_3 | |
45 #define GPIO_TxPin GPIO_Pin_5 | |
46 #define GPIO_RxPin GPIO_Pin_6 | |
47 #elif defined (USE_STM3210E_EVAL) || defined (USE_STM32100E_EVAL) | |
48 #define GPIOx GPIOA | |
49 #define RCC_APB2Periph_GPIOx RCC_APB2Periph_GPIOA | |
50 #define GPIO_RTSPin GPIO_Pin_1 | |
51 #define GPIO_CTSPin GPIO_Pin_0 | |
52 #define GPIO_TxPin GPIO_Pin_2 | |
53 #define GPIO_RxPin GPIO_Pin_3 | |
54 #endif /* USE_STM3210B_EVAL */ | |
55 | |
56 /* Exported macro ------------------------------------------------------------*/ | |
57 /* Exported functions ------------------------------------------------------- */ | |
58 | |
59 #endif /* __PLATFORM_CONFIG_H */ | |
60 | |
61 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |