STM32303E_EVAL BSP User Manual
|
Defines | |
#define | JOYn 5 |
#define | BUTTONn 1 + JOYn |
#define | KEY_BUTTON_PIN GPIO_PIN_6 |
Key push-button. | |
#define | KEY_BUTTON_GPIO_PORT GPIOE |
#define | KEY_BUTTON_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | KEY_BUTTON_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | KEY_BUTTON_EXTI_IRQn EXTI9_5_IRQn |
#define | RIGHT_JOY_PIN GPIO_PIN_6 |
Joystick Right push-button. | |
#define | RIGHT_JOY_GPIO_PORT GPIOD |
#define | RIGHT_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | RIGHT_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | RIGHT_JOY_EXTI_IRQn EXTI9_5_IRQn |
#define | LEFT_JOY_PIN GPIO_PIN_5 |
Joystick Left push-button. | |
#define | LEFT_JOY_GPIO_PORT GPIOB |
#define | LEFT_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOB_CLK_ENABLE() |
#define | LEFT_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOB_CLK_DISABLE() |
#define | LEFT_JOY_EXTI_IRQn EXTI9_5_IRQn |
#define | UP_JOY_PIN GPIO_PIN_7 |
Joystick Up push-button. | |
#define | UP_JOY_GPIO_PORT GPIOE |
#define | UP_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOE_CLK_ENABLE() |
#define | UP_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOE_CLK_DISABLE() |
#define | UP_JOY_EXTI_IRQn EXTI9_5_IRQn |
#define | DOWN_JOY_PIN GPIO_PIN_5 |
Joystick Down push-button. | |
#define | DOWN_JOY_GPIO_PORT GPIOD |
#define | DOWN_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOD_CLK_ENABLE() |
#define | DOWN_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOD_CLK_DISABLE() |
#define | DOWN_JOY_EXTI_IRQn EXTI9_5_IRQn |
#define | SEL_JOY_PIN GPIO_PIN_13 |
Joystick Sel push-button. | |
#define | SEL_JOY_GPIO_PORT GPIOC |
#define | SEL_JOY_GPIO_CLK_ENABLE() __HAL_RCC_GPIOC_CLK_ENABLE() |
#define | SEL_JOY_GPIO_CLK_DISABLE() __HAL_RCC_GPIOC_CLK_DISABLE() |
#define | SEL_JOY_EXTI_IRQn EXTI15_10_IRQn |
#define | BUTTONx_GPIO_CLK_ENABLE(__BUTTON__) |
#define | BUTTONx_GPIO_CLK_DISABLE(__BUTTON__) |
#define | JOYx_GPIO_CLK_ENABLE(__JOY__) |
#define | JOYx_GPIO_CLK_DISABLE(__JOY__) |
Define Documentation
Definition at line 205 of file stm32303e_eval.h.
#define BUTTONx_GPIO_CLK_DISABLE | ( | __BUTTON__ | ) |
(((__BUTTON__) == BUTTON_KEY) ? KEY_BUTTON_GPIO_CLK_DISABLE() :\ ((__BUTTON__) == BUTTON_SEL) ? SEL_JOY_GPIO_CLK_DISABLE() :\ ((__BUTTON__) == BUTTON_LEFT) ? LEFT_JOY_GPIO_CLK_DISABLE() :\ ((__BUTTON__) == BUTTON_RIGHT) ? RIGHT_JOY_GPIO_CLK_DISABLE() :\ ((__BUTTON__) == BUTTON_DOWN) ? DOWN_JOY_GPIO_CLK_DISABLE() :\ ((__BUTTON__) == BUTTON_UP) ? UP_JOY_GPIO_CLK_DISABLE() : 0 )
Definition at line 268 of file stm32303e_eval.h.
#define BUTTONx_GPIO_CLK_ENABLE | ( | __BUTTON__ | ) |
do { if ((__BUTTON__) == BUTTON_KEY) KEY_BUTTON_GPIO_CLK_ENABLE(); else\ if ((__BUTTON__) == BUTTON_SEL) SEL_JOY_GPIO_CLK_ENABLE(); else\ if ((__BUTTON__) == BUTTON_LEFT) LEFT_JOY_GPIO_CLK_ENABLE(); else\ if ((__BUTTON__) == BUTTON_RIGHT) RIGHT_JOY_GPIO_CLK_ENABLE(); else\ if ((__BUTTON__) == BUTTON_DOWN) DOWN_JOY_GPIO_CLK_ENABLE(); else\ if ((__BUTTON__) == BUTTON_UP) UP_JOY_GPIO_CLK_ENABLE();} while(0)
Definition at line 261 of file stm32303e_eval.h.
Referenced by BSP_PB_Init().
#define DOWN_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 250 of file stm32303e_eval.h.
#define DOWN_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 249 of file stm32303e_eval.h.
#define DOWN_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 248 of file stm32303e_eval.h.
#define DOWN_JOY_GPIO_PORT GPIOD |
Definition at line 247 of file stm32303e_eval.h.
#define DOWN_JOY_PIN GPIO_PIN_5 |
Joystick Down push-button.
Definition at line 246 of file stm32303e_eval.h.
#define JOYn 5 |
Definition at line 204 of file stm32303e_eval.h.
Referenced by BSP_JOY_GetState(), and BSP_JOY_Init().
#define JOYx_GPIO_CLK_DISABLE | ( | __JOY__ | ) |
(((__JOY__) == JOY_SEL) ? SEL_JOY_GPIO_CLK_DISABLE() :\ ((__JOY__) == JOY_LEFT) ? LEFT_JOY_GPIO_CLK_DISABLE() :\ ((__JOY__) == JOY_RIGHT) ? RIGHT_JOY_GPIO_CLK_DISABLE() :\ ((__JOY__) == JOY_DOWN) ? DOWN_JOY_GPIO_CLK_DISABLE() :\ ((__JOY__) == JOY_UP) ? UP_JOY_GPIO_CLK_DISABLE() : 0 )
Definition at line 281 of file stm32303e_eval.h.
#define JOYx_GPIO_CLK_ENABLE | ( | __JOY__ | ) |
do { if ((__JOY__) == JOY_SEL) SEL_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_DOWN) DOWN_JOY_GPIO_CLK_ENABLE(); else\ if ((__JOY__) == JOY_UP) UP_JOY_GPIO_CLK_ENABLE();} while(0)
Definition at line 275 of file stm32303e_eval.h.
Referenced by BSP_JOY_Init().
#define KEY_BUTTON_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 214 of file stm32303e_eval.h.
#define KEY_BUTTON_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 213 of file stm32303e_eval.h.
#define KEY_BUTTON_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 212 of file stm32303e_eval.h.
#define KEY_BUTTON_GPIO_PORT GPIOE |
Definition at line 211 of file stm32303e_eval.h.
#define KEY_BUTTON_PIN GPIO_PIN_6 |
Key push-button.
Definition at line 210 of file stm32303e_eval.h.
#define LEFT_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 232 of file stm32303e_eval.h.
#define LEFT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 231 of file stm32303e_eval.h.
#define LEFT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 230 of file stm32303e_eval.h.
#define LEFT_JOY_GPIO_PORT GPIOB |
Definition at line 229 of file stm32303e_eval.h.
#define LEFT_JOY_PIN GPIO_PIN_5 |
Joystick Left push-button.
Definition at line 228 of file stm32303e_eval.h.
#define RIGHT_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 223 of file stm32303e_eval.h.
#define RIGHT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 222 of file stm32303e_eval.h.
#define RIGHT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 221 of file stm32303e_eval.h.
#define RIGHT_JOY_GPIO_PORT GPIOD |
Definition at line 220 of file stm32303e_eval.h.
#define RIGHT_JOY_PIN GPIO_PIN_6 |
Joystick Right push-button.
Definition at line 219 of file stm32303e_eval.h.
#define SEL_JOY_EXTI_IRQn EXTI15_10_IRQn |
Definition at line 259 of file stm32303e_eval.h.
#define SEL_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 258 of file stm32303e_eval.h.
#define SEL_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 257 of file stm32303e_eval.h.
#define SEL_JOY_GPIO_PORT GPIOC |
Definition at line 256 of file stm32303e_eval.h.
#define SEL_JOY_PIN GPIO_PIN_13 |
Joystick Sel push-button.
Definition at line 255 of file stm32303e_eval.h.
#define UP_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 241 of file stm32303e_eval.h.
#define UP_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 240 of file stm32303e_eval.h.
#define UP_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 239 of file stm32303e_eval.h.
#define UP_JOY_GPIO_PORT GPIOE |
Definition at line 238 of file stm32303e_eval.h.
#define UP_JOY_PIN GPIO_PIN_7 |
Joystick Up push-button.
Definition at line 237 of file stm32303e_eval.h.
Generated on Wed May 31 2017 11:17:17 for STM32303E_EVAL BSP User Manual by 1.7.6.1