You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
912 B
C
48 lines
912 B
C
|
|
|
|
#ifndef __FunctionKey_H
|
|
#define __FunctionKey_H
|
|
|
|
#include "main.h"
|
|
|
|
typedef enum{
|
|
KeyOpen =0,
|
|
KeyClosed,
|
|
KeyIdel,
|
|
keyshort,
|
|
Keylong
|
|
}TypedefKeyStatus;
|
|
|
|
#define PORT_Key GPIOA
|
|
#define PIN_Key GPIO_PIN_15
|
|
|
|
#define PORT_Power GPIOE
|
|
#define PIN_Power GPIO_PIN_12
|
|
|
|
#define PORT_CHRG GPIOA
|
|
#define PIN_CHRG GPIO_PIN_5
|
|
|
|
#define PORT_STDBY GPIOC
|
|
#define PIN_STDBY GPIO_PIN_3
|
|
|
|
#define PORT_Test_tx GPIOD
|
|
#define PIN_Test_tx GPIO_PIN_5
|
|
|
|
#define PORT_Test_rx GPIOD
|
|
#define PIN_Test_rx GPIO_PIN_6
|
|
|
|
#if 0
|
|
#define PORT_MODE GPIOC
|
|
#define PIN_MODE GPIO_PIN_13
|
|
#endif
|
|
|
|
extern void F_KEYIO_Init(void);
|
|
extern void APP_ConfigureEXTI(void);
|
|
extern TypedefKeyStatus F_keyLoop_10ms(void);
|
|
extern void TaskKeyOnOff(void *pvParamters);
|
|
|
|
#endif
|
|
|
|
/************************ (C) COPYRIGHT MS *****END OF FILE******************/
|
|
|