The UART driver in general it is best used when you exchange data packed in structures of known size, it could be OK for UDP. The Serial driver is best used for discontinuous byte-oriented streams.
In general you can use both driver in all kind of applications, you have to do some analysis before making a choice.
Giovanni
Usart flow control (rts/cts) in stm32f1xx
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times