2026-01-31 2:58 AM
Hello everyone!
That works:
int main(void)
{
...
init_SPI1();
for(;;)
SPI1_Send();
}And that doesn't:
void TIM2_IRQHandler(void)
{
SPI1_Send();
TIM2->SR &= ~TIM_SR_UIF; // reset UIF bit in the status register of the timer
}Why?
Thank you very much!