![]() ![]() ![]() So instead I can create a buffer, and push to it from inside the ISR, and then read from loop() but that's even more susceptible to race conditions - unless I disable interrupts whilst I take a local copy of the buffer - but with interrupts off I'll miss messages. If I instead do: volatile byte message Īnd then set this from the ISR and read it inside loop(), I might not loop fast enough to read quickly incoming messages - thus losing messages. What should I do with message? I shouldn't process it in the ISR in order to keep the interrupt slim and fast. How do I properly resolve the below issues? ![]() I've got a stream of messages coming into an I2C slave from its master. ![]()
0 Comments
Leave a Reply. |