CAN/Networking/platform_config.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    CAN/Networking/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_STM3210B_EVAL) &&  !defined (USE_STM3210E_EVAL) &&  !defined (USE_STM3210C_EVAL)
00033  //#define USE_STM3210B_EVAL
00034  //#define USE_STM3210E_EVAL
00035  #define USE_STM3210C_EVAL
00036 #endif
00037 
00038 /* Define the STM32F10x hardware depending on the used evaluation board */
00039 #ifdef USE_STM3210B_EVAL
00040   #define RCC_APB2Periph_GPIO_CAN    RCC_APB2Periph_GPIOD
00041   #define GPIO_Remap_CAN             GPIO_Remap2_CAN1
00042   #define GPIO_CAN                   GPIOD  
00043   #define GPIO_Pin_CAN_RX            GPIO_Pin_0
00044   #define GPIO_Pin_CAN_TX            GPIO_Pin_1
00045 
00046 #elif defined USE_STM3210E_EVAL
00047   #define RCC_APB2Periph_GPIO_CAN    RCC_APB2Periph_GPIOB
00048   #define GPIO_Remap_CAN             GPIO_Remap1_CAN1
00049   #define GPIO_CAN                   GPIOB
00050   #define GPIO_Pin_CAN_RX            GPIO_Pin_8
00051   #define GPIO_Pin_CAN_TX            GPIO_Pin_9
00052 
00053 #elif defined USE_STM3210C_EVAL
00054   #define RCC_APB2Periph_GPIO_CAN    RCC_APB2Periph_GPIOD
00055   #define GPIO_Remap_CAN             GPIO_Remap2_CAN1
00056   #define GPIO_CAN                   GPIOD  
00057   #define GPIO_Pin_CAN_RX            GPIO_Pin_0
00058   #define GPIO_Pin_CAN_TX            GPIO_Pin_1
00059 #endif /* USE_STM3210B_EVAL */
00060 
00061 /* Exported macro ------------------------------------------------------------*/
00062 /* Exported functions ------------------------------------------------------- */
00063 
00064 #endif /* __PLATFORM_CONFIG_H */
00065 
00066 /******************* (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