This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSTUDIO: 需要GPIO18作为按键检测。F280049C为什么我的GPIO上电后默认是低电平,我用万用表测量为0.4V。我上拉了依旧为0.4V

Part Number: CCSTUDIO

//SW8
    GPIO_setPinConfig(GPIO_18_GPIO18);
    GPIO_setPadConfig(SW8, GPIO_PIN_TYPE_STD | GPIO_PIN_TYPE_PULLUP);
    // 设置按键输入为同步采样(提高稳定性)
    GPIO_setQualificationMode(SW8, GPIO_QUAL_SYNC);
    // 设置方向为输入模式
    GPIO_setDirectionMode(SW8, GPIO_DIR_MODE_IN);
    // 设置这个引脚归属 CPU1 控制
    GPIO_setControllerCore(SW8, GPIO_CORE_CPU1);