added poll api passthrough

This commit is contained in:
2026-03-11 20:34:44 +01:00
commit 9f05489b3a
13 changed files with 218 additions and 0 deletions

21
src/main.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
const struct device *test_uart = DEVICE_DT_GET(DT_ALIAS(testuart));
int main(void) {
const char msg [] = "Hello World";
while (1) {
for (char c : msg) {
uart_poll_out(test_uart, c);
}
k_sleep(K_MSEC(100));
}
return 0;
}