Skip to content
Commit 68e20238 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

lib: rust: Add simple printk support to Rust



When `CONFIG_PRINTK` is enabled, provide macros `printk` and `printkln`
within the `zephyr` crate that applications can use to print.  This
currently sends messages, with a small amount of buffering, using
`k_str_out`.

Until C functions are made generally available from the Rust side,
we use a small wrapper function to call `k_str_out`, as it is
implemented as an inline syscall.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 1ed0aeab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment