STM32303C_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 200 of file stm32303c_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 263 of file stm32303c_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 256 of file stm32303c_eval.h.
Referenced by BSP_PB_Init().
#define DOWN_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 245 of file stm32303c_eval.h.
#define DOWN_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 244 of file stm32303c_eval.h.
#define DOWN_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 243 of file stm32303c_eval.h.
#define DOWN_JOY_GPIO_PORT GPIOD |
Definition at line 242 of file stm32303c_eval.h.
#define DOWN_JOY_PIN GPIO_PIN_5 |
Joystick Down push-button.
Definition at line 241 of file stm32303c_eval.h.
#define JOYn 5 |
Definition at line 199 of file stm32303c_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 276 of file stm32303c_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 270 of file stm32303c_eval.h.
Referenced by BSP_JOY_Init().
#define KEY_BUTTON_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 209 of file stm32303c_eval.h.
#define KEY_BUTTON_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 208 of file stm32303c_eval.h.
#define KEY_BUTTON_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 207 of file stm32303c_eval.h.
#define KEY_BUTTON_GPIO_PORT GPIOE |
Definition at line 206 of file stm32303c_eval.h.
#define KEY_BUTTON_PIN GPIO_PIN_6 |
Key push-button.
Definition at line 205 of file stm32303c_eval.h.
#define LEFT_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 227 of file stm32303c_eval.h.
#define LEFT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOB_CLK_DISABLE() |
Definition at line 226 of file stm32303c_eval.h.
#define LEFT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOB_CLK_ENABLE() |
Definition at line 225 of file stm32303c_eval.h.
#define LEFT_JOY_GPIO_PORT GPIOB |
Definition at line 224 of file stm32303c_eval.h.
#define LEFT_JOY_PIN GPIO_PIN_5 |
Joystick Left push-button.
Definition at line 223 of file stm32303c_eval.h.
#define RIGHT_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 218 of file stm32303c_eval.h.
#define RIGHT_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOD_CLK_DISABLE() |
Definition at line 217 of file stm32303c_eval.h.
#define RIGHT_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOD_CLK_ENABLE() |
Definition at line 216 of file stm32303c_eval.h.
#define RIGHT_JOY_GPIO_PORT GPIOD |
Definition at line 215 of file stm32303c_eval.h.
#define RIGHT_JOY_PIN GPIO_PIN_6 |
Joystick Right push-button.
Definition at line 214 of file stm32303c_eval.h.
#define SEL_JOY_EXTI_IRQn EXTI15_10_IRQn |
Definition at line 254 of file stm32303c_eval.h.
#define SEL_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOC_CLK_DISABLE() |
Definition at line 253 of file stm32303c_eval.h.
#define SEL_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOC_CLK_ENABLE() |
Definition at line 252 of file stm32303c_eval.h.
#define SEL_JOY_GPIO_PORT GPIOC |
Definition at line 251 of file stm32303c_eval.h.
#define SEL_JOY_PIN GPIO_PIN_13 |
Joystick Sel push-button.
Definition at line 250 of file stm32303c_eval.h.
#define UP_JOY_EXTI_IRQn EXTI9_5_IRQn |
Definition at line 236 of file stm32303c_eval.h.
#define UP_JOY_GPIO_CLK_DISABLE | ( | ) | __HAL_RCC_GPIOE_CLK_DISABLE() |
Definition at line 235 of file stm32303c_eval.h.
#define UP_JOY_GPIO_CLK_ENABLE | ( | ) | __HAL_RCC_GPIOE_CLK_ENABLE() |
Definition at line 234 of file stm32303c_eval.h.
#define UP_JOY_GPIO_PORT GPIOE |
Definition at line 233 of file stm32303c_eval.h.
#define UP_JOY_PIN GPIO_PIN_7 |
Joystick Up push-button.
Definition at line 232 of file stm32303c_eval.h.
Generated on Wed May 31 2017 10:00:44 for STM32303C_EVAL BSP User Manual by 1.7.6.1