Hi
I'm using the UART async API and want to pass the received data to a fifo or workqueue to them process this received data.
There does not seem to be any examples of doing this with the async API, so where can i find something ?
KR
Hi
I'm using the UART async API and want to pass the received data to a fifo or workqueue to them process this received data.
There does not seem to be any examples of doing this with the async API, so where can i find something ?
KR
Hi Lee,
You can have a look at our peripheral_uart exampel
Here you can see we how it is putting the received datainto a FIFO https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/peripheral_uart/src/main.c#L182
Regards
Runar
do you not have a simpler example ?
i only need to worry about receive data. This data is from a GPS receiver, data should be out in fifo and then processed is worker/separate thread.
do you not have a simpler example ?
i only need to worry about receive data. This data is from a GPS receiver, data should be out in fifo and then processed is worker/separate thread.
i found this, much easier example, might be of interest to others.
Just remember is based on an old version of NCS so it will not work out of the box
Regards
Runar
What needs to be changed ?
From the top of my head, the include paths is wrong. I would recommend comparing them to one of the examples I have linked you. In NCS 2.0 Zephyr 3.0 was introduced and with it:
"All Zephyr public headers have been moved to include/zephyr, meaning they must be prefixed with <zephyr/...> when included. Because this change can potentially break many applications or libraries, CONFIG_LEGACY_INCLUDE_PATH is provided to allow using the old include path."
You might be lucky and that is the only thing you have to care about.
Regards
Runar