Solved
((HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_10) == GPIO_PIN_SET) ? 1:0); I am using this command to read a pin, Actually it is Arduino format. So I want to ask if this works in ST as well and if the same syntax work does it read both 1 and 0?
..
..
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.