roverSTM  UM2 2013
Projet M1 Navarro Benjamin
 All Classes Files Functions Groups Pages
Functions | Variables
stm32f4_discovery.c File Reference

This file provides set of firmware functions to manage Leds and push-button available on STM32F4-Discovery Kit from STMicroelectronics. More...

#include "stm32f4_discovery.h"

Functions

void STM_EVAL_LEDInit (Led_TypeDef Led)
 Configures LED GPIO. More...
 
void STM_EVAL_LEDOn (Led_TypeDef Led)
 Turns selected LED On. More...
 
void STM_EVAL_LEDOff (Led_TypeDef Led)
 Turns selected LED Off. More...
 
void STM_EVAL_LEDToggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
void STM_EVAL_PBInit (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
 Configures Button GPIO and EXTI Line. More...
 
uint32_t STM_EVAL_PBGetState (Button_TypeDef Button)
 Returns the selected Button state. More...
 

Variables

GPIO_TypeDef * GPIO_PORT [LEDn]
 
const uint16_t GPIO_PIN [LEDn]
 
const uint32_t GPIO_CLK [LEDn]
 
GPIO_TypeDef * BUTTON_PORT [BUTTONn] = {USER_BUTTON_GPIO_PORT }
 
const uint16_t BUTTON_PIN [BUTTONn] = {USER_BUTTON_PIN }
 
const uint32_t BUTTON_CLK [BUTTONn] = {USER_BUTTON_GPIO_CLK }
 
const uint16_t BUTTON_EXTI_LINE [BUTTONn] = {USER_BUTTON_EXTI_LINE }
 
const uint8_t BUTTON_PORT_SOURCE [BUTTONn] = {USER_BUTTON_EXTI_PORT_SOURCE}
 
const uint8_t BUTTON_PIN_SOURCE [BUTTONn] = {USER_BUTTON_EXTI_PIN_SOURCE }
 
const uint8_t BUTTON_IRQn [BUTTONn] = {USER_BUTTON_EXTI_IRQn }
 
NVIC_InitTypeDef NVIC_InitStructure
 

Detailed Description

This file provides set of firmware functions to manage Leds and push-button available on STM32F4-Discovery Kit from STMicroelectronics.

Author
MCD Application Team
Version
V1.1.0
Date
28-October-2011
Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2011 STMicroelectronics