Go to the documentation of this file.
23 #ifndef __PLATFORM_CONFIG_H
24 #define __PLATFORM_CONFIG_H
32 #if !defined (USE_STM3210B_EVAL) && !defined (USE_STM3210E_EVAL) && !defined (USE_STM3210C_EVAL) && !defined (USE_STM32100B_EVAL) && !defined (USE_STM32100E_EVAL)
37 #define USE_STM32100E_EVAL
41 #ifdef USE_STM3210B_EVAL
44 #define USARTy_GPIO GPIOA
45 #define USARTy_CLK RCC_APB2Periph_USART1
46 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
47 #define USARTy_RxPin GPIO_Pin_10
48 #define USARTy_TxPin GPIO_Pin_9
49 #define USARTy_IRQn USART1_IRQn
50 #define USARTy_IRQHandler USART1_IRQHandler
53 #define USARTz_GPIO GPIOD
54 #define USARTz_CLK RCC_APB1Periph_USART2
55 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOD
56 #define USARTz_RxPin GPIO_Pin_6
57 #define USARTz_TxPin GPIO_Pin_5
58 #define USARTz_IRQn USART2_IRQn
59 #define USARTz_IRQHandler USART2_IRQHandler
61 #elif defined (USE_STM3210E_EVAL) || defined (USE_STM32100E_EVAL)
64 #define USARTy_GPIO GPIOA
65 #define USARTy_CLK RCC_APB2Periph_USART1
66 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
67 #define USARTy_RxPin GPIO_Pin_10
68 #define USARTy_TxPin GPIO_Pin_9
69 #define USARTy_IRQn USART1_IRQn
70 #define USARTy_IRQHandler USART1_IRQHandler
73 #define USARTz_GPIO GPIOA
74 #define USARTz_CLK RCC_APB1Periph_USART2
75 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOA
76 #define USARTz_RxPin GPIO_Pin_3
77 #define USARTz_TxPin GPIO_Pin_2
78 #define USARTz_IRQn USART2_IRQn
79 #define USARTz_IRQHandler USART2_IRQHandler
81 #elif defined USE_STM3210C_EVAL
84 #define USARTy_GPIO GPIOD
85 #define USARTy_CLK RCC_APB1Periph_USART2
86 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOD
87 #define USARTy_RxPin GPIO_Pin_6
88 #define USARTy_TxPin GPIO_Pin_5
89 #define USARTy_IRQn USART2_IRQn
90 #define USARTy_IRQHandler USART2_IRQHandler
93 #define USARTz_GPIO GPIOC
94 #define USARTz_CLK RCC_APB1Periph_USART3
95 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOC
96 #define USARTz_RxPin GPIO_Pin_11
97 #define USARTz_TxPin GPIO_Pin_10
98 #define USARTz_IRQn USART3_IRQn
99 #define USARTz_IRQHandler USART3_IRQHandler
101 #elif defined USE_STM32100B_EVAL
103 #define USARTy USART1
104 #define USARTy_GPIO GPIOA
105 #define USARTy_CLK RCC_APB2Periph_USART1
106 #define USARTy_GPIO_CLK RCC_APB2Periph_GPIOA
107 #define USARTy_RxPin GPIO_Pin_10
108 #define USARTy_TxPin GPIO_Pin_9
109 #define USARTy_IRQn USART1_IRQn
110 #define USARTy_IRQHandler USART1_IRQHandler
112 #define USARTz USART2
113 #define USARTz_GPIO GPIOD
114 #define USARTz_CLK RCC_APB1Periph_USART2
115 #define USARTz_GPIO_CLK RCC_APB2Periph_GPIOD
116 #define USARTz_RxPin GPIO_Pin_6
117 #define USARTz_TxPin GPIO_Pin_5
118 #define USARTz_IRQn USART2_IRQn
119 #define USARTz_IRQHandler USART2_IRQHandler