STM32303C_EVAL BSP User Manual: STM32303C-EVAL COM

STM32303C EVAL BSP Drivers

STM32303C_EVAL BSP User Manual
STM32303C-EVAL COM

Defines

#define COMn   1
#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_4
#define EVAL_COM1_TX_GPIO_PORT   GPIOC
#define EVAL_COM1_TX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define EVAL_COM1_TX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define EVAL_COM1_TX_AF   GPIO_AF7_USART1
#define EVAL_COM1_RX_PIN   GPIO_PIN_1
#define EVAL_COM1_RX_GPIO_PORT   GPIOE
#define EVAL_COM1_RX_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOE_CLK_ENABLE()
#define EVAL_COM1_RX_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOE_CLK_DISABLE()
#define EVAL_COM1_RX_AF   GPIO_AF7_USART1
#define EVAL_COM1_IRQn   USART1_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 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 EVAL_I2Cx_SCL_PIN   GPIO_PIN_6
#define EVAL_I2Cx_SCL_GPIO_PORT   GPIOF
#define EVAL_I2Cx_SDA_PIN   GPIO_PIN_10
#define EVAL_I2Cx_SDA_GPIO_PORT   GPIOA
#define EVAL_I2Cx_SCL_SDA_AF   GPIO_AF4_I2C2
#define EVAL_I2Cx   I2C2
#define EVAL_I2Cx_CLK_ENABLE()   __HAL_RCC_I2C2_CLK_ENABLE()
#define EVAL_I2Cx_SDA_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EVAL_I2Cx_SCL_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define EVAL_I2Cx_FORCE_RESET()   __HAL_RCC_I2C2_FORCE_RESET()
#define EVAL_I2Cx_RELEASE_RESET()   __HAL_RCC_I2C2_RELEASE_RESET()
#define EVAL_I2Cx_EV_IRQn   I2C2_EV_IRQn
#define EVAL_I2Cx_EV_IRQHandler   I2C2_EV_IRQHandler
#define EVAL_I2Cx_ER_IRQn   I2C2_ER_IRQn
#define EVAL_I2Cx_ER_IRQHandler   I2C2_ER_IRQHandler
#define EVAL_I2Cx_TIMEOUT_MAX   1000
#define EVAL_SPIx   SPI2
 Definition for SPI Interface pins (SPI2 used)
#define EVAL_SPIx_CLK_ENABLE()   __HAL_RCC_SPI2_CLK_ENABLE()
#define EVAL_SPIx_CLK_DISABLE()   __HAL_RCC_SPI2_CLK_DISABLE()
#define EVAL_SPIx_FORCE_RESET()   __HAL_RCC_SPI2_FORCE_RESET()
#define EVAL_SPIx_RELEASE_RESET()   __HAL_RCC_SPI2_RELEASE_RESET()
#define EVAL_SPIx_SCK_AF   GPIO_AF5_SPI2
#define EVAL_SPIx_SCK_GPIO_PORT   GPIOF
#define EVAL_SPIx_SCK_PIN   GPIO_PIN_9
#define EVAL_SPIx_SCK_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define EVAL_SPIx_SCK_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOF_CLK_DISABLE()
#define EVAL_SPIx_MISO_MOSI_AF   GPIO_AF5_SPI2
#define EVAL_SPIx_MISO_MOSI_GPIO_PORT   GPIOB
#define EVAL_SPIx_MISO_MOSI_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define EVAL_SPIx_MISO_MOSI_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define EVAL_SPIx_MISO_PIN   GPIO_PIN_14
#define EVAL_SPIx_MOSI_PIN   GPIO_PIN_15
#define EVAL_SPIx_TIMEOUT_MAX   1000

Define Documentation

#define COMn   1

Definition at line 291 of file stm32303c_eval.h.

#define COMx_CLK_DISABLE (   __INDEX__)    (((__INDEX__) == COM1) ? EVAL_COM1_CLK_DISABLE() : 0)

Definition at line 315 of file stm32303c_eval.h.

#define COMx_CLK_ENABLE (   __INDEX__)    do { if ((__INDEX__) == COM1) EVAL_COM1_CLK_ENABLE();} while(0)

Definition at line 314 of file stm32303c_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 321 of file stm32303c_eval.h.

#define COMx_RX_GPIO_CLK_ENABLE (   __INDEX__)    do { if ((__INDEX__) == COM1) EVAL_COM1_RX_GPIO_CLK_ENABLE();} while(0)

Definition at line 320 of file stm32303c_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 318 of file stm32303c_eval.h.

#define COMx_TX_GPIO_CLK_ENABLE (   __INDEX__)    do { if ((__INDEX__) == COM1) EVAL_COM1_TX_GPIO_CLK_ENABLE();} while(0)

Definition at line 317 of file stm32303c_eval.h.

Referenced by BSP_COM_Init().

#define EVAL_COM1   USART1

Definition for COM port1, connected to USART1.

Definition at line 296 of file stm32303c_eval.h.

#define EVAL_COM1_CLK_DISABLE ( )    __HAL_RCC_USART1_CLK_DISABLE()

Definition at line 298 of file stm32303c_eval.h.

#define EVAL_COM1_CLK_ENABLE ( )    __HAL_RCC_USART1_CLK_ENABLE()

Definition at line 297 of file stm32303c_eval.h.

#define EVAL_COM1_IRQn   USART1_IRQn

Definition at line 312 of file stm32303c_eval.h.

#define EVAL_COM1_RX_AF   GPIO_AF7_USART1

Definition at line 310 of file stm32303c_eval.h.

#define EVAL_COM1_RX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOE_CLK_DISABLE()

Definition at line 309 of file stm32303c_eval.h.

#define EVAL_COM1_RX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOE_CLK_ENABLE()

Definition at line 308 of file stm32303c_eval.h.

#define EVAL_COM1_RX_GPIO_PORT   GPIOE

Definition at line 307 of file stm32303c_eval.h.

#define EVAL_COM1_RX_PIN   GPIO_PIN_1

Definition at line 306 of file stm32303c_eval.h.

#define EVAL_COM1_TX_AF   GPIO_AF7_USART1

Definition at line 304 of file stm32303c_eval.h.

#define EVAL_COM1_TX_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 303 of file stm32303c_eval.h.

#define EVAL_COM1_TX_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 302 of file stm32303c_eval.h.

#define EVAL_COM1_TX_GPIO_PORT   GPIOC

Definition at line 301 of file stm32303c_eval.h.

#define EVAL_COM1_TX_PIN   GPIO_PIN_4

Definition at line 300 of file stm32303c_eval.h.

#define EVAL_I2Cx   I2C2

Definition at line 337 of file stm32303c_eval.h.

Referenced by I2Cx_Init(), and I2Cx_MspInit().

#define EVAL_I2Cx_CLK_ENABLE ( )    __HAL_RCC_I2C2_CLK_ENABLE()

Definition at line 338 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_ER_IRQHandler   I2C2_ER_IRQHandler

Definition at line 349 of file stm32303c_eval.h.

#define EVAL_I2Cx_ER_IRQn   I2C2_ER_IRQn

Definition at line 348 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_EV_IRQHandler   I2C2_EV_IRQHandler

Definition at line 347 of file stm32303c_eval.h.

#define EVAL_I2Cx_EV_IRQn   I2C2_EV_IRQn

Definition at line 346 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_FORCE_RESET ( )    __HAL_RCC_I2C2_FORCE_RESET()

Definition at line 342 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_RELEASE_RESET ( )    __HAL_RCC_I2C2_RELEASE_RESET()

Definition at line 343 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SCL_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 340 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SCL_GPIO_PORT   GPIOF

Definition at line 331 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SCL_PIN   GPIO_PIN_6

Definition at line 330 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SCL_SDA_AF   GPIO_AF4_I2C2

Definition at line 334 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SDA_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 339 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SDA_GPIO_PORT   GPIOA

Definition at line 333 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_SDA_PIN   GPIO_PIN_10

Definition at line 332 of file stm32303c_eval.h.

Referenced by I2Cx_MspInit().

#define EVAL_I2Cx_TIMEOUT_MAX   1000

Definition at line 363 of file stm32303c_eval.h.

#define EVAL_SPIx   SPI2

Definition for SPI Interface pins (SPI2 used)

Definition at line 371 of file stm32303c_eval.h.

Referenced by SPIx_Init().

#define EVAL_SPIx_CLK_DISABLE ( )    __HAL_RCC_SPI2_CLK_DISABLE()

Definition at line 373 of file stm32303c_eval.h.

#define EVAL_SPIx_CLK_ENABLE ( )    __HAL_RCC_SPI2_CLK_ENABLE()

Definition at line 372 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_FORCE_RESET ( )    __HAL_RCC_SPI2_FORCE_RESET()

Definition at line 374 of file stm32303c_eval.h.

#define EVAL_SPIx_MISO_MOSI_AF   GPIO_AF5_SPI2

Definition at line 383 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_MISO_MOSI_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 386 of file stm32303c_eval.h.

#define EVAL_SPIx_MISO_MOSI_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 385 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_MISO_MOSI_GPIO_PORT   GPIOB

Definition at line 384 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_MISO_PIN   GPIO_PIN_14

Definition at line 387 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_MOSI_PIN   GPIO_PIN_15

Definition at line 388 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_RELEASE_RESET ( )    __HAL_RCC_SPI2_RELEASE_RESET()

Definition at line 375 of file stm32303c_eval.h.

#define EVAL_SPIx_SCK_AF   GPIO_AF5_SPI2

Definition at line 377 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_SCK_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOF_CLK_DISABLE()

Definition at line 381 of file stm32303c_eval.h.

#define EVAL_SPIx_SCK_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 380 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_SCK_GPIO_PORT   GPIOF

Definition at line 378 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_SCK_PIN   GPIO_PIN_9

Definition at line 379 of file stm32303c_eval.h.

Referenced by SPIx_MspInit().

#define EVAL_SPIx_TIMEOUT_MAX   1000

Definition at line 395 of file stm32303c_eval.h.

Generated on Wed May 31 2017 10:00:44 for STM32303C_EVAL BSP User Manual by   doxygen 1.7.6.1