STM32L0538-Discovery BSP User Manual: STM32L0538_DISCOVERY_LOW_LEVEL_Exported_Constants

STM32L0538-Discovery BSP Drivers

STM32L0538-Discovery BSP User Manual
STM32L0538_DISCOVERY_LOW_LEVEL_Exported_Constants

Modules

 STM32L0538_DISCOVERY_LOW_LEVEL_LED
 

Define for STM32L0538_DISCO board.

 STM32L0538_DISCOVERY_LOW_LEVEL_BUTTON

Defines

#define DISCOVERY_SPIx   SPI1
#define DISCOVERY_SPIx_CLK_ENABLE()   __HAL_RCC_SPI1_CLK_ENABLE()
#define DISCOVERY_SPIx_GPIO_PORT   GPIOB /* GPIOB */
#define DISCOVERY_SPIx_AF   GPIO_AF0_SPI1
#define DISCOVERY_SPIx_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define DISCOVERY_SPIx_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_3 /* PB.03 */
#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_4 /* PB.04 */
#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_5 /* PB.05 */
#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)
#define EPD_CS_LOW()   HAL_GPIO_WritePin(EPD_CS_GPIO_PORT, EPD_CS_PIN, GPIO_PIN_RESET)
#define EPD_CS_HIGH()   HAL_GPIO_WritePin(EPD_CS_GPIO_PORT, EPD_CS_PIN, GPIO_PIN_SET)
#define EPD_DC_LOW()   HAL_GPIO_WritePin(EPD_DC_GPIO_PORT, EPD_DC_PIN, GPIO_PIN_RESET)
#define EPD_DC_HIGH()   HAL_GPIO_WritePin(EPD_DC_GPIO_PORT, EPD_DC_PIN, GPIO_PIN_SET)
#define EPD_RESET_LOW()   HAL_GPIO_WritePin(EPD_RESET_GPIO_PORT, EPD_RESET_PIN, GPIO_PIN_RESET)
#define EPD_RESET_HIGH()   HAL_GPIO_WritePin(EPD_RESET_GPIO_PORT, EPD_RESET_PIN, GPIO_PIN_SET)
#define EPD_PWR_LOW()   HAL_GPIO_WritePin(EPD_PWR_GPIO_PORT, EPD_PWR_PIN, GPIO_PIN_RESET)
#define EPD_PWR_HIGH()   HAL_GPIO_WritePin(EPD_PWR_GPIO_PORT, EPD_PWR_PIN, GPIO_PIN_SET)
#define EPD_CS_PIN   GPIO_PIN_15
 EPD Control pin.
#define EPD_CS_GPIO_PORT   GPIOA
#define EPD_CS_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EPD_CS_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EPD_DC_PIN   GPIO_PIN_11
 EPD Command/data pin.
#define EPD_DC_GPIO_PORT   GPIOB
#define EPD_DC_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define EPD_DC_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define EPD_RESET_PIN   GPIO_PIN_2
 EPD Reset pin.
#define EPD_RESET_GPIO_PORT   GPIOB
#define EPD_RESET_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define EPD_RESET_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()
#define EPD_BUSY_PIN   GPIO_PIN_8
 EPD Busy pin.
#define EPD_BUSY_GPIO_PORT   GPIOA
#define EPD_BUSY_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOA_CLK_ENABLE()
#define EPD_BUSY_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOA_CLK_DISABLE()
#define EPD_PWR_PIN   GPIO_PIN_10
 EPD PWR pin.
#define EPD_PWR_GPIO_PORT   GPIOB
#define EPD_PWR_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOB_CLK_ENABLE()
#define EPD_PWR_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOB_CLK_DISABLE()

Define Documentation

#define DISCOVERY_SPIx   SPI1

Definition at line 139 of file stm32l0538_discovery.h.

Referenced by SPIx_Init().

#define DISCOVERY_SPIx_AF   GPIO_AF0_SPI1

Definition at line 142 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_CLK_ENABLE ( )    __HAL_RCC_SPI1_CLK_ENABLE()

Definition at line 140 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 145 of file stm32l0538_discovery.h.

#define DISCOVERY_SPIx_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 144 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_GPIO_PORT   GPIOB /* GPIOB */

Definition at line 141 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_MISO_PIN   GPIO_PIN_4 /* PB.04 */

Definition at line 148 of file stm32l0538_discovery.h.

#define DISCOVERY_SPIx_MOSI_PIN   GPIO_PIN_5 /* PB.05 */

Definition at line 149 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define DISCOVERY_SPIx_SCK_PIN   GPIO_PIN_3 /* PB.03 */

Definition at line 147 of file stm32l0538_discovery.h.

Referenced by SPIx_MspInit().

#define EPD_BUSY_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 205 of file stm32l0538_discovery.h.

#define EPD_BUSY_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 204 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_BUSY_GPIO_PORT   GPIOA

Definition at line 203 of file stm32l0538_discovery.h.

Referenced by BSP_EPD_RefreshDisplay(), and EPD_IO_Init().

#define EPD_BUSY_PIN   GPIO_PIN_8

EPD Busy pin.

Definition at line 202 of file stm32l0538_discovery.h.

Referenced by BSP_EPD_RefreshDisplay(), and EPD_IO_Init().

#define EPD_CS_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOA_CLK_DISABLE()

Definition at line 181 of file stm32l0538_discovery.h.

#define EPD_CS_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOA_CLK_ENABLE()

Definition at line 180 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_CS_GPIO_PORT   GPIOA

Definition at line 179 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_CS_HIGH ( )    HAL_GPIO_WritePin(EPD_CS_GPIO_PORT, EPD_CS_PIN, GPIO_PIN_SET)
#define EPD_CS_LOW ( )    HAL_GPIO_WritePin(EPD_CS_GPIO_PORT, EPD_CS_PIN, GPIO_PIN_RESET)
#define EPD_CS_PIN   GPIO_PIN_15

EPD Control pin.

Definition at line 178 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_DC_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 189 of file stm32l0538_discovery.h.

#define EPD_DC_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 188 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_DC_GPIO_PORT   GPIOB

Definition at line 187 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_DC_HIGH ( )    HAL_GPIO_WritePin(EPD_DC_GPIO_PORT, EPD_DC_PIN, GPIO_PIN_SET)

Definition at line 165 of file stm32l0538_discovery.h.

Referenced by EPD_IO_WriteData().

#define EPD_DC_LOW ( )    HAL_GPIO_WritePin(EPD_DC_GPIO_PORT, EPD_DC_PIN, GPIO_PIN_RESET)

Definition at line 164 of file stm32l0538_discovery.h.

Referenced by EPD_IO_WriteReg().

#define EPD_DC_PIN   GPIO_PIN_11

EPD Command/data pin.

Definition at line 186 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_PWR_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 213 of file stm32l0538_discovery.h.

#define EPD_PWR_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 212 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_PWR_GPIO_PORT   GPIOB

Definition at line 211 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_PWR_HIGH ( )    HAL_GPIO_WritePin(EPD_PWR_GPIO_PORT, EPD_PWR_PIN, GPIO_PIN_SET)

Definition at line 173 of file stm32l0538_discovery.h.

#define EPD_PWR_LOW ( )    HAL_GPIO_WritePin(EPD_PWR_GPIO_PORT, EPD_PWR_PIN, GPIO_PIN_RESET)

Definition at line 172 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_PWR_PIN   GPIO_PIN_10

EPD PWR pin.

Definition at line 210 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_RESET_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOB_CLK_DISABLE()

Definition at line 197 of file stm32l0538_discovery.h.

#define EPD_RESET_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOB_CLK_ENABLE()

Definition at line 196 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_RESET_GPIO_PORT   GPIOB

Definition at line 195 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define EPD_RESET_HIGH ( )    HAL_GPIO_WritePin(EPD_RESET_GPIO_PORT, EPD_RESET_PIN, GPIO_PIN_SET)

Definition at line 169 of file stm32l0538_discovery.h.

Referenced by BSP_EPD_RefreshDisplay(), and EPD_IO_Init().

#define EPD_RESET_LOW ( )    HAL_GPIO_WritePin(EPD_RESET_GPIO_PORT, EPD_RESET_PIN, GPIO_PIN_RESET)

Definition at line 168 of file stm32l0538_discovery.h.

#define EPD_RESET_PIN   GPIO_PIN_2

EPD Reset pin.

Definition at line 194 of file stm32l0538_discovery.h.

Referenced by EPD_IO_Init().

#define SPIx_TIMEOUT_MAX   ((uint32_t)0x1000)

Definition at line 156 of file stm32l0538_discovery.h.

Referenced by SPIx_Read(), and SPIx_Write().

Generated on Mon Aug 28 2017 14:51:54 for STM32L0538-Discovery BSP User Manual by   doxygen 1.7.6.1