Files
@ 56d27a356b39
Branch filter:
Location: therm/stm32l100c_discovery.h - annotation
56d27a356b39
1.5 KiB
text/plain
Added new libs / etc
dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc dc0c251991cc | #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 GPIOC
#define LED3_GPIO_CLK RCC_AHBPeriph_GPIOC
#define LED4_PIN GPIO_Pin_8
#define LED4_GPIO_PORT GPIOC
#define LED4_GPIO_CLK RCC_AHBPeriph_GPIOC
#define BUTTONn 1
#define USER_BUTTON_PIN GPIO_Pin_0
#define USER_BUTTON_GPIO_PORT GPIOA
#define USER_BUTTON_GPIO_CLK RCC_AHBPeriph_GPIOA
#define USER_BUTTON_EXTI_LINE EXTI_Line0
#define USER_BUTTON_EXTI_PORT_SOURCE EXTI_PortSourceGPIOA
#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 */
|