STM32L1xx_Nucleo BSP User Manual: BUTTON Constants

STM32L100 / STM32L151 / STM32L152 / STM32L162 Nucleo BSP

STM32L1xx_Nucleo BSP User Manual
BUTTON Constants

Defines

#define BUTTONn   1
#define USER_BUTTON_PIN   GPIO_PIN_13
 User push-button.
#define USER_BUTTON_GPIO_PORT   GPIOC
#define USER_BUTTON_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOC_CLK_ENABLE()
#define USER_BUTTON_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOC_CLK_DISABLE()
#define USER_BUTTON_EXTI_IRQn   EXTI15_10_IRQn
#define KEY_BUTTON_PIN   USER_BUTTON_PIN
#define KEY_BUTTON_GPIO_PORT   USER_BUTTON_GPIO_PORT
#define KEY_BUTTON_GPIO_CLK_ENABLE()   USER_BUTTON_GPIO_CLK_ENABLE()
#define KEY_BUTTON_GPIO_CLK_DISABLE()   USER_BUTTON_GPIO_CLK_DISABLE()
#define KEY_BUTTON_EXTI_IRQn   USER_BUTTON_EXTI_IRQn
#define BUTTONx_GPIO_CLK_ENABLE(__INDEX__)   do { if((__INDEX__) == 0) USER_BUTTON_GPIO_CLK_ENABLE();} while(0)
#define BUTTONx_GPIO_CLK_DISABLE(__INDEX__)   (((__INDEX__) == 0) ? USER_BUTTON_GPIO_CLK_DISABLE() : 0)

Define Documentation

#define BUTTONn   1

Definition at line 130 of file stm32l1xx_nucleo.h.

#define BUTTONx_GPIO_CLK_DISABLE (   __INDEX__)    (((__INDEX__) == 0) ? USER_BUTTON_GPIO_CLK_DISABLE() : 0)

Definition at line 148 of file stm32l1xx_nucleo.h.

#define BUTTONx_GPIO_CLK_ENABLE (   __INDEX__)    do { if((__INDEX__) == 0) USER_BUTTON_GPIO_CLK_ENABLE();} while(0)

Definition at line 147 of file stm32l1xx_nucleo.h.

Referenced by BSP_PB_Init().

Definition at line 145 of file stm32l1xx_nucleo.h.

Definition at line 144 of file stm32l1xx_nucleo.h.

Definition at line 143 of file stm32l1xx_nucleo.h.

Definition at line 142 of file stm32l1xx_nucleo.h.

Definition at line 141 of file stm32l1xx_nucleo.h.

#define USER_BUTTON_EXTI_IRQn   EXTI15_10_IRQn

Definition at line 139 of file stm32l1xx_nucleo.h.

#define USER_BUTTON_GPIO_CLK_DISABLE ( )    __HAL_RCC_GPIOC_CLK_DISABLE()

Definition at line 138 of file stm32l1xx_nucleo.h.

#define USER_BUTTON_GPIO_CLK_ENABLE ( )    __HAL_RCC_GPIOC_CLK_ENABLE()

Definition at line 137 of file stm32l1xx_nucleo.h.

#define USER_BUTTON_GPIO_PORT   GPIOC

Definition at line 136 of file stm32l1xx_nucleo.h.

#define USER_BUTTON_PIN   GPIO_PIN_13

User push-button.

Definition at line 135 of file stm32l1xx_nucleo.h.

Generated on Sun Apr 16 2017 21:55:49 for STM32L1xx_Nucleo BSP User Manual by   doxygen 1.7.6.1