STM3210E_EVAL BSP User Manual: STM3210E_EVAL_COM

STM3210E EVAL BSP Drivers

STM3210E_EVAL BSP User Manual
STM3210E_EVAL_COM

Defines

#define COMn   2
#define EVAL_COM1   USART1
 Definition for COM port1, connected to USART1.
#define EVAL_COM1_CLK_ENABLE()   __HAL_RCC_USART1_CLK_ENABLE()
#define EVAL_COM1_CLK_DISABLE()   __HAL_RCC_USART1_CLK_DISABLE()
#define EVAL_COM1_TX_PIN   GPIO_PIN_9 /* PA.09*/
#define EVAL_COM1_TX_GPIO_PORT   GPIOA
#define EVAL_COM1_TX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EVAL_COM1_TX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EVAL_COM1_RX_PIN   GPIO_PIN_10 /* PA.10*/
#define EVAL_COM1_RX_GPIO_PORT   GPIOA
#define EVAL_COM1_RX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EVAL_COM1_RX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EVAL_COM1_IRQn   USART1_IRQn
#define EVAL_COM2   USART2
 Definition for COM port2, connected to USART2.
#define EVAL_COM2_CLK_ENABLE()   __HAL_RCC_USART2_CLK_ENABLE()
#define EVAL_COM2_CLK_DISABLE()   __HAL_RCC_USART2_CLK_DISABLE()
#define EVAL_COM2_TX_PIN   GPIO_PIN_2 /* PA.02*/
#define EVAL_COM2_TX_GPIO_PORT   GPIOA
#define EVAL_COM2_TX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EVAL_COM2_TX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EVAL_COM2_RX_PIN   GPIO_PIN_3 /* PA.03*/
#define EVAL_COM2_RX_GPIO_PORT   GPIOA
#define EVAL_COM2_RX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EVAL_COM2_RX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EVAL_COM2_IRQn   USART2_IRQn
#define COMx_CLK_ENABLE(__INDEX__)
#define COMx_CLK_DISABLE(__INDEX__)
#define COMx_TX_GPIO_CLK_ENABLE(__INDEX__)
#define COMx_TX_GPIO_CLK_DISABLE(__INDEX__)
#define COMx_RX_GPIO_CLK_ENABLE(__INDEX__)
#define COMx_RX_GPIO_CLK_DISABLE(__INDEX__)

Define Documentation

#define COMn   2

Definition at line 309 of file stm3210e_eval.h.

#define COMx_CLK_DISABLE (   __INDEX__)
Value:
(((__INDEX__) == COM1) ? EVAL_COM1_CLK_DISABLE() :\
                                                 ((__INDEX__) == COM2) ? EVAL_COM2_CLK_DISABLE() : 0)

Definition at line 352 of file stm3210e_eval.h.

#define COMx_CLK_ENABLE (   __INDEX__)
Value:
do { if((__INDEX__) == COM1) EVAL_COM1_CLK_ENABLE(); else\
                                                     if((__INDEX__) == COM2) EVAL_COM2_CLK_ENABLE();} while(0)

Definition at line 349 of file stm3210e_eval.h.

Referenced by BSP_COM_Init().

#define COMx_RX_GPIO_CLK_DISABLE (   __INDEX__)
Value:
(((__INDEX__) == COM1) ? EVAL_COM1_RX_GPIO_CLK_DISABLE() :\
                                                 ((__INDEX__) == COM2) ? EVAL_COM2_RX_GPIO_CLK_DISABLE() : 0)

Definition at line 364 of file stm3210e_eval.h.

#define COMx_RX_GPIO_CLK_ENABLE (   __INDEX__)
Value:
do { if((__INDEX__) == COM1) EVAL_COM1_RX_GPIO_CLK_ENABLE(); else\
                                                     if((__INDEX__) == COM2) EVAL_COM2_RX_GPIO_CLK_ENABLE();} while(0)

Definition at line 361 of file stm3210e_eval.h.

Referenced by BSP_COM_Init().

#define COMx_TX_GPIO_CLK_DISABLE (   __INDEX__)
Value:
(((__INDEX__) == COM1) ? EVAL_COM1_TX_GPIO_CLK_DISABLE() :\
                                                 ((__INDEX__) == COM2) ? EVAL_COM2_TX_GPIO_CLK_DISABLE() : 0)

Definition at line 358 of file stm3210e_eval.h.

#define COMx_TX_GPIO_CLK_ENABLE (   __INDEX__)
Value:
do { if((__INDEX__) == COM1) EVAL_COM1_TX_GPIO_CLK_ENABLE(); else\
                                                     if((__INDEX__) == COM2) EVAL_COM2_TX_GPIO_CLK_ENABLE();} while(0)

Definition at line 355 of file stm3210e_eval.h.

Referenced by BSP_COM_Init().

#define EVAL_COM1   USART1

Definition for COM port1, connected to USART1.

Definition at line 314 of file stm3210e_eval.h.

#define EVAL_COM1_CLK_DISABLE ( )    __HAL_RCC_USART1_CLK_DISABLE()

Definition at line 316 of file stm3210e_eval.h.

#define EVAL_COM1_CLK_ENABLE ( )    __HAL_RCC_USART1_CLK_ENABLE()

Definition at line 315 of file stm3210e_eval.h.

#define EVAL_COM1_IRQn   USART1_IRQn

Definition at line 328 of file stm3210e_eval.h.

#define EVAL_COM1_RX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 326 of file stm3210e_eval.h.

#define EVAL_COM1_RX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 325 of file stm3210e_eval.h.

#define EVAL_COM1_RX_GPIO_PORT   GPIOA

Definition at line 324 of file stm3210e_eval.h.

#define EVAL_COM1_RX_PIN   GPIO_PIN_10 /* PA.10*/

Definition at line 323 of file stm3210e_eval.h.

#define EVAL_COM1_TX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 321 of file stm3210e_eval.h.

#define EVAL_COM1_TX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 320 of file stm3210e_eval.h.

#define EVAL_COM1_TX_GPIO_PORT   GPIOA

Definition at line 319 of file stm3210e_eval.h.

#define EVAL_COM1_TX_PIN   GPIO_PIN_9 /* PA.09*/

Definition at line 318 of file stm3210e_eval.h.

#define EVAL_COM2   USART2

Definition for COM port2, connected to USART2.

Definition at line 333 of file stm3210e_eval.h.

#define EVAL_COM2_CLK_DISABLE ( )    __HAL_RCC_USART2_CLK_DISABLE()

Definition at line 335 of file stm3210e_eval.h.

#define EVAL_COM2_CLK_ENABLE ( )    __HAL_RCC_USART2_CLK_ENABLE()

Definition at line 334 of file stm3210e_eval.h.

#define EVAL_COM2_IRQn   USART2_IRQn

Definition at line 347 of file stm3210e_eval.h.

#define EVAL_COM2_RX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 345 of file stm3210e_eval.h.

#define EVAL_COM2_RX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 344 of file stm3210e_eval.h.

#define EVAL_COM2_RX_GPIO_PORT   GPIOA

Definition at line 343 of file stm3210e_eval.h.

#define EVAL_COM2_RX_PIN   GPIO_PIN_3 /* PA.03*/

Definition at line 342 of file stm3210e_eval.h.

#define EVAL_COM2_TX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 340 of file stm3210e_eval.h.

#define EVAL_COM2_TX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 339 of file stm3210e_eval.h.

#define EVAL_COM2_TX_GPIO_PORT   GPIOA

Definition at line 338 of file stm3210e_eval.h.

#define EVAL_COM2_TX_PIN   GPIO_PIN_2 /* PA.02*/

Definition at line 337 of file stm3210e_eval.h.

Generated on Thu Dec 10 2015 17:39:43 for STM3210E_EVAL BSP User Manual by   doxygen 1.7.6.1