#ifndef _USER_GPIO_H_ #define _USER_GPIO_H_ #include "t_define.h" #include "t_bk3231sf.h" #define GPIO_PORT_0 0 #define GPIO_PORT_1 1 #define GPIO_PORT_2 2 #define GPIO_PORT_3 3 #define GPIO_PORT_4 4 #define GPIO_PIN_0 0 #define GPIO_PIN_1 1 #define GPIO_PIN_2 2 #define GPIO_PIN_3 3 #define GPIO_PIN_4 4 #define GPIO_PIN_5 5 #define GPIO_PIN_6 6 #define GPIO_PIN_7 7 #define GPIO_GEN_CFG_0 BM_GPIO_MODE|BM_GPIO_IO_OUT_NOR|BM_GPIO_PULL_UP|BM_GPIO_PULL_DOWN #define GPIO_GEN_CFG_1 BM_GPIO_IO_IN #define GPIO_MODE_GPIO (0x01ul<