AnsweredAssumed Answered

HAL I2C example from I2C_TwoBoards_ComIT

Question asked by Chin.Andrew on Feb 28, 2017
Latest reply on Feb 28, 2017 by Chin.Andrew

I am having trouble following the example code as given for the CubeMX


How does it not get stuck in the while(1) loop in the main function? I understand that it is an interrupt, but the only thing that the function call back does is toggle an LED. How else does it know to get out of the infinite loop since everything else is contained in the main function. I see all the stuff for reading the buffer, but it is outside of the while loop.