STM32F429I-Discovery BSP User Manual: STM32F429I DISCOVERY LOW LEVEL BUS

STM32F429I-Discovery BSP Driver

STM32F429I-Discovery BSP User Manual

Defines

#define IO_I2C_ADDRESS   0x82
#define TS_I2C_ADDRESS   0x82
#define DISCOVERY_I2Cx   I2C3
#define DISCOVERY_I2Cx_CLOCK_ENABLE()   __HAL_RCC_I2C3_CLK_ENABLE()
#define DISCOVERY_I2Cx_FORCE_RESET()   __HAL_RCC_I2C3_FORCE_RESET()
#define DISCOVERY_I2Cx_RELEASE_RESET()   __HAL_RCC_I2C3_RELEASE_RESET()
#define DISCOVERY_I2Cx_SDA_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define DISCOVERY_I2Cx_SCL_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define DISCOVERY_I2Cx_SDA_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define DISCOVERY_I2Cx_SCL_PIN   GPIO_PIN_8
#define DISCOVERY_I2Cx_SCL_GPIO_PORT   GPIOA
#define DISCOVERY_I2Cx_SCL_SDA_AF   GPIO_AF4_I2C3
#define DISCOVERY_I2Cx_SDA_PIN   GPIO_PIN_9
#define DISCOVERY_I2Cx_SDA_GPIO_PORT   GPIOC
#define DISCOVERY_I2Cx_EV_IRQn   I2C3_EV_IRQn
#define DISCOVERY_I2Cx_ER_IRQn   I2C3_ER_IRQn
#define I2Cx_TIMEOUT_MAX   0x3000 /*<! The value of the maximal timeout for I2C waiting loops */
#define DISCOVERY_SPIx   SPI5
#define DISCOVERY_SPIx_CLK_ENABLE()   __HAL_RCC_SPI5_CLK_ENABLE()
#define DISCOVERY_SPIx_GPIO_PORT   GPIOF /* GPIOF */
#define DISCOVERY_SPIx_AF   GPIO_AF5_SPI5
#define DISCOVERY_SPIx_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOF_CLK_ENABLE()
#define DISCOVERY_SPIx_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOF_CLK_DISABLE()
#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_7 /* PF.07 */
#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_8 /* PF.08 */
#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_9 /* PF.09 */
#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)
#define STMPE811_INT_PIN   GPIO_PIN_15
 IOE Control pin.
#define STMPE811_INT_GPIO_PORT   GPIOA
#define STMPE811_INT_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define STMPE811_INT_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define STMPE811_INT_EXTI   EXTI15_10_IRQn
#define STMPE811_INT_EXTIHandler   EXTI15_10_IRQHandler
#define LCD_CS_LOW()   HAL_GPIO_WritePin(LCD_NCS_GPIO_PORT, LCD_NCS_PIN, GPIO_PIN_RESET)
#define LCD_CS_HIGH()   HAL_GPIO_WritePin(LCD_NCS_GPIO_PORT, LCD_NCS_PIN, GPIO_PIN_SET)
#define LCD_WRX_LOW()   HAL_GPIO_WritePin(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, GPIO_PIN_RESET)
#define LCD_WRX_HIGH()   HAL_GPIO_WritePin(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, GPIO_PIN_SET)
#define LCD_RDX_LOW()   HAL_GPIO_WritePin(LCD_RDX_GPIO_PORT, LCD_RDX_PIN, GPIO_PIN_RESET)
#define LCD_RDX_HIGH()   HAL_GPIO_WritePin(LCD_RDX_GPIO_PORT, LCD_RDX_PIN, GPIO_PIN_SET)
#define LCD_NCS_PIN   GPIO_PIN_2
 LCD Control pin.
#define LCD_NCS_GPIO_PORT   GPIOC
#define LCD_NCS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define LCD_NCS_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()

Define Documentation

#define DISCOVERY_I2Cx   I2C3

Definition at line 159 of file stm32f429i_discovery.h.

Referenced by I2Cx_Init(), and I2Cx_MspInit().

#define DISCOVERY_I2Cx_CLOCK_ENABLE ( )    __HAL_RCC_I2C3_CLK_ENABLE()

Definition at line 160 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_ER_IRQn   I2C3_ER_IRQn

Definition at line 176 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_EV_IRQn   I2C3_EV_IRQn

Definition at line 175 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_FORCE_RESET ( )    __HAL_RCC_I2C3_FORCE_RESET()

Definition at line 161 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_RELEASE_RESET ( )    __HAL_RCC_I2C3_RELEASE_RESET()

Definition at line 162 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SCL_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 164 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SCL_GPIO_PORT   GPIOA

Definition at line 169 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SCL_PIN   GPIO_PIN_8

Definition at line 168 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SCL_SDA_AF   GPIO_AF4_I2C3

Definition at line 170 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SDA_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 165 of file stm32f429i_discovery.h.

#define DISCOVERY_I2Cx_SDA_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 163 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SDA_GPIO_PORT   GPIOC

Definition at line 172 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_I2Cx_SDA_PIN   GPIO_PIN_9

Definition at line 171 of file stm32f429i_discovery.h.

Referenced by I2Cx_MspInit().

#define DISCOVERY_SPIx   SPI5

Definition at line 189 of file stm32f429i_discovery.h.

Referenced by SPIx_Init().

#define DISCOVERY_SPIx_AF   GPIO_AF5_SPI5

Definition at line 192 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_CLK_ENABLE ( )    __HAL_RCC_SPI5_CLK_ENABLE()

Definition at line 190 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOF_CLK_DISABLE()

Definition at line 194 of file stm32f429i_discovery.h.

#define DISCOVERY_SPIx_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOF_CLK_ENABLE()

Definition at line 193 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_GPIO_PORT   GPIOF /* GPIOF */

Definition at line 191 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_8 /* PF.08 */

Definition at line 196 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_9 /* PF.09 */

Definition at line 197 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_7 /* PF.07 */

Definition at line 195 of file stm32f429i_discovery.h.

Referenced by SPIx_MspInit().

#define I2Cx_TIMEOUT_MAX   0x3000 /*<! The value of the maximal timeout for I2C waiting loops */

Definition at line 186 of file stm32f429i_discovery.h.

#define LCD_CS_HIGH ( )    HAL_GPIO_WritePin(LCD_NCS_GPIO_PORT, LCD_NCS_PIN, GPIO_PIN_SET)
#define LCD_CS_LOW ( )    HAL_GPIO_WritePin(LCD_NCS_GPIO_PORT, LCD_NCS_PIN, GPIO_PIN_RESET)
#define LCD_NCS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 237 of file stm32f429i_discovery.h.

#define LCD_NCS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 236 of file stm32f429i_discovery.h.

Referenced by LCD_IO_Init().

#define LCD_NCS_GPIO_PORT   GPIOC

Definition at line 235 of file stm32f429i_discovery.h.

Referenced by LCD_IO_Init().

#define LCD_NCS_PIN   GPIO_PIN_2

LCD Control pin.

Definition at line 234 of file stm32f429i_discovery.h.

Referenced by LCD_IO_Init().

#define LCD_RDX_HIGH ( )    HAL_GPIO_WritePin(LCD_RDX_GPIO_PORT, LCD_RDX_PIN, GPIO_PIN_SET)

Definition at line 229 of file stm32f429i_discovery.h.

#define LCD_RDX_LOW ( )    HAL_GPIO_WritePin(LCD_RDX_GPIO_PORT, LCD_RDX_PIN, GPIO_PIN_RESET)

Definition at line 228 of file stm32f429i_discovery.h.

#define LCD_WRX_HIGH ( )    HAL_GPIO_WritePin(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, GPIO_PIN_SET)

Definition at line 225 of file stm32f429i_discovery.h.

Referenced by LCD_IO_ReadData(), and LCD_IO_WriteData().

#define LCD_WRX_LOW ( )    HAL_GPIO_WritePin(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, GPIO_PIN_RESET)

Definition at line 224 of file stm32f429i_discovery.h.

Referenced by LCD_IO_ReadData(), and LCD_IO_WriteReg().

#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)

Definition at line 203 of file stm32f429i_discovery.h.

#define STMPE811_INT_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 214 of file stm32f429i_discovery.h.

#define STMPE811_INT_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 213 of file stm32f429i_discovery.h.

Referenced by I2Cx_ITConfig().

#define STMPE811_INT_EXTI   EXTI15_10_IRQn

Definition at line 215 of file stm32f429i_discovery.h.

Referenced by I2Cx_ITConfig().

#define STMPE811_INT_EXTIHandler   EXTI15_10_IRQHandler

Definition at line 216 of file stm32f429i_discovery.h.

#define STMPE811_INT_GPIO_PORT   GPIOA

Definition at line 212 of file stm32f429i_discovery.h.

Referenced by I2Cx_ITConfig().

#define STMPE811_INT_PIN   GPIO_PIN_15

IOE Control pin.

Definition at line 211 of file stm32f429i_discovery.h.

Referenced by I2Cx_ITConfig().

Generated on Fri Feb 17 2017 12:10:38 for STM32F429I-Discovery BSP User Manual by   doxygen 1.7.6.1