comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/MultiProcessor/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/MultiProcessor/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>&copy; 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
29 /* Exported types ------------------------------------------------------------*/
30 /* Exported constants --------------------------------------------------------*/
31 /* Uncomment the line corresponding to the STMicroelectronics evaluation board
32 used to run the example */
33 #if !defined (USE_STM32100B_EVAL) && !defined (USE_STM3210B_EVAL) && !defined (USE_STM3210E_EVAL) && !defined (USE_STM3210C_EVAL) && !defined (USE_STM32100E_EVAL)
34 //#define USE_STM32100B_EVAL
35 //#define USE_STM3210B_EVAL
36 //#define USE_STM3210E_EVAL
37 //#define USE_STM32100E_EVAL
38 #define USE_STM3210C_EVAL
39 #endif
40
41 /* Define the STM32F10x hardware depending on the used evaluation board */
42 #if defined(USE_STM3210B_EVAL) || defined (USE_STM32100B_EVAL)
43
44 #define USARTy USART1
45 #define USARTy_GPIO GPIOA
46 #define USARTy_CLK RCC_APB2Periph_USART1
47 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
48 #define USARTy_RxPin GPIO_Pin_10
49 #define USARTy_TxPin GPIO_Pin_9
50
51 #define USARTz USART2
52 #define USARTz_GPIO GPIOD
53 #define USARTz_CLK RCC_APB1Periph_USART2
54 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOD
55 #define USARTz_RxPin GPIO_Pin_6
56 #define USARTz_TxPin GPIO_Pin_5
57
58 #elif defined USE_STM3210E_EVAL || defined (USE_STM32100E_EVAL)
59
60 #define USARTy USART1
61 #define USARTy_GPIO GPIOA
62 #define USARTy_CLK RCC_APB2Periph_USART1
63 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
64 #define USARTy_RxPin GPIO_Pin_10
65 #define USARTy_TxPin GPIO_Pin_9
66
67 #define USARTz USART2
68 #define USARTz_GPIO GPIOA
69 #define USARTz_CLK RCC_APB1Periph_USART2
70 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOA
71 #define USARTz_RxPin GPIO_Pin_3
72 #define USARTz_TxPin GPIO_Pin_2
73
74 #elif defined USE_STM3210C_EVAL
75
76 #define USARTy USART2
77 #define USARTy_GPIO GPIOD
78 #define USARTy_CLK RCC_APB1Periph_USART2
79 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOD
80 #define USARTy_RxPin GPIO_Pin_6
81 #define USARTy_TxPin GPIO_Pin_5
82
83 #define USARTz USART3
84 #define USARTz_GPIO GPIOC
85 #define USARTz_CLK RCC_APB1Periph_USART3
86 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOC
87 #define USARTz_RxPin GPIO_Pin_11
88 #define USARTz_TxPin GPIO_Pin_10
89
90 #endif /* USE_STM3210B_EVAL */
91
92 /* Exported macro ------------------------------------------------------------*/
93 /* Exported functions ------------------------------------------------------- */
94
95 #endif /* __PLATFORM_CONFIG_H */
96
97 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/