I realize, this might have been discussed a lot of times but a quick search didn't answer the questions I had.
Basically, what I want to do is to implement a serial communication on my atmega168 which has the following functionality:
- supports big enough RX and TX buffers (32 or 64 bytes)
- non-blocking during write
- supports some sort of printf for at least string, hex and decimal.
I read some documentation on stdio.h, which seems to already have printf, but I am not sure to understand the FILE datatype and how to link it to the circular buffers from the uart.
Examples or links are more than welcome!