comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/USART/Synchronous/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/Synchronous/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
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
42 #define USARTy USART1
43 #define USARTy_GPIO GPIOA
44 #define USARTy_CLK RCC_APB2Periph_USART1
45 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
46 #define USARTy_RxPin GPIO_Pin_10
47 #define USARTy_TxPin GPIO_Pin_9
48 #define USARTy_ClkPin GPIO_Pin_8
49
50 #define SPIy SPI1
51 #define SPIy_GPIO GPIOA
52 #define SPIy_CLK RCC_APB2Periph_SPI1
53 #define SPIy_GPIO_CLK RCC_APB2Periph_GPIOA
54 #define SPIy_SCKPin GPIO_Pin_5
55 #define SPIy_MISOPin GPIO_Pin_6
56 #define SPIy_MOSIPin GPIO_Pin_7
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 #define USARTy_ClkPin GPIO_Pin_8
67
68 #define SPIy SPI1
69 #define SPIy_GPIO GPIOA
70 #define SPIy_CLK RCC_APB2Periph_SPI1
71 #define SPIy_GPIO_CLK RCC_APB2Periph_GPIOA
72 #define SPIy_SCKPin GPIO_Pin_5
73 #define SPIy_MISOPin GPIO_Pin_6
74 #define SPIy_MOSIPin GPIO_Pin_7
75
76 #endif /* USE_STM3210B_EVAL */
77
78 /* Exported macro ------------------------------------------------------------*/
79 /* Exported functions ------------------------------------------------------- */
80
81 #endif /* __PLATFORM_CONFIG_H */
82
83 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/