Oleg Hahm
70c014d698
doc: additional hint for msg_send_receive()
8 years ago
kushalsingh007
3b7e54b441
Core: Change in description of thread_create function.
...
- Fixes #2136
- Adds warning about creating threads from within an ISR.
8 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.
8 years ago
Oleg Hahm
e75d9505ae
core: added missing semicolon in header
8 years ago
Oleg Hahm
b441cdfb3a
core: documentation: document msg_reply_int()
8 years ago
Oleg Hahm
460dcdf8bb
core: documentation: msg_reply returns -1 on error
8 years ago
Martine Lenders
21dd2eb21d
doc: enable helper macros for doxygen
8 years ago
Ludwig Ortmann
cec87139a5
core, cpu, drivers, tests: remove trailing space
8 years ago
Martine Lenders
ffe9678bd1
core: expand documentation of thread_create()
...
Adds specific documentation for the error return values of
thread_create().
8 years ago
Martine Lenders
29c3fe9830
[SQUASH ME] fix typo
8 years ago
Martine Lenders
da10435a61
debug: Make DEBUGF more platform-independent
8 years ago
Martine Lenders
0eb2d78dda
doc: use my real name
8 years ago
BytesGalore
714ee38355
boards: core: cpu: drivers: sys: added missing header guards
8 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.
8 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).
8 years ago
René Kijewski
310ea35018
Don't evaluate inISR() if not needed
8 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.
8 years ago
Ludwig Ortmann
86189d600e
core: remove remaining dINT occurences
8 years ago
Oleg Hahm
0ccf1043de
doc: fixed broken doxygen references
8 years ago
Oleg Hahm
5adb43cc75
doc: add some references
8 years ago
Oleg Hahm
6310927ed7
doc: document internal cib init macro
8 years ago
Oleg Hahm
e9426ef9ab
core: undefining ENABLE_DEBUG is no longer required
8 years ago
Ludwig Ortmann
0adba81d2e
core/thread: use disableIRQ/restoreIRQ
8 years ago
Martine Lenders
c0b0110de9
core: Fix msg_send_receive
...
Fixes #1935
8 years ago
Oleg Hahm
d92e9af91c
doc: fixed broken param descriptions
8 years ago
Ludwig Ortmann
68e1db938c
core/hwtimer: fix HWTIMER_SPIN_BARRIER doc
8 years ago
René Kijewski
8a9220a85c
core: cib size must not exceed MAXINT/2
8 years ago
Oleg Hahm
d34e14424e
Revert "core: faster bitarithm_msb"
...
This reverts commit ed7e233876
.
8 years ago
Ludwig Ortmann
b4d9c9e6b7
core/msg: coding convention cleanup
8 years ago
Ludwig Ortmann
535839f2d5
core/msg: use disable/restoreIRQ
...
* needed to change internal `msg_send` to allow external disabling of interrupts
8 years ago
Hauke Petersen
2220a9fab0
core/cpu/boards: removed fw_puts from RIOT
8 years ago
René Kijewski
f89e1f4a3d
c++: `s/restrict/__restrict/`
...
`restrict` is not a keyword in C++, but `__restrict` is understood by
GCC-ish compilers.
8 years ago
Kaspar Schleiser
9ce0b676b4
core: sys: move ringbuffer to core
8 years ago
René Kijewski
2c370862b7
core: allow inclusion of byteorder.h in C++ code
8 years ago
René Kijewski
434d6a1f65
core: move NTOHL and friends into byteorder.h
8 years ago
René Kijewski
ff2a1dc61b
core: remove needless test in msg.c
...
`thread.c` initializes a thread with an empty message queue. `cib_put()`
will `return -1` for an empty CIB, so there is no need to test if
`thread->msg_array != NULL`.
8 years ago
René Kijewski
a07b44781d
C++ -_-
8 years ago
Ludwig Ortmann
e4fec18bdc
core/sched: unify DEBUG text syntax, nomenclature
8 years ago
René Kijewski
ab545f83b0
core: inline `cib.c`
...
The functions in `cib.h` are only used in `msg.c`. They are very small,
and proper function calls have a bigger overhead than inlining these
functions.
The difference in .text size (worst to best):
```
+104 native
+69 qemu-i386
+32 mbed_lpc1768
+28 samr21-xpro
-54 chronos
-54 z1
-56 iot-lab_M3
-56 msb-430
-56 msb-430h
-56 msba2
-56 openmote
-56 spark-core
-56 telosb
-56 wsn430-v1_3b
-56 wsn430-v1_4
-58 arduino-mega2560
-60 airfy-beacon
-60 arduino-due
-60 f4vi1
-60 msbiot
-60 pca10000
-60 pca10005
-60 stm32f0discovery
-60 stm32f3discovery
-60 stm32f4discovery
-60 udoo
-60 yunjia-nrf51822
-72 avsextrem
-72 pttu
-120 redbee-econotag
```
8 years ago
René Kijewski
23177e5326
Remove special case for atmega in kernel_types.h
8 years ago
Oleg Hahm
a262de0678
core: always set sender_pid in msg_send_int
8 years ago
René Kijewski
12d157247c
core: sched.c did not compile with DEBUG=1
8 years ago
René Kijewski
c3ba66781d
core: put more intelligence into `queue_msg()`
...
Fixes #1942 .
There were two instances were it was not checked the target thread has a
message queue before queuing the message.
This PR centralizes the check into `queue_msg()`.
8 years ago
Oleg Hahm
4fd3d62f2a
core: msg_receive should yield
...
If a thread sends blocking, but the target thread is not currently in
receive mode, the sender gets queued. If it has a higher priority it
should run again as soon as the target goes into receiving mode.
8 years ago
Oleg Hahm
6b39ce9650
config: moved from core to sys
...
There's no need to run config_load from core directly, can be done by
auto_init.
8 years ago
Oleg Hahm
09f225f6ed
config: use radio_address_t
8 years ago
René Kijewski
9ddbf57709
core: refactor sched_run
...
`sched_run()` was cluttered. Many individual changes were done without a
proper refactoring.
8 years ago
Oleg Hahm
9a61d8cf1c
core: move optional tcb members to DEVELHELP
8 years ago
Oleg Hahm
4885690874
core: update irq_arch documentation
8 years ago
Oleg Hahm
9b1e180cd8
core: eliminate warning
...
This initialized has actually no relevance and is just needed to
suppress a compiler warning.
8 years ago