- /** @addtogroup STM32373C_EVAL_LOW_LEVEL_COM
- * @{
- */
- #define COMn 1
- /**
- * @brief Definition for COM port1, connected to USART1
- */
- #define EVAL_COM1 USART1
- #define EVAL_COM1_CLK RCC_APB2Periph_USART1
- #define EVAL_COM1_TX_PIN GPIO_Pin_6
- #define EVAL_COM1_TX_GPIO_PORT GPIOB
- #define EVAL_COM1_TX_GPIO_CLK RCC_AHBPeriph_GPIOB
- #define EVAL_COM1_TX_SOURCE GPIO_PinSource6
- #define EVAL_COM1_TX_AF GPIO_AF_7
- #define EVAL_COM1_RX_PIN GPIO_Pin_7
- #define EVAL_COM1_RX_GPIO_PORT GPIOB
- #define EVAL_COM1_RX_GPIO_CLK RCC_AHBPeriph_GPIOB
- #define EVAL_COM1_RX_SOURCE GPIO_PinSource7
- #define EVAL_COM1_RX_AF GPIO_AF_7
- #define EVAL_COM1_CTS_PIN GPIO_Pin_3
- #define EVAL_COM1_CTS_GPIO_PORT GPIOD
- #define EVAL_COM1_CTS_GPIO_CLK RCC_AHBPeriph_GPIOD
- #define EVAL_COM1_CTS_SOURCE GPIO_PinSource3
- #define EVAL_COM1_CTS_AF GPIO_AF_7
- #define EVAL_COM1_RTS_PIN GPIO_Pin_4
- #define EVAL_COM1_RTS_GPIO_PORT GPIOD
- #define EVAL_COM1_RTS_GPIO_CLK RCC_AHBPeriph_GPIOD
- #define EVAL_COM1_RTS_SOURCE GPIO_PinSource4
- #define EVAL_COM1_RTS_AF GPIO_AF_7
- #define EVAL_COM1_DRE_PIN GPIO_Pin_8
- #define EVAL_COM1_DRE_GPIO_PORT GPIOB
- #define EVAL_COM1_DRE_GPIO_CLK RCC_AHBPeriph_GPIOB
- #define EVAL_COM1_DRE_SOURCE GPIO_PinSource8
- #define EVAL_COM1_DRE_AF GPIO_AF_8
-
- #define EVAL_COM1_IRQn USART1_IRQn
|