Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5224

SDK • Re: Intercepting printf() calls, redirecting to a ring_buffer, sending to a UART later

$
0
0
...

So... looks like this is the right direction, but I don't know how to "not wrap" the default, or to "re-wrap" the default.

I'll keep checking...
Maybe omit pico_stdio (or anything that pulls it in, like, pico_stdlib?) from target_link_libraries and then provide your own wrapped functions? One approach might be to clone and customize pico_stdio by replacing one or two .c files to make a specialized library.

Statistics: Posted by carlk3 — Tue Mar 05, 2024 8:02 am



Viewing all articles
Browse latest Browse all 5224

Trending Articles