#ifndef __STM32L100C_DISCOVERY_H
#define __STM32L100C_DISCOVERY_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32l1xx.h"
typedef enum
{
LED3 = 0,
LED4 = 1
} Led_TypeDef;
typedef enum
{
BUTTON_USER = 0,
} Button_TypeDef;
typedef enum
{
BUTTON_MODE_GPIO = 0,
BUTTON_MODE_EXTI = 1
} ButtonMode_TypeDef;
#define LEDn 2
#define LED3_PIN GPIO_Pin_9
#define LED3_GPIO_PORT GPIOB
#define LED3_GPIO_CLK RCC_AHBPeriph_GPIOB
#define LED4_PIN GPIO_Pin_15
#define LED4_GPIO_PORT GPIOA
#define LED4_GPIO_CLK RCC_AHBPeriph_GPIOA
#define BUTTONn 1
#define USER_BUTTON_PIN GPIO_Pin_3
#define USER_BUTTON_GPIO_PORT GPIOB
#define USER_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOB
#define USER_BUTTON_EXTI_LINE EXTI_Line0
#define USER_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOB
#define USER_BUTTON_EXTI_PIN_SOURCE EXTI_PinSource0
#define USER_BUTTON_EXTI_IRQn EXTI0_IRQn
void STM_EVAL_LEDInit(Led_TypeDef Led);
void STM_EVAL_LEDOn(Led_TypeDef Led);
void STM_EVAL_LEDOff(Led_TypeDef Led);
void STM_EVAL_LEDToggle(Led_TypeDef Led);
void STM_EVAL_PBInit(Button_TypeDef Button, ButtonMode_TypeDef Button_Mode);
uint32_t STM_EVAL_PBGetState(Button_TypeDef Button);
#ifdef __cplusplus
}
#endif
#endif /* __STM32L100C_DISCOVERY_H */