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.

PIN_Config bit 位求问

我使用PIN_getConfig 获取pin的参数,

0x9000200F,请问一下,总共32位,从低位数起的第二位代表什么?就是F中的1111 红色的这位

  • /** @brief Returns pin configuration
    *
    * @param pinId Pin ID
    * @return Current pin configuration as a device-independent #PIN_Config value
    * @note The pin ID is embedded in return value.
    * @note There is usually a device-specific version of this function that
    * returns device-specific options
    * @par Usage
    * @code
    * // Get config of pin 14 to be able to revert later
    * myPinConfig = PIN_getConfig(PIN_ID(14));
    * // ...
    * // Lots of pin reconfigurations
    * // ...
    * // Restore previous configuration
    * PIN_setConfig(hPins, PIN_BM_ALL, myPinConfig);
    * @endcode
    */
    extern PIN_Config PIN_getConfig(PIN_Id pinId);

    没有找到0x9000200F,说明下具体出处
  • 我这边做一个shutdown的功能,发现shutdown之后就无法通过gpio下降沿来唤醒了。
    就debug一下,看看wake up的 gpio的设置和example里面的gpio的设置有没有什么不一样。
    发现example里面的gpio的设置是:0x9000200d
    我这边的gpio的设置是:0x9000200f
    所以我问下这个第二位是代表什么
  • 低八位都是代表Pin Id,不同的引脚pin id自然是不同的