24 #ifndef __STM32F4_DISCOVERY_H
25 #define __STM32F4_DISCOVERY_H
80 #define LED4_PIN GPIO_Pin_12
81 #define LED4_GPIO_PORT GPIOD
82 #define LED4_GPIO_CLK RCC_AHB1Periph_GPIOD
84 #define LED3_PIN GPIO_Pin_13
85 #define LED3_GPIO_PORT GPIOD
86 #define LED3_GPIO_CLK RCC_AHB1Periph_GPIOD
88 #define LED5_PIN GPIO_Pin_14
89 #define LED5_GPIO_PORT GPIOD
90 #define LED5_GPIO_CLK RCC_AHB1Periph_GPIOD
92 #define LED6_PIN GPIO_Pin_15
93 #define LED6_GPIO_PORT GPIOD
94 #define LED6_GPIO_CLK RCC_AHB1Periph_GPIOD
107 #define USER_BUTTON_PIN GPIO_Pin_0
108 #define USER_BUTTON_GPIO_PORT GPIOA
109 #define USER_BUTTON_GPIO_CLK RCC_AHB1Periph_GPIOA
110 #define USER_BUTTON_EXTI_LINE EXTI_Line0
111 #define USER_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOA
112 #define USER_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource0
113 #define USER_BUTTON_EXTI_IRQn EXTI0_IRQn
133 void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode);
uint32_t STM_EVAL_PBGetState(Button_TypeDef Button)
Returns the selected Button state.
Definition: stm32f4_discovery.c:232
CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...
void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
Configures Button GPIO and EXTI Line.
Definition: stm32f4_discovery.c:188
void STM_EVAL_LEDOn(Led_TypeDef Led)
Turns selected LED On.
Definition: stm32f4_discovery.c:142
void STM_EVAL_LEDOff(Led_TypeDef Led)
Turns selected LED Off.
Definition: stm32f4_discovery.c:157
void STM_EVAL_LEDToggle(Led_TypeDef Led)
Toggles the selected LED.
Definition: stm32f4_discovery.c:172
void STM_EVAL_LEDInit(Led_TypeDef Led)
Configures LED GPIO.
Definition: stm32f4_discovery.c:116