43 lines
800 B
C
43 lines
800 B
C
/*
|
|
* @Description:
|
|
* @Version: 1.0
|
|
* @Autor: lzc
|
|
* @Date: 2022-09-02 08:59:57
|
|
* @LastEditors: lzc
|
|
* @LastEditTime: 2022-09-02 14:50:08
|
|
*/
|
|
#ifndef __GPIO_H
|
|
#define __GPIO_H
|
|
|
|
#include "main.h"
|
|
#include "stm32f4xx_exti.h"
|
|
|
|
//定义SHDN置高、置低
|
|
#define SHDN_H 1
|
|
#define SHDN_L 1
|
|
//定义LED置高、置低
|
|
|
|
//LED端口定义
|
|
#define LED_B PBout(0)
|
|
#define LED_G PBout(1)
|
|
#define LED_R PBout(2)
|
|
|
|
//定义OPM置高、置低
|
|
#define OP1_A PBout(8)
|
|
#define OP1_B PBout(9)
|
|
#define Dis_1310 PCout(1)
|
|
//定义WIFI置高、置低
|
|
#define WIFI_RESET PBout(12)
|
|
|
|
extern char key_opm_flg;
|
|
extern char Key_Cal_Flag;
|
|
|
|
void GPIO_Set_Init(void);
|
|
void GPIOA_Init(void);
|
|
void GPIOB_Init(void);
|
|
void GPIOC_Init(void);
|
|
void WIFI_Reset(void);
|
|
void EXTI_Set_Init(void);
|
|
void EXTI10_15_IRQHandler(void);
|
|
#endif
|