Part Number: TM4C123GH6PGE
Other Parts Discussed in Thread: EK-TM4C123GXL
Hey ho
This is more a general question. I like to improve my simple generic uart zephyr driver. This driver listens to the uart rx interrupts , then copies the rx data to a ringbuffer and sets a semaphore to activate the processing thread. As well tx is done via pulling the bytes out.
Since I am using a RTOS, I like to offload the MCU from the data copying and do other stuff in the background.
So I am looking for the least MCU load generating way.
Guess DMA is a good option, but I didn't used that before. Especially for rx I like to know how to do the "end of message burst" detection. For example I am setting up the DMA to rx 1000Bytes. Now a message of 666Bytes is send. As the DMA didn't get 1000Bytes its still waiting for 334Bytes. No intr etc. How to do that kind of interruption + a buffer flip so we don't loose any data, just in case some data comes in while doing the buffer flip.



