1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core/lib/include
bors[bot] 71f783f1c8
Merge #19156 #19174
19156: core/compiler_hints: add likely() / unlikely() hints r=kfessel a=benpicco



19174: tests/periph_spi clearly say when init succeeds r=benpicco a=jdavid

When the `tests/periph_spi` program succeeds the output can be interpreted as an error happened.
This PR makes it clearer when it does succeed.

### Contribution description

In `tests/periph_spi`:

- Explicitely say that the init operation was successful
- Rephrase the note to avoid misinterpretations 


### Testing procedure

Run the `tests/periph_spi` program.
There is not much to test, just to verify the output, should be like this:

```
2023-01-19 10:42:33,768 # Trying to initialize SPI_DEV(1): mode: 0, clk: 0, cs_port: 0, cs_pin: 0
2023-01-19 10:42:33,777 # (if below the program crashes with a failed assertion, then it means the configuration is not supported)
2023-01-19 10:42:33,779 # Success.
```


### Issues/PRs references

Issue https://github.com/RIOT-OS/RIOT/issues/19025

Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: J. David Ibáñez <jdavid.ibp@gmail.com>
2023-01-19 15:38:47 +00:00
..
macros core/lib: Add macros/utils.h header 2023-01-07 09:47:44 +01:00
assert.h Merge #19156 #19174 2023-01-19 15:38:47 +00:00
bitarithm.h bitarithm: Move extern const out of static inline functions 2022-05-29 13:59:39 +02:00
cib.h core: split out library code 2022-03-09 21:43:05 +01:00
clist.h core: split out library code 2022-03-09 21:43:05 +01:00
compiler_hints.h core/compiler_hints: add likely() / unlikely() hints 2023-01-18 01:17:31 +01:00
container.h core/lib: split kernel defines by its concerns 2022-11-11 13:41:33 +01:00
debug.h core: split out library code 2022-03-09 21:43:05 +01:00
irq.h cpu/cortexm_common: measure time spent with IRQ disabled 2022-11-24 21:27:20 +01:00
kernel_defines.h core/lib: split kernel defines by its concerns 2022-11-11 13:41:33 +01:00
kernel_init.h core/init: add early_init() 2023-01-08 22:25:10 +01:00
list.h core: split out library code 2022-03-09 21:43:05 +01:00
log.h core/lib: add doxygen for LOG_* macros 2022-03-10 10:15:14 +01:00
modules.h core/lib: split kernel defines by its concerns 2022-11-11 13:41:33 +01:00
panic.h core: Treat stack overflows as an unrecoverable error 2022-08-12 05:26:22 +02:00
priority_queue.h core: split out library code 2022-03-09 21:43:05 +01:00
ringbuffer.h core: split out library code 2022-03-09 21:43:05 +01:00
riot_version.h core/lib: split kernel defines by its concerns 2022-11-11 13:41:33 +01:00
rmutex.h core: split out library code 2022-03-09 21:43:05 +01:00
thread_config.h core: split out library code 2022-03-09 21:43:05 +01:00
xfa.h core/lib/xfa: fix parameter documentation 2022-11-03 10:25:37 +01:00