When using `OUTPUT=COLORTEST` the return value of the unit test's
`main()` on failure was `0`, while it should be `1`. As a result,
running the unit tests from a script using
$ OUTPUT=COLORTEXT make BOARD=native64 RIOT_TERMINAL=native -j32 flash term -C tests/unittests
would not catch a test failure.
This commit changes the behavior so that `0` is returned on success
and `1` on failure for both regular and colored text output.
This allows using and compiling the URL handling functions of sock_util
without a network stack used.
Co-authored-by: benpicco <benpicco@googlemail.com>
This changes the documentation of how to configure stdio, especially
with regard on how to configure the stdio frontends with
`printf_float`, `printf_long_long`, and `stdin`.
Co-authored-by: crasbe <crasbe@gmail.com>
This adapts to an API change for providing stdin/stdout/stderr: The
macro to test whether globals are to be used is now prefixed with two
underscores.
Co-authored-by: crasbe <crasbe@gmail.com>
This makes sure that newlib's printf is correctly overridden by:
1. Adding wrappers for some more obscure printf() variants
2. Forcing a compilation failure when newlib's stdio is still linked in
while mpaland-printf is used
3. Not adding `-u _printf_float` to the linker flags when mpaland-printf
is used.
So far, the atomic utils only support known width integer types. This
adds `unsigned int` to the supported list by mapping it to the
corresponding fixed width integer type.
This also sneaks in a few minor style fixes that clang-tidy frowned
upon.
Co-authored-by: crasbe <crasbe@gmail.com>
This makes use of the `periph_timer_query_freqs` feature:
1. It does choose the closest frequency supported before calling
timer_init() in the ztimer_periph_timer backend.
2. It does make use of the actually chosen frequency when using
`ztimer_convert_frac`.
3. It does `assert()` the frequency is within 5% of the specified when
no frequency conversion is performed or `ztimer_convert_shift_up`
is used.
This patch adds a hint to users for how to set
CONFIG_ZTIMER_USEC_ADJUST_SLEEP. The doc for
CONFIG_ZTIMER_USEC_ADJUST_SET already contained a similar hint.
This drops a lot of "no-op" Doxygen statements, such as
`@param foo <description>` where `<description>` is the empty string.
This now also provides no documentation, but a lot more compact.
This patch makes the requirement on buffer size more prominent.
Additionally, it adds the missing argument to the doxygen block of the
static initializer.
This patch makes the requirement on buffer size more prominent.
Additionally, it adds the missing argument to the doxygen block of the
static initializer. Finally, it chanes the argument name passed to the
static intializer to decouble the API from the implmentation details.
The mutex used to sync the reader and writer of the pipe is initialized
as unlocked. This results in a bit of wasted CPU cycles the first time a
read blocks. This patch inits the mutex in a locked state so that the
first blocking read blocks immediately.