platform_config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
  2. * File Name : platform_config.h
  3. * Author : MCD Application Team
  4. * Version : V2.0.1
  5. * Date : 06/13/2008
  6. * Description : Evaluation board specific configuration file.
  7. ********************************************************************************
  8. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  9. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
  10. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  11. * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
  12. * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  13. * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  14. *******************************************************************************/
  15. /* Define to prevent recursive inclusion -------------------------------------*/
  16. #ifndef __PLATFORM_CONFIG_H
  17. #define __PLATFORM_CONFIG_H
  18. /* Includes ------------------------------------------------------------------*/
  19. /* Exported types ------------------------------------------------------------*/
  20. /* Exported constants --------------------------------------------------------*/
  21. /* Uncomment the line corresponding to the STMicroelectronics evaluation board
  22. used to run the example */
  23. #if !defined (USE_STM3210B_EVAL) && !defined (USE_STM3210E_EVAL)
  24. //#define USE_STM3210B_EVAL
  25. #define USE_STM3210E_EVAL
  26. #endif
  27. /* Define the STM32F10x hardware depending on the used evaluation board */
  28. #ifdef USE_STM3210B_EVAL
  29. #define GPIO_LED GPIOC
  30. #define RCC_APB2Periph_GPIO_LED RCC_APB2Periph_GPIOC
  31. #elif defined USE_STM3210E_EVAL
  32. #define GPIO_LED GPIOF
  33. #define RCC_APB2Periph_GPIO_LED RCC_APB2Periph_GPIOF
  34. #endif /* USE_STM3210B_EVAL */
  35. /* Exported macro ------------------------------------------------------------*/
  36. /* Exported functions ------------------------------------------------------- */
  37. #endif /* __PLATFORM_CONFIG_H */
  38. /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/