Hi GANG,
Please refer the code shown below:
if((GPIO_Read(GPIOB) & 0x2000000)==0x2000000)
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------