Marian Buschsieweke
ff7e7c26cf
core/log: Add anchor to doc to allow stable references
2021-10-10 21:35:31 +02:00
Martine Lenders
ea8e632eda
Merge pull request #16765 from benpicco/RIOT_VERSION_CODE
...
build system: add machine-readable RIOT_VERSION_CODE macro
2021-09-22 12:47:35 +02:00
Benjamin Valentin
7ef2594327
core/include/kernel_defines.h: add RIOT_VERSION_NUM macro
2021-09-21 17:43:29 +02:00
4fd1ae89a7
Merge pull request #16463 from kfessel/p-sched-int
...
core/sched: add runq_callback hook and runq inspection functions
2021-09-15 15:43:50 +03:00
2b2c5fe746
core/thread: provide getters for thread_t fields as used by ps()
2021-09-15 10:16:45 +02:00
chrysn
137399c8cb
core/msg doc: Clarify; elaborating on interaction with queue
2021-09-01 14:56:41 +02:00
Hauke Petersen
b526394d82
core/irq.h: add irq_is_enabled() function
2021-08-25 08:01:05 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Karl Fessel
671a7edca1
core/sched: uncrustify sched_cb declaration
...
this is a change out of this PR scope to reduce
the number of uncrustify complains for future edits
2021-08-09 14:22:07 +02:00
Karl Fessel
3508012942
core/sched: name inspection functions the same as the used clist fns
2021-08-09 14:18:18 +02:00
Francisco
d7b3328601
Merge pull request #16098 from kfessel/p-remove-lifo
...
core/lifo: Remove lifo [after 2021.04]
2021-06-15 13:55:30 +02:00
JulianHolzwarth
8309889e39
core/msg.c: fixed msg_queue_print()
2021-06-02 01:28:22 +02:00
Karl Fessel
9f00528a58
core/sched: add runq_callback hook and runq inspection functions
2021-05-10 15:01:58 +02:00
95a2456457
Merge pull request #16330 from kfessel/p-add-clist-special
...
core/clist: add special cardinality tests and matching unittest
2021-04-15 12:14:58 +02:00
Karl Fessel
5735d99971
core/clist: add special cardinality tests and matching unittest
...
adds clist_exactly_one() and clist_more_than_one()
and a unittest that tests them
2021-04-14 21:00:10 +02:00
Karl Fessel
1dde0f42d4
core/sched: keep scheduler clist internal to sched
...
adds sched_runq_advance(prio)
used it in core/thread and
test malloc_thread_safety
2021-04-14 09:53:04 +02:00
020945a773
core/clist: add clist_is_empty()
2021-04-09 10:54:29 +02:00
Joakim Nohlgård
87727febd7
core/msg: Fix mismatched printf bool format
...
_Bool will be extended to int when calling the variadic printf function.
2021-03-24 12:01:23 +01:00
Joakim Nohlgård
783c407787
core/msg: Fix mismatched printf signed/unsigned format
...
enum signedness depends on the platform settings, use explicit casts for robustness
2021-03-24 12:01:18 +01:00
Joakim Nohlgård
a83516b2f6
core/msg: Fix mismatched printf signed/unsigned format
...
cib_avail returns unsigned int
2021-03-24 12:01:07 +01:00
e8e8405c4a
core/thread: move thread configuration into seperate header
2021-03-02 11:56:11 +01:00
Karl Fessel
1c1f051ab7
core/lifo: Remove lifo
2021-02-27 11:59:36 +01:00
Karl Fessel
55a0ca402b
core/lifo: deprecate file for remove after 2021.04
2021-02-27 10:17:33 +01:00
Karl Fessel
9ab0681634
core/lifo: remove lifo.c, keep api with lifo.h
...
use LOG_DEBUG instead of DEBUG
2021-02-26 17:45:31 +01:00
2861d1f353
core/xfa: typeof() -> __typeof__()
2021-02-23 13:37:19 +01:00
df4dc36d91
core/xfa: add "experimental" note
2021-02-18 10:46:08 +01:00
d310044a88
core/xfa: fix doxygen issues
2021-02-18 10:46:08 +01:00
249ed5f2e1
core/include/xfa.h: uncrustify
2021-02-18 10:46:08 +01:00
2bc7bb4740
core/xfa: make externc happy
2021-02-18 10:46:08 +01:00
e827f0bdf1
core/xfa: add comments explaining the pragmas
2021-02-18 10:46:08 +01:00
50dc68bd21
core/xfa: make const XFA's volatile
...
This prevents gcc from figuring out that an XFA that has been
initialized in the same file is technically empty when the compilation
unit is seen by itself. This happened with gcc 10.1.0 on msp430-elf.
2021-02-18 10:46:08 +01:00
b54afa1449
xfa: remove duplicate "const" from _XFA_CONST
2021-02-18 10:46:08 +01:00
ac549abbb9
xfa: remove common -Txfa.ld include
2021-02-18 10:46:08 +01:00
bdd59ae7f2
core: disable -Warray-bounds for XFA users
2021-02-18 10:46:08 +01:00
66092f5506
core: Introduce cross file arrays (XFA)
...
Co-Authored-By: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2021-02-16 14:21:32 +01:00
chrysn
6145949f88
core/mutex: Add assert guard against usage without threads
2021-02-15 06:01:01 +01:00
Martine Lenders
9b40bb63c2
core: apply uncrustify patches
2021-02-02 22:21:14 +01:00
9d5f87bf67
core/thread: Allow for inline thread_yield_higher
...
Similar to irq.h, this allows for inline the often trivial
thread_yield_higher function
2021-01-19 11:03:20 +01:00
f0ce992d4a
core/thread: uncrustify header file
2021-01-19 10:28:58 +01:00
323fa3b5ac
core/mutex: fix typo in documentation
2020-12-29 11:48:48 +01:00
Marian Buschsieweke
8bbe56c302
core/mutex: compatibility with non-C languages
...
Due to limited compatibility with C, we cannot use the inline mutex_trylock
implementation for C++. Instead, we provide a mutex_trylock_ffi() intended for
foreign function interfaces. This should also benefit rust users.
2020-12-09 11:53:48 +01:00
Marian Buschsieweke
472d6d0abc
core/mutex: fix documentation
2020-12-08 23:04:16 +01:00
229291ef01
Merge pull request #15442 from maribu/mutex_abort
...
core/mutex: Add mutex_cancel
2020-12-08 17:12:52 +01:00
Marian Buschsieweke
df66dd0272
core/mutex: uncrustify
2020-12-08 14:50:50 +01:00
Marian Buschsieweke
e348407888
core/mutex: Add mutex_cancel() & mutex_lock_cancelable()
...
Add a version of `mutex_lock()` that can be canceled with the obvious name
`mutex_lock_cancelable()`. This function returns `0` on success, and
`-ECANCELED` when the calling thread was unblocked via a call to
`mutex_cancel()` (and hence without obtaining the mutex).
This is intended to simplify the implementation of `xtimer_mutex_lock_timeout()`
and to implement `ztimer_mutex_lock_timeout()`.
2020-12-08 14:50:49 +01:00
benpicco
aabd5eaca5
Merge pull request #15506 from kaspar030/refactor_thread_info
...
core: refactor thread info
2020-11-26 13:01:09 +01:00
ceea0ba949
core/thread: add thread_is_active()
2020-11-25 20:49:00 +01:00
1d5e2e9cd9
all: remove traces of kernel_types.h
...
Automatically removed using:
$ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
2020-11-25 17:52:34 +01:00
017e9e9d4d
core/thread: add thread_get_status()
2020-11-25 14:39:22 +01:00
5321bcde89
core: thread: move thread_state_to_string() from ps.c
2020-11-25 14:35:00 +01:00