Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/IrDA/Transmit/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/IrDA/Transmit/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 #include "stm32_eval.h" | |
28 #ifdef USE_STM3210C_EVAL | |
29 #include "stm3210c_eval_ioe.h" | |
30 #endif | |
31 | |
32 /* Exported types ------------------------------------------------------------*/ | |
33 /* Exported constants --------------------------------------------------------*/ | |
34 /* Uncomment the line corresponding to the STMicroelectronics evaluation board | |
35 used to run the example */ | |
36 #if !defined (USE_STM32100B_EVAL) && !defined (USE_STM3210B_EVAL) && !defined (USE_STM3210E_EVAL) && !defined (USE_STM32100E_EVAL) && !defined (USE_STM3210C_EVAL) | |
37 //#define USE_STM32100B_EVAL | |
38 //#define USE_STM3210B_EVAL | |
39 //#define USE_STM3210E_EVAL | |
40 //#define USE_STM3210C_EVAL | |
41 #define USE_STM32100E_EVAL | |
42 #endif | |
43 | |
44 /* Define the STM32F10x hardware depending on the used evaluation board */ | |
45 #if defined(USE_STM3210B_EVAL) || defined (USE_STM32100B_EVAL) | |
46 | |
47 #define USARTy USART3 | |
48 #define USARTy_GPIO GPIOC | |
49 #define USARTy_CLK RCC_APB1Periph_USART3 | |
50 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOC | |
51 #define USARTy_RxPin GPIO_Pin_11 | |
52 #define USARTy_TxPin GPIO_Pin_10 | |
53 | |
54 #elif defined USE_STM3210E_EVAL || defined USE_STM32100E_EVAL | |
55 | |
56 #define USARTy USART3 | |
57 #define USARTy_GPIO GPIOC | |
58 #define USARTy_CLK RCC_APB1Periph_USART3 | |
59 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOC | |
60 #define USARTy_RxPin GPIO_Pin_11 | |
61 #define USARTy_TxPin GPIO_Pin_10 | |
62 | |
63 #elif defined USE_STM3210C_EVAL | |
64 | |
65 #define USARTy USART2 | |
66 #define USARTy_GPIO GPIOD | |
67 #define USARTy_CLK RCC_APB1Periph_USART2 | |
68 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOD | |
69 #define USARTy_RxPin GPIO_Pin_6 | |
70 #define USARTy_TxPin GPIO_Pin_5 | |
71 | |
72 #endif /* USE_STM3210B_EVAL */ | |
73 | |
74 /* Exported macro ------------------------------------------------------------*/ | |
75 /* Exported functions ------------------------------------------------------- */ | |
76 | |
77 #endif /* __PLATFORM_CONFIG_H */ | |
78 | |
79 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |