/** * @file gpio.h * @author chenjun (chenjun@radareye.com.cn) * @brief * @version 0.1 * @date 2022-04-06 * * @copyright Copyright (c) 2022 * */ #ifndef __GPIO_H__ #define __GPIO_H__ #include "n32g45x.h" /*RF复位信号引脚*/ #define RF_RST_PIN (GPIO_PIN_0) #define RF_RST_PORT (GPIOB) //RF复位 #define RF_RESET() // GPIO_SetBits(RF_RST_PORT, RF_RST_PIN) //RF使能 #define RF_ENABLE() // GPIO_ResetBits(RF_RST_PORT, RF_RST_PIN) /*LED指示灯脚 */ #define LED0_PIN (GPIO_PIN_0) #define LED0_PORT (GPIOA) #define LED1_PIN (GPIO_PIN_15) #define LED1_PORT (GPIOB) /*LED ctrl define * 高电平--OFF * 低电平--ON */ #define LED0_OFF() GPIO_SetBits(LED0_PORT, LED0_PIN) #define LED0_ON() GPIO_ResetBits(LED0_PORT, LED0_PIN) #define LED1_OFF() //GPIO_SetBits(LED1_PORT, LED1_PIN) #define LED1_ON() //GPIO_ResetBits(LED1_PORT, LED1_PIN) void gpio_init(void); #endif /*__GPIO_H__*/