How to use the uart driver?

2 posts / 0 new
Last post
at7
Offline
Last seen:5 years 3 months ago
加入:2016-01-04 12:08
How to use the uart driver?

Hello,
I'm integrating uart interface to the module.
Currently I'm able to transmit bytes to and from the chip according the peripheral_examples.c -- so HW functions.
How ever for the application integration, I need a bit more efficient solution.

There seem to be a quite advanced uart driver at:
DA14580_581_583_SDK_3.0.10.1/dk_apps/src/plf/refip/src/driver/uart/
but I didn't found any examples of how to config and use it.

I looking something that hides the driver below functions like:
int read(*buffer,buff_size); //returns bytes read. (0..buff_size -- negative for error)
int write(*buffer,size); //returns bytes written -- negative for error

Any ideas?

Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015 - 06-08 11:34
Hi at7,

Hi at7,

The current available implementation of the UART driver is the one described in the in the UM-B-051.pdf doc. Since you are using the SDK3, maybe you can check the peripheral_example projects in the new SDK 5 and see if it suits you.

Thanks MT_dialog