NRF_GPIO_Type * reg = nrf_gpio_pin_port_decode(&pin_number); //配置对应的端口的状态 reg->PIN_CNF[pin_number] = ((uint32_t)dir << GPIO_PIN_CNF_DIR_Pos)//方向 | ((uint32_t)input << GPIO_PIN_CNF_INPUT_Pos)//输入缓冲 | ((uint32_t)pull << GPIO_PIN_CNF_PULL_Pos)//上...