This is an asynchronous UART library for Raspberry Pi pico.
(using C and pico-sdk)
This library performs asynchronous UART transmission and reception using queues and UART transmit/receive interrupts.
When used in a multi-core environment, exclusive processing is performed within the library.
1.How to use
(1) Please set the following user-dependent settings in AsyncUart.h
In your app, do the following
(See sample_main.c)
(2) #include "async_uart/AsyncUart.h"
(3) Calls ASUART_Init() when power is turned on.
(4) The main loop calls ASUART_Main() every cycle.
(5) If you want to send, use ASUART_SendBuf().
(6) If you want to get received data from the receive queue, use ASUART_RecvBuf().
(7) The last UART error can be got by ASUART_GetLastErrorBits().
(It can be cleared by ASUART_ClearLastErrorBits().)
2. About the sample program
Sends the received data.
Please refer to AsyncUart.h for the pins used and UART communication settings.