drivers/serial: add ram uart driver

It uses the memory block as the serial communication medium, which can communicate between different processes or different CPUs

Using the following configuration, the cross-core communication rate of 200MHz cortex-M55 is about 461KB/s
RAM_UART_BUFSIZE=1024
RAM_UART_POLLING_INTERVAL=100

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2023-08-21 11:33:01 +08:00
committed by Xiang Xiao
parent 1d9097f1df
commit 1d8e69700f
5 changed files with 699 additions and 0 deletions
+5
View File
@@ -41,6 +41,7 @@
#include <nuttx/segger/rtt.h>
#include <nuttx/sensors/sensor.h>
#include <nuttx/serial/pty.h>
#include <nuttx/serial/uart_ram.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/syslog/syslog_console.h>
#include <nuttx/trace.h>
@@ -118,6 +119,10 @@ void drivers_initialize(void)
rpmsg_serialinit();
#endif
#ifdef CONFIG_RAM_UART
ram_serialinit();
#endif
/* Initialize the console device driver (if it is other than the standard
* serial driver).
*/