add a second circular buffer?
Posted: Mon Apr 03, 2023 8:08 pm
Hi,
I am programming an AVR ATMEGA2560 with AVR chipset. My program is supposed to poll two devices on (inspectra)ch1 and ch3(weather) via UART. There is a Modbus slave that is sending out the cleaned info on ModbusSlave ch2. I have been successful with inspectra and ModbusSlave working in tandem. I am using a circular buffer to capture the info. Now I am adding another device the weather station on ch3.
My question is since I am adding another device do I need to add a 2nd circular buffer? If I do would I add it in just like the first buffer as a interrupt?
I have attached my work below.
Thank you
I am programming an AVR ATMEGA2560 with AVR chipset. My program is supposed to poll two devices on (inspectra)ch1 and ch3(weather) via UART. There is a Modbus slave that is sending out the cleaned info on ModbusSlave ch2. I have been successful with inspectra and ModbusSlave working in tandem. I am using a circular buffer to capture the info. Now I am adding another device the weather station on ch3.
My question is since I am adding another device do I need to add a 2nd circular buffer? If I do would I add it in just like the first buffer as a interrupt?
I have attached my work below.
Thank you