AnsweredAssumed Answered

c code

Question asked by McC.Joe on Oct 23, 2016
Latest reply on Oct 25, 2016 by qwer.asdf
Hello folks,

Would anyone know why this does NOT work

 while (DMA1->ISR & DMA_ISR_TCIF1==0);    //wait until transfer complete

but this WORKs
 
  tc_flag=DMA1->ISR & DMA_ISR_TCIF1; //save transfer complete flag
  
 while (!tc_flag){                                                       
 tc_flag=DMA1->ISR & DMA_ISR_TCIF1;    //wait until transfer complete
}
  
Thank you

Outcomes