Commit Graph

288 Commits (13832d8e621027bfbd636b32d4c29ede32178e9d)

Author SHA1 Message Date
Joakim Gebart 13832d8e62 everything: Remove filename from @file Doxygen command 8 years ago
Lucas Jenss 426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
8 years ago
Joseph Noir bddaee751d Add replacement headers for thread, mutex and cond
These headers do not provide full stl functionality,
but a small subset:
* thread and this_thread
* condition_variable (some timed functions are missing)
* mutex, lock_guard and unique_lock
8 years ago
Kaspar Schleiser c944d54171 core: log: introduce logging API 8 years ago
Oleg Hahm cb1f047f59 core: unified core_panic implementation 9 years ago
Oleg Hahm 828839316b core: renamed crash.h to panic.h 9 years ago
Joakim Gebart 215ccc1213 core: Introduce atomic counters
- Move generic implementation of atomic_set_return to core/atomic.c
 - Generic implementation of atomic compare and swap in core/atomic.c
 - atomic_cas is used to implement atomic counters in core/include/atomic.h
 - atomic_int_t is an atomic integer type
 - ATOMIC_INIT can be used as an initializer for atomic_int_t
 - ATOMIC_VALUE gets a reference to the value of an atomic integer
9 years ago
Oleg Hahm 89e871e7e3 doc: fixes doxygen warnings in core 9 years ago
Martine Lenders 5214e14e66 Revert "debug.h: check stacksize fixed" 9 years ago
Simon Brummer b495c24609 debug.h: check stacksize fixed 9 years ago
altairpearl a409191b71 core: Updated include guards to remove leading underscores 9 years ago
Ludwig Ortmann d701cefd5e Revert "core: limit message queue size" 9 years ago
Darredevil d5542beb91 core/include/cib: repaired file include guards 9 years ago
Alexandru Caciulescu a53e06a772 core: limit message queue size 9 years ago
Oleg Hahm 70c014d698 doc: additional hint for msg_send_receive() 9 years ago
Kaspar Schleiser 2acd216d5a Merge pull request #2589 from kushalsingh007/isr
Core: doc: add note advising against creation of threads from within ISR
9 years ago
kushalsingh007 3b7e54b441 Core: Change in description of thread_create function.
- Fixes #2136
- Adds warning about creating threads from within an ISR.
9 years ago
Oleg Hahm 4fec8fd31e doc: improvement to IPC documentation
Per default, doxygen will take only the part until the first dot into
account for the brief description. In this case this leads to an
ambiguous overview over the IPC send functions.
9 years ago
Ludwig Ortmann 0b8271a08a Merge pull request #2429 from authmillenon/all/doc/enable-helper-macros
doc: enable helper macros for doxygen
9 years ago
Oleg Hahm e75d9505ae core: added missing semicolon in header 9 years ago
Oleg Hahm b441cdfb3a core: documentation: document msg_reply_int() 9 years ago
Oleg Hahm 460dcdf8bb core: documentation: msg_reply returns -1 on error 9 years ago
Martine Lenders 21dd2eb21d doc: enable helper macros for doxygen 9 years ago
Ludwig Ortmann cec87139a5 core, cpu, drivers, tests: remove trailing space 9 years ago
Martine Lenders ffe9678bd1 core: expand documentation of thread_create()
Adds specific documentation for the error return values of
thread_create().
9 years ago
Martine Lenders 29c3fe9830 [SQUASH ME] fix typo 9 years ago
Martine Lenders da10435a61 debug: Make DEBUGF more platform-independent 9 years ago
Martine Lenders 0eb2d78dda doc: use my real name 9 years ago
BytesGalore 714ee38355 boards: core: cpu: drivers: sys: added missing header guards 9 years ago
René Kijewski 5f29fed076 core: introduce `msg_sent_by_int()`
msg_send_int() sets `m->sender_pid = target_pid`. This was used to flag a
message as having been sent by an ISR.

This PR introduces a static inline function `msg_sent_by_int()` and a
specific define for this purpose.
9 years ago
Ludwig Ortmann ad14b60fe7 Merge pull request #1958 from Kijewski/sched_switch-on-run-queue
core: `sched_switch()` switch if not on runqueue
9 years ago
Ludwig Ortmann 093085b4ff native: workaround for missing __builtin_bswap16
Implements a workaround for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624

This is present in current versions of ubuntu 12.04 and debian 7.7 (stable).
9 years ago
René Kijewski 370f926bad core: `sched_switch()` switch if not on runqueue
Fixes #1935.

`sched_switch()` should not only switch if the other priority is higher,
but also if the current thread was moved from the runqueue.
9 years ago
Ludwig Ortmann 6c9e892927 Merge pull request #2139 from OlegHahm/doxygen_fix_core_warnings
doc: core: sched: add some references
9 years ago
Oleg Hahm 07fe5bcc9f Merge pull request #1709 from benpicco/hwtimer_fix
allow HWTIMER_SPEED > 1000000
9 years ago
Oleg Hahm 000450c894 Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
Doxygen eliminate warnings pt. 2
9 years ago
Oleg Hahm 0ccf1043de doc: fixed broken doxygen references 9 years ago
Oleg Hahm 5adb43cc75 doc: add some references 9 years ago
Oleg Hahm 6310927ed7 doc: document internal cib init macro 9 years ago
Oleg Hahm e9426ef9ab core: undefining ENABLE_DEBUG is no longer required 9 years ago
Ludwig Ortmann e6c808d5fa Merge pull request #1970 from Kijewski/optimize-cib
core: inline `cib.c`
9 years ago
Oleg Hahm d92e9af91c doc: fixed broken param descriptions 9 years ago
Ludwig Ortmann 68e1db938c core/hwtimer: fix HWTIMER_SPIN_BARRIER doc 9 years ago
René Kijewski 8a9220a85c core: cib size must not exceed MAXINT/2 9 years ago
Hauke Petersen 2220a9fab0 core/cpu/boards: removed fw_puts from RIOT 9 years ago
Oleg Hahm 459f550be5 Merge pull request #2042 from Kijewski/restrict
c++: `s/restrict/__restrict/`
9 years ago
Oleg Hahm 771b3a4506 Merge pull request #1984 from Kijewski/net_help-is-odd
core: move NTOHL and friends into byteorder.h
9 years ago
René Kijewski f89e1f4a3d c++: `s/restrict/__restrict/`
`restrict` is not a keyword in C++, but `__restrict` is understood by
GCC-ish compilers.
9 years ago
Kaspar Schleiser 9ce0b676b4 core: sys: move ringbuffer to core 9 years ago
René Kijewski 2c370862b7 core: allow inclusion of byteorder.h in C++ code 9 years ago