Call HAL lib inside Call back
Hello, Is it Ok to read GPIO pins inside a timer call back as follow:void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef* htim){ if (htim == &htim2 ) //15 ms { BT1 = HAL_GPIO_ReadPin(GPIOx, Pin_x); BT2 = HAL_GPIO_ReadPin(GP...