If anyone knows C I could use a hand. I’m using a USART which needs to have an interrupt enabled so that when a packet is received it is taken to the correct memory buffer without the user program needing to call anything or poll. I previously bodged this working by adding extern variables in main.c, then creating them in the interrupt file:
I’m not a big fan of the bodge and need to create a single memory location that both the interrupt code and the user code can access. How can I do this?