Paul Sokolovsky
Hello,
toggle quoted messageShow quoted text
On Thu, 29 Nov 2018 15:50:17 -0800
"Gustavo FN" <gustavofn@gmail.com> wrote: [] As far as I have seen, is no simple uart example in the sampleComing back to this original question of UART API in Zephyr, the current situation is that we have a few such APIs, all either subideal or not yet fully finished. In that regard, I'd like to draw attention to an API I'm working on: https://github.com/zephyrproject-rtos/zephyr/blob/master/include/tty.h . This provides buffered UART access modeled after Unix/POSIX "tty" API. And that's exactly my response to multitude of UART APIs in Zephyr: instead of inventing own Zephyr APIs, we should stay close to known best practices, like POSIX ("close" and "not exactly" because following POSIX by word would lead to quite bloated solutions, though we're going to provide that option too via Zephyr's POSIX subsystem). Caveat is the same as with some other APIs in Zephyr: it's experimental, work in progress, and subject to change (and will change, as again, the idea is to make it better than legacy UART APIs). The race here is to try to stabilize as much as possible of it for the 1.14 LTS release. [] -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
|
|