STM3210C_EVAL BSP User Manual
|
Defines | |
#define | COMn 1 |
#define | EVAL_COM1 USART2 |
Definition for COM port1, connected to USART2. | |
#define | EVAL_COM1_CLK_ENABLE() __HAL_RCC_USART2_CLK_ENABLE() |
#define | EVAL_COM1_CLK_DISABLE() __HAL_RCC_USART2_CLK_DISABLE() |
#define | AFIOCOM1_CLK_ENABLE() __HAL_RCC_AFIO_CLK_ENABLE() |
#define | AFIOCOM1_CLK_DISABLE() __HAL_RCC_AFIO_CLK_DISABLE() |
#define | EVAL_COM1_TX_PIN GPIO_PIN_5 /* PD.05*/ |
#define | EVAL_COM1_TX_GPIO_PORT GPIOD |
#define | EVAL_COM1_TX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | EVAL_COM1_TX_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | EVAL_COM1_RX_PIN GPIO_PIN_6 /* PD.06*/ |
#define | EVAL_COM1_RX_GPIO_PORT GPIOD |
#define | EVAL_COM1_RX_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | EVAL_COM1_RX_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | EVAL_COM1_IRQn USART2_IRQn |
#define | COMx_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) EVAL_COM1_CLK_ENABLE();} while(0) |
#define | COMx_CLK_DISABLE(__INDEX__) (((__INDEX__) == COM1) ? EVAL_COM1_CLK_DISABLE() : 0) |
#define | AFIOCOMx_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) AFIOCOM1_CLK_ENABLE();} while(0) |
#define | AFIOCOMx_CLK_DISABLE(__INDEX__) (((__INDEX__) == COM1) ? AFIOCOM1_CLK_DISABLE() : 0) |
#define | AFIOCOMx_REMAP(__INDEX__) (((__INDEX__) == COM1) ? (AFIO->MAPR |= (AFIO_MAPR_USART2_REMAP)) : 0) |
#define | COMx_TX_GPIO_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) EVAL_COM1_TX_GPIO_CLK_ENABLE();} while(0) |
#define | COMx_TX_GPIO_CLK_DISABLE(__INDEX__) (((__INDEX__) == COM1) ? EVAL_COM1_TX_GPIO_CLK_DISABLE() : 0) |
#define | COMx_RX_GPIO_CLK_ENABLE(__INDEX__) do { if((__INDEX__) == COM1) EVAL_COM1_RX_GPIO_CLK_ENABLE();} while(0) |
#define | COMx_RX_GPIO_CLK_DISABLE(__INDEX__) (((__INDEX__) == COM1) ? EVAL_COM1_RX_GPIO_CLK_DISABLE() : 0) |
Define Documentation
#define AFIOCOM1_CLK_DISABLE | ( | ) | __HAL_RCC_AFIO_CLK_DISABLE() |
Definition at line 266 of file stm3210c_eval.h.
#define AFIOCOM1_CLK_ENABLE | ( | ) | __HAL_RCC_AFIO_CLK_ENABLE() |
Definition at line 265 of file stm3210c_eval.h.
#define AFIOCOMx_CLK_DISABLE | ( | __INDEX__ | ) | (((__INDEX__) == COM1) ? AFIOCOM1_CLK_DISABLE() : 0) |
Definition at line 284 of file stm3210c_eval.h.
#define AFIOCOMx_CLK_ENABLE | ( | __INDEX__ | ) | do { if((__INDEX__) == COM1) AFIOCOM1_CLK_ENABLE();} while(0) |
Definition at line 283 of file stm3210c_eval.h.
Referenced by BSP_COM_Init().
#define AFIOCOMx_REMAP | ( | __INDEX__ | ) | (((__INDEX__) == COM1) ? (AFIO->MAPR |= (AFIO_MAPR_USART2_REMAP)) : 0) |
Definition at line 286 of file stm3210c_eval.h.
Referenced by BSP_COM_Init().
#define COMn 1 |
Definition at line 256 of file stm3210c_eval.h.
#define COMx_CLK_DISABLE | ( | __INDEX__ | ) | (((__INDEX__) == COM1) ? EVAL_COM1_CLK_DISABLE() : 0) |
Definition at line 281 of file stm3210c_eval.h.
#define COMx_CLK_ENABLE | ( | __INDEX__ | ) | do { if((__INDEX__) == COM1) EVAL_COM1_CLK_ENABLE();} while(0) |
Definition at line 280 of file stm3210c_eval.h.
Referenced by BSP_COM_Init().
#define COMx_RX_GPIO_CLK_DISABLE | ( | __INDEX__ | ) | (((__INDEX__) == COM1) ? EVAL_COM1_RX_GPIO_CLK_DISABLE() : 0) |
Definition at line 292 of file stm3210c_eval.h.
#define COMx_RX_GPIO_CLK_ENABLE | ( | __INDEX__ | ) | do { if((__INDEX__) == COM1) EVAL_COM1_RX_GPIO_CLK_ENABLE();} while(0) |
Definition at line 291 of file stm3210c_eval.h.
Referenced by BSP_COM_Init().
#define COMx_TX_GPIO_CLK_DISABLE | ( | __INDEX__ | ) | (((__INDEX__) == COM1) ? EVAL_COM1_TX_GPIO_CLK_DISABLE() : 0) |
Definition at line 289 of file stm3210c_eval.h.
#define COMx_TX_GPIO_CLK_ENABLE | ( | __INDEX__ | ) | do { if((__INDEX__) == COM1) EVAL_COM1_TX_GPIO_CLK_ENABLE();} while(0) |
Definition at line 288 of file stm3210c_eval.h.
Referenced by BSP_COM_Init().
#define EVAL_COM1 USART2 |
Definition for COM port1, connected to USART2.
Definition at line 261 of file stm3210c_eval.h.
#define EVAL_COM1_CLK_DISABLE | ( | ) | __HAL_RCC_USART2_CLK_DISABLE() |
Definition at line 263 of file stm3210c_eval.h.
#define EVAL_COM1_CLK_ENABLE | ( | ) | __HAL_RCC_USART2_CLK_ENABLE() |
Definition at line 262 of file stm3210c_eval.h.
#define EVAL_COM1_IRQn USART2_IRQn |
Definition at line 278 of file stm3210c_eval.h.
#define EVAL_COM1_RX_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 276 of file stm3210c_eval.h.
#define EVAL_COM1_RX_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 275 of file stm3210c_eval.h.
#define EVAL_COM1_RX_GPIO_PORT GPIOD |
Definition at line 274 of file stm3210c_eval.h.
#define EVAL_COM1_RX_PIN GPIO_PIN_6 /* PD.06*/ |
Definition at line 273 of file stm3210c_eval.h.
#define EVAL_COM1_TX_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 271 of file stm3210c_eval.h.
#define EVAL_COM1_TX_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 270 of file stm3210c_eval.h.
#define EVAL_COM1_TX_GPIO_PORT GPIOD |
Definition at line 269 of file stm3210c_eval.h.
#define EVAL_COM1_TX_PIN GPIO_PIN_5 /* PD.05*/ |
Definition at line 268 of file stm3210c_eval.h.
Generated on Fri Apr 14 2017 13:00:47 for STM3210C_EVAL BSP User Manual by 1.7.6.1