STM32L476G-Discovery BSP User Manual
|
Defines | |
#define | JOYn 5 |
#define | RIGHT_JOY_PIN GPIO_PIN_2 /* PA.02 */ |
Joystick Right push-button. | |
#define | RIGHT_JOY_GPIO_PORT GPIOA |
#define | RIGHT_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | RIGHT_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | RIGHT_JOY_EXTI_IRQn EXTI2_IRQn |
#define | LEFT_JOY_PIN GPIO_PIN_1 /* PA.01 */ |
Joystick Left push-button. | |
#define | LEFT_JOY_GPIO_PORT GPIOA |
#define | LEFT_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | LEFT_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | LEFT_JOY_EXTI_IRQn EXTI1_IRQn |
#define | UP_JOY_PIN GPIO_PIN_3 /* PA.03 */ |
Joystick Up push-button. | |
#define | UP_JOY_GPIO_PORT GPIOA |
#define | UP_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | UP_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | UP_JOY_EXTI_IRQn EXTI3_IRQn |
#define | DOWN_JOY_PIN GPIO_PIN_5 /* PA.05 */ |
Joystick Down push-button. | |
#define | DOWN_JOY_GPIO_PORT GPIOA |
#define | DOWN_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | DOWN_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | DOWN_JOY_EXTI_IRQn EXTI9_5_IRQn |
#define | SEL_JOY_PIN GPIO_PIN_0 /* PA.00 */ |
Joystick Sel push-button. | |
#define | SEL_JOY_GPIO_PORT GPIOA |
#define | SEL_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOA_CLK_ENABLE() |
#define | SEL_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOA_CLK_DISABLE() |
#define | SEL_JOY_EXTI_IRQn EXTI0_IRQn |
#define | JOYx_GPIO_CLK_ENABLE(__JOY__) |
#define | JOYx_GPIO_CLK_DISABLE(__JOY__) |
#define | JOY_ALL_PINS (RIGHT_JOY_PIN | LEFT_JOY_PIN | UP_JOY_PIN | DOWN_JOY_PIN | SEL_JOY_PIN) |
Define Documentation
#define DOWN_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 223 of file stm32l476g_discovery.h.
#define DOWN_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 222 of file stm32l476g_discovery.h.
#define DOWN_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 221 of file stm32l476g_discovery.h.
#define DOWN_JOY_GPIO_PORT GPIOA |
Definition at line 220 of file stm32l476g_discovery.h.
#define DOWN_JOY_PIN GPIO_PIN_5 /* PA.05 */ |
Joystick Down push-button.
Definition at line 219 of file stm32l476g_discovery.h.
#define JOY_ALL_PINS (RIGHT_JOY_PIN | LEFT_JOY_PIN | UP_JOY_PIN | DOWN_JOY_PIN | SEL_JOY_PIN) |
Definition at line 246 of file stm32l476g_discovery.h.
#define JOYn 5 |
Definition at line 187 of file stm32l476g_discovery.h.
Referenced by BSP_JOY_DeInit(), BSP_JOY_GetState(), and BSP_JOY_Init().
#define JOYx_GPIO_CLK_DISABLE | ( | __JOY__ | ) |
do { if((__JOY__) == JOY_SEL) { SEL_JOY_GPIO_CLK_DISABLE(); } else \ if((__JOY__) == JOY_DOWN) { DOWN_JOY_GPIO_CLK_DISABLE(); } else \ if((__JOY__) == JOY_LEFT) { LEFT_JOY_GPIO_CLK_DISABLE(); } else \ if((__JOY__) == JOY_RIGHT) { RIGHT_JOY_GPIO_CLK_DISABLE(); } else \ if((__JOY__) == JOY_UP) { UP_JOY_GPIO_CLK_DISABLE(); } } while(0)
Definition at line 240 of file stm32l476g_discovery.h.
#define JOYx_GPIO_CLK_ENABLE | ( | __JOY__ | ) |
do { if((__JOY__) == JOY_SEL) { SEL_JOY_GPIO_CLK_ENABLE(); } else \ if((__JOY__) == JOY_DOWN) { DOWN_JOY_GPIO_CLK_ENABLE(); } else \ if((__JOY__) == JOY_LEFT) { LEFT_JOY_GPIO_CLK_ENABLE(); } else \ if((__JOY__) == JOY_RIGHT) { RIGHT_JOY_GPIO_CLK_ENABLE(); } else \ if((__JOY__) == JOY_UP) { UP_JOY_GPIO_CLK_ENABLE(); } } while(0)
Definition at line 234 of file stm32l476g_discovery.h.
Referenced by BSP_JOY_DeInit(), and BSP_JOY_Init().
#define LEFT_JOY_EXTI_IRQn EXTI1_IRQn |
Definition at line 205 of file stm32l476g_discovery.h.
#define LEFT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 204 of file stm32l476g_discovery.h.
#define LEFT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 203 of file stm32l476g_discovery.h.
#define LEFT_JOY_GPIO_PORT GPIOA |
Definition at line 202 of file stm32l476g_discovery.h.
#define LEFT_JOY_PIN GPIO_PIN_1 /* PA.01 */ |
Joystick Left push-button.
Definition at line 201 of file stm32l476g_discovery.h.
#define RIGHT_JOY_EXTI_IRQn EXTI2_IRQn |
Definition at line 196 of file stm32l476g_discovery.h.
#define RIGHT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 195 of file stm32l476g_discovery.h.
#define RIGHT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 194 of file stm32l476g_discovery.h.
#define RIGHT_JOY_GPIO_PORT GPIOA |
Definition at line 193 of file stm32l476g_discovery.h.
#define RIGHT_JOY_PIN GPIO_PIN_2 /* PA.02 */ |
Joystick Right push-button.
Definition at line 192 of file stm32l476g_discovery.h.
#define SEL_JOY_EXTI_IRQn EXTI0_IRQn |
Definition at line 232 of file stm32l476g_discovery.h.
#define SEL_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 231 of file stm32l476g_discovery.h.
#define SEL_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 230 of file stm32l476g_discovery.h.
#define SEL_JOY_GPIO_PORT GPIOA |
Definition at line 229 of file stm32l476g_discovery.h.
#define SEL_JOY_PIN GPIO_PIN_0 /* PA.00 */ |
Joystick Sel push-button.
Definition at line 228 of file stm32l476g_discovery.h.
#define UP_JOY_EXTI_IRQn EXTI3_IRQn |
Definition at line 214 of file stm32l476g_discovery.h.
#define UP_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOA_CLK_DISABLE() |
Definition at line 213 of file stm32l476g_discovery.h.
#define UP_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOA_CLK_ENABLE() |
Definition at line 212 of file stm32l476g_discovery.h.
#define UP_JOY_GPIO_PORT GPIOA |
Definition at line 211 of file stm32l476g_discovery.h.
#define UP_JOY_PIN GPIO_PIN_3 /* PA.03 */ |
Joystick Up push-button.
Definition at line 210 of file stm32l476g_discovery.h.
Generated on Tue Jun 23 2015 17:15:45 for STM32L476G-Discovery BSP User Manual by 1.7.6.1