USART/MultiProcessor/platform_config.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    USART/MultiProcessor/platform_config.h 
00004   * @author  MCD Application Team
00005   * @version V3.4.0
00006   * @date    10/15/2010
00007   * @brief   Evaluation board specific configuration file.
00008   ******************************************************************************
00009   * @copy
00010   *
00011   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00012   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00013   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00014   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00015   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00016   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00017   *
00018   * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
00019   */ 
00020 
00021 /* Define to prevent recursive inclusion -------------------------------------*/
00022 #ifndef __PLATFORM_CONFIG_H
00023 #define __PLATFORM_CONFIG_H
00024 
00025 /* Includes ------------------------------------------------------------------*/
00026 #include "stm32_eval.h"
00027 
00028 /* Exported types ------------------------------------------------------------*/
00029 /* Exported constants --------------------------------------------------------*/
00030 /* Uncomment the line corresponding to the STMicroelectronics evaluation board
00031    used to run the example */
00032 #if !defined (USE_STM32100B_EVAL) && !defined (USE_STM3210B_EVAL) &&  !defined (USE_STM3210E_EVAL) &&  !defined (USE_STM3210C_EVAL) &&  !defined (USE_STM32100E_EVAL)
00033  //#define USE_STM32100B_EVAL
00034  //#define USE_STM3210B_EVAL
00035  //#define USE_STM3210E_EVAL
00036  //#define USE_STM32100E_EVAL
00037  #define USE_STM3210C_EVAL 
00038 #endif
00039 
00040 /* Define the STM32F10x hardware depending on the used evaluation board */
00041 #if defined(USE_STM3210B_EVAL) || defined (USE_STM32100B_EVAL) 
00042 
00043   #define USARTy                   USART1
00044   #define USARTy_GPIO              GPIOA
00045   #define USARTy_CLK               RCC_APB2Periph_USART1
00046   #define USARTy_GPIO_CLK          RCC_APB2Periph_GPIOA
00047   #define USARTy_RxPin             GPIO_Pin_10
00048   #define USARTy_TxPin             GPIO_Pin_9
00049 
00050   #define USARTz                   USART2
00051   #define USARTz_GPIO              GPIOD
00052   #define USARTz_CLK               RCC_APB1Periph_USART2
00053   #define USARTz_GPIO_CLK          RCC_APB2Periph_GPIOD
00054   #define USARTz_RxPin             GPIO_Pin_6
00055   #define USARTz_TxPin             GPIO_Pin_5
00056 
00057 #elif defined USE_STM3210E_EVAL || defined (USE_STM32100E_EVAL)
00058 
00059   #define USARTy                   USART1
00060   #define USARTy_GPIO              GPIOA
00061   #define USARTy_CLK               RCC_APB2Periph_USART1
00062   #define USARTy_GPIO_CLK          RCC_APB2Periph_GPIOA
00063   #define USARTy_RxPin             GPIO_Pin_10
00064   #define USARTy_TxPin             GPIO_Pin_9
00065 
00066   #define USARTz                   USART2
00067   #define USARTz_GPIO              GPIOA
00068   #define USARTz_CLK               RCC_APB1Periph_USART2
00069   #define USARTz_GPIO_CLK          RCC_APB2Periph_GPIOA
00070   #define USARTz_RxPin             GPIO_Pin_3
00071   #define USARTz_TxPin             GPIO_Pin_2
00072 
00073 #elif defined USE_STM3210C_EVAL
00074 
00075   #define USARTy                   USART2
00076   #define USARTy_GPIO              GPIOD
00077   #define USARTy_CLK               RCC_APB1Periph_USART2
00078   #define USARTy_GPIO_CLK          RCC_APB2Periph_GPIOD
00079   #define USARTy_RxPin             GPIO_Pin_6
00080   #define USARTy_TxPin             GPIO_Pin_5
00081 
00082   #define USARTz                   USART3
00083   #define USARTz_GPIO              GPIOC
00084   #define USARTz_CLK               RCC_APB1Periph_USART3
00085   #define USARTz_GPIO_CLK          RCC_APB2Periph_GPIOC
00086   #define USARTz_RxPin             GPIO_Pin_11
00087   #define USARTz_TxPin             GPIO_Pin_10
00088 
00089 #endif /* USE_STM3210B_EVAL */
00090 
00091 /* Exported macro ------------------------------------------------------------*/
00092 /* Exported functions ------------------------------------------------------- */
00093 
00094 #endif /* __PLATFORM_CONFIG_H */
00095 
00096 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32