Ludwig Ortmann
2e190d21ed
doc: fix spelling in core/include
9 years ago
René Kijewski
f7bdc7e4fe
core: thread_measure_stack_free() is only useful for DEVELHELP
9 years ago
René Kijewski
9e3830a72b
core: only store the stack size for DEVELHELP
...
`tcp_t::stack_size` is only examined by the shell command `ps` and
`DEBUG_PRINT`. For the latter one only if `DEVELHELP` was enabled.
This PR guards the member `tcp_t::stack_size` in `#ifdef DEVELHELP`.
Only if DEVELHELP was activated its value get printed by `ps`.
Closes #1287 .
9 years ago
Ludwig Ortmann
c216d2870f
doc: add detailed scheduler documentation
9 years ago
Oleg Hahm
983d056c75
core: harmonizes the data type for the process ID
...
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
9 years ago
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
9 years ago
Cenk Gündoğan
5e8c0c9058
converting tabs to spaces in core ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
'''find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;'''
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
9 years ago
René Kijewski
4032a22719
queue: add queue_t root type
9 years ago
René Kijewski
4c6a6ee4b3
queue: remove unused generic functions
...
Closes #1153 .
9 years ago
René Kijewski
7035ae0051
queue: remove inttypes clutter from core header
9 years ago
René Kijewski
dacbc0043e
core:queue: remove ancient example
9 years ago
Ludwig Ortmann
b3b6cff587
doc: some more author fixes
...
fix all occurences of INRIA as an author
correct Oliver Hahms authorship and indentation
9 years ago
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
9 years ago
Ludwig Ortmann
ce4aaa6970
doc: little mutex.h fixes
...
- a university is not an author
- move internal tags to the right place
9 years ago
René Kijewski
6fae042a60
core: remove unneeded calls to mutex_init()
9 years ago
René Kijewski
e03e20b7f6
core: simplify mutex initializer
9 years ago
René Kijewski
e5d6142823
core: simplify mutex signatures
9 years ago
Ludwig Ortmann
a585eaf752
core/sched: remove MODULE_NSS helpers (API CHANGE)
...
remove thread_getlastpid and last_pid from the API, it is unused
9 years ago
Ludwig Ortmann
147c285365
core/sched: fix pid/tcb & refactor SCHEDSTATISTICS
...
pid and tcb_t were compared instead of pid and pid
SCHEDSTATISTICS:
- reduce hwtimer_now calls
- dont use thread_last_pid anymore
- increase readability
9 years ago
Ludwig Ortmann
9cabdb3043
core/sched: clean up
...
- remove stray spaces
- remove TODOs:
- MODULE_HWTIMER is not a module anymore
- checking for NULL is necessary, at least without API changes:
`sched_task_exit` sets `sched_active_thread` to `NULL`, then exits,
afterwards `cpu_switch_context_exit` calls `sched_run`
9 years ago
René Kijewski
919cddef19
make: rename VERSION into RIOT_VERSION
...
Building MSP boards gives an error, because `VERSION` is somewhere
defined in their toolchain as an integer.
This PR renames `VERSION` into `RIOT_VERSION`, because that's what it
is.
9 years ago
Oleg Hahm
b78a1b32d0
Merge pull request #1387 from LudwigOrtmann/msg_fixup
...
core/msg: clean up after #1285
9 years ago
Hauke Petersen
9001e0c2fb
core: removed duplicated hwtimer_arch.h
9 years ago
Ludwig Ortmann
5ebdf6e745
core/thread: remove thread_create_arg from header
...
It's just a leftover from #856
9 years ago
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
9 years ago
René Kijewski
867246a09f
Add argument to thread_create
9 years ago
Ludwig Ortmann
2a859c78cd
SQUASHME: do it right
9 years ago
Ludwig Ortmann
d8a5ee1ec8
core/msg: set m->sender_pid before it is used
...
fixes `msg_send_to_self` condition
9 years ago
Ludwig Ortmann
b6f2426d16
core/msg: revert part of #1285
...
use m->sender_pid instead of sched_active_pid again
undoes the optimization intended by #1285
fixes uint/int warning
9 years ago
Ludwig Ortmann
5c9a975afb
core/msg: fix, optimize and improve
...
fixes:
fix race conditions by reordering dINTs
prevent null pointer dereference by adding forgotten target check
add forgotten eINTs
replace printf with DEBUG
fix debug messages
optimizations:
optimize pid access
reorder msg_send switches
improvements:
add debug statements
add missing return value to msg_send_to_self documentation
9 years ago
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
9 years ago
Ludwig Ortmann
564f980cf4
Merge pull request #1306 from Kijewski/issue-19
...
core: remove unnecessary tests in sched.c
9 years ago
Thomas Eichinger
8637fe107e
Merge pull request #975 from Kijewski/issue-974
...
core: change in bitarithm implementation
9 years ago
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
9 years ago
René Kijewski
3c5f8b0f9e
Merge pull request #1308 from N8Fear/fix-typo-and-whitespaces
...
core/include/arch/irq_arch.h: fix typo and trailing whitespaces
9 years ago
Hinnerk van Bruinehsen
6da0c31265
core/include/arch/irq_arch.h: fix typo and trailing whitespaces
9 years ago
René Kijewski
a21c3f45bc
core: remove unnecessary tests in sched.c
...
The scheduling gets activated by `kernel_init()` calling
`cpu_switch_context_exit()`. Before this `sched_run()` won't be called.
When it gets called, at least the main thread and the idle thread are
spawned. The idle thread won't die / get killed. So there always is at
least one thread in `runqueue_bitcache`.
Closes #19 .
9 years ago
René Kijewski
b6dc5c9b76
core/cortex-m: add missing NORETURNs to thread_arch
9 years ago
René Kijewski
ed7e233876
core: faster bitarithm_msb
9 years ago
Oleg Hahm
c679a051d9
core: fix variable name for sched_pidlist
9 years ago
René Kijewski
aab2311205
Merge pull request #1248 from thomaseichinger/debug_h_doc_fix
...
core:debug: documentation for `DEBUG_PRINT` was confusing and wrong
9 years ago
René Kijewski
05a4bf7f04
Merge pull request #1057 from Kijewski/sched_switch-current_prio
...
core: imply current_prio in `sched_switch()`
9 years ago
Thomas Eichinger
cf93dc6590
core:debug: documentation for `DEBUG_PRINT` was confusing and wrong
9 years ago
Martin Lenders
2362623490
Fix trailing whitespaces
...
Fixes #1138
9 years ago
René Kijewski
a6fd5bff92
core: imply current_prio in `sched_switch()`
...
There is no need to supply the current priority to `sched_switch()`,
when this function can easily tell the value of
`active_thread->priority` itself.
9 years ago
René Kijewski
1b89f334e3
msp430: provide oneway-malloc implicitly
...
For MSP430 boards oneway-malloc is already used *if* `malloc.h` was
included. The problem is that `malloc.h` is not a standard header, even
though it is common. `stdlib.h` in the right place to look for
`malloc()` and friends.
This change removes this discrepancy. `malloc()` is just named like
that, without the leading underscore. The symbols now are weak, which
means that they won't override library functions if MSP's standard
library will provide these functions at some point. (Unlikely, since
using `malloc()` on tiny systems is less then optimal ...)
Closes #1061 and #863 .
9 years ago
Thomas Eichinger
5808662d05
Merge pull request #1193 from LudwigOrtmann/issue-924
...
core/hwtimer: disable interrupts in hwtimer_remove
9 years ago
Christian Mehlis
67428b5814
core: kernel: improved doxygen documentation
...
also added param[in] to irq.h and fix order of doxygen endguards
9 years ago
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
9 years ago
Ludwig Ortmann
9d4a92003c
core/hwtimer: disable interrupts in hwtimer_remove
...
Before only the hardware timer's own interrupt was being disabled.
This led to a race condition in the following scenario:
```
Thread1:
hwtimer_remove()
hwtimer_arch_disable_interrupt();
// INTERRUPT -> Thread2 (which has a higher priority than Thread1) gets scheduled
Thread2:
...
hwtimer_remove()
hwtimer_arch_disable_interrupt(); // hwtimer interrupt is already disabled
...
hwtimer_arch_enable_interrupt();
...
// yield | terminate -> Thread1 gets scheduled again
Thread1:
... // these instructions are being run with the hwtimer interrupt enabled
hwtimer_arch_enable_interrupt(); // hwtimer interrupt is already enabled
```
Fixes #924
9 years ago
Oleg Hahm
5d7f7dd686
Merge pull request #1079 from BytesGalore/add_NORETURNs
...
core: and cpu: Added NORETURN to functions that should not return
9 years ago
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
9 years ago
Ludwig Ortmann
a0e9f3680b
core/doc: complete io.h
9 years ago
Ludwig Ortmann
c42a56181b
core/doc: complete queue.h
9 years ago
Ludwig Ortmann
93647306d7
core/doc: complete hwtimer.h and hwtimer_arch.h
9 years ago
Hauke Petersen
7df411e7b7
core: improved doxygen documentation
...
improved files complient to issue #950
- thread.h
- flags.h
- debug.h
- crash.h
9 years ago
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
9 years ago
Ludwig Ortmann
2314915ff2
license: fix license header grammar
...
insert missing "is"
9 years ago
Martin Lenders
71a632520b
Fix documentation for mutex.h
9 years ago
Martin Lenders
24db4eee8c
Fix documentation for msg.h
9 years ago
Martin Lenders
c35a7555a3
Fix documentation for lpm.h
9 years ago
Martin Lenders
8048a57e53
Fix documentation for lifo.h
9 years ago
René Kijewski
9a9caf2c68
Exterminate old-style function definitions
9 years ago
Hauke Petersen
608afc4777
Introduced a cleaned-up cpu/core interface
...
- Included a collection of cpu-dependent headers in core/include/arch
- Extracted all interfaces that need to be implemented for a cpu
- Created a mapping between those interfaces and the old ones
- added flag for disabling arch interface
- added missing state to lpm_arch interface
- added arch interface for reboot
- fixed newline issues that were pointed out
- documentation fixes to cpu-core interface
9 years ago
Martin
4e73169b38
added NORETURNs to functions that should not return
...
and added `UNREACHABLE();` to hint the compiler unreachable lines
added right signature for first parameter of `thread_stack_init()`
added `UNREACHABLE();` macro to `cpu/lpc1768/atom.c` and `cpu/msp430-common/cpu.c`
9 years ago
René Kijewski
6f3d0871aa
core/cpu: put __builtin_unreachable() into one place
9 years ago
Hauke Petersen
7545eff784
core/cpu/board: moved F_CPU define to board
9 years ago
Oleg Hahm
13c615ac17
documentation: fixed doxygen for schedstats
9 years ago
Oleg Hahm
6e27e1cdbb
bitarithm: remove unused macros
9 years ago
Oleg Hahm
81fe4b6afc
documentation: extend description for CONST attribute
9 years ago
Oleg Hahm
5a63f3ab1c
core: documentation: fixed typo in license header
9 years ago
Oleg Hahm
50c9d2da90
core: documentation: replaced task w/ thread
9 years ago
Oleg Hahm
2d338feac4
core: documentation: fixed bitarithm documentation
9 years ago
Oleg Hahm
25a2122f83
core: documentation: updated, improved, and completed doxygen comments
9 years ago
Oleg Hahm
d8c8583d9b
Merge pull request #1058 from Kijewski/issue-726
...
core: Remove `STATUS_TIMER_WAITING`
9 years ago
René Kijewski
055053a4d7
core: Remove `STATUS_TIMER_WAITING`
...
Closes #726 .
The thread state `STATUS_TIMER_WAITING` is not used anymore.
This PR removes the value.
The number in `STATUS_ON_RUNQUEUE` is replaced by a reference.
9 years ago
Kévin Roussel
f763cb9ec2
Make implementation of hwtimer_spin() easier to read and understand
9 years ago
Christian Mehlis
67d7d1fa96
core: improved doxygen documentation
9 years ago
Christian Mehlis
7b91ea9349
core: fix warning about discarding volatile
9 years ago
Thomas Eichinger
082a583ec6
Merge pull request #955 from thomaseichinger/fix_doc
...
core: documentation: fix doxygen documentation in cib.h clist.h config.h tcb.h
9 years ago
Thomas Eichinger
d566ae9a28
fix doxygen documentation for clist.h, config.h, tcb.h and cib.h
9 years ago
Kévin Roussel
24f5cfafbb
Add the ability to send a message to the current thread's message queue
...
(without raising an error)
9 years ago
Martin Lenders
8d1537a99c
Remove duplicate function definition in queue.h
9 years ago
Hauke Petersen
8a937e1a1c
hwtimer: clean up of interfaces to board/cpu
9 years ago
Oleg Hahm
85bd8cae17
check for existence of active_thread
9 years ago
Oleg Hahm
20b5230466
additional debug macro
9 years ago
Oleg Hahm
2ef9b78ccf
add stacksize checker for DEBUG macro
9 years ago
Oleg Hahm
58aa0da315
added missing ENABLE_DEBUG define in mutex.c
9 years ago
René Kijewski
e6d8c6bb99
Merge pull request #859 from Kijewski/mutex-trylock-error
...
core:mutex: allow idle thread to use mutexes
9 years ago
Ludwig Ortmann
e688efdfcf
core: kernel_init: call config_load in kernel_init
9 years ago
Ludwig Ortmann
063a15ce9b
Change reboot signature.
...
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.
Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2 )
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
9 years ago
René Kijewski
83988b2d03
Merge pull request #725 from kaspar030/optimize_thread_status_usage
...
core: sched: thread: optimize thread status field usage
9 years ago
René Kijewski
114eedd764
core:mutex: allow idle thread to use mutexes
9 years ago
René Kijewski
3c65b38881
core:mutex: remove refactor remnant
9 years ago
René Kijewski
80263b2fc0
Merge pull request #728 from BytesGalore/add_unlock_mutex_and_sleep
...
core:mutex: enable atomic execution of unlock a mutex and sleep for a thread
9 years ago
Martin
35106e3391
add test for mutex_unlock_and_sleep()
9 years ago
Martin
05f085d51a
add mutex_unlock_and_sleep()
9 years ago
Kaspar Schleiser
402fae5bbe
Merge pull request #698 from Kijewski/thread_wakeup-dint
...
Changes to `thread_wakeup`
9 years ago
Ludwig Ortmann
470bd7f17f
Fixup for #685
...
- use DEVELHELP for native as well
- fix function name in documentation
- improve documentation language/spelling
9 years ago
Oleg Hahm
0c14597ec2
Merge pull request #685 from rousselk/panic
...
Panic
9 years ago
René Kijewski
791f1cb90f
Changes to `thread_wakeup`
...
`thread_wakeup` did not check if target pid is invalid.
`thread_wakeup` used `dINT` and `eINT` directly.
It should use `disableIRQ` and `restoreIRQ` instead, because there might
be other (good) reasons why one might want to call `thread_wakeup` with
interrupts disabled.
`thread_wakeup` yielded even if the other thread had a lower priority
than the current thread.
9 years ago
Kaspar Schleiser
cc0de63289
Merge pull request #713 from OlegHahm/sched_switch_simplification
...
core: move inISR check into sched_switch
9 years ago
Kévin Roussel
d007207f3e
Add a mechanism for handling fatal errors (and reboots)
9 years ago
Oleg Hahm
32f918abe8
simplified sched_switch
...
sched_switch can check ISR itself.
9 years ago
Oleg Hahm
24f5ec929c
removed duplicate inISR prototype
9 years ago
Oleg Hahm
93e32953b3
always build and initialize hwtimer
...
Eliminates special treatment of the hwtimer module and makes it a
mandatory part of the kernel.
9 years ago
Christian Mehlis
6501707bcb
core: lifo: added the right author
9 years ago
Christian Mehlis
0309fecc19
fix warning: invalid suffix on literal
...
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
9 years ago
Oleg Hahm
7235f9e92c
Merge pull request #729 from BytesGalore/remove_unnecessary_includes
...
core:mutex removed unnecessary includes
9 years ago
Martin
ff36df6847
migrated tcb.h include to .c file
9 years ago
Martin
88c7c47c46
removed unnecessary includes
9 years ago
Kaspar Schleiser
36981c95b9
core: sched: thread: optimize thread status field usage
...
see PR #716 for discussion
9 years ago
Kévin Roussel
dc6f920f33
Merge remote-tracking branch 'origin/reboot' into reboot
9 years ago
Christian Mehlis
3dce0cbb97
Merge pull request #662 from Kijewski/remove-sched_init
...
Do not zero out sched_threads needlessly
9 years ago
Kévin Roussel
ca6db02530
Function attributes are now defined elsewhere ("attributes.h")
9 years ago
Kaspar Schleiser
622d473eb3
core: msg: yield after queueing of a message if REPLY_BLOCKED
...
When setting the running task reply_blocked, it is implicitly removed
from the runqueue. But if queueing of a msg is actually successful, the
thread exits msg_send without yielding, continuing to run even if it's
not supposed to.
Nice example of why multiple function exit points lead to weird
errors...
9 years ago
Kaspar Schleiser
8d07b131db
core: msg: add some debug statements
9 years ago
Kaspar Schleiser
210a20b807
core: msg: don't wake up sender after receive if it's REPLY_BLOCKED
...
solves issue #100
If the sender is reply-blocked, waking it up after its message has been
delivered is wrong. It needs to stay reply-blocked until the reply has
been delivered.
9 years ago
Kévin Roussel
e7d19fd2be
Add a reboot() function to kernel.h definitions.
9 years ago
Kévin Roussel
8ca607bd70
Portable definition of function attributes
9 years ago
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
9 years ago
René Kijewski
7e685d6b36
Do not zero out sched_threads needlessly
...
The function sched_init() zeroes out sched_threads needlessly. All
static variables can be assumed to be initialized with zero, anyways.
The C standard mandates it, and all at other places in the code it is
assumed.
9 years ago
Benjamin Valentin
bbe616f167
add name to sysconfig
...
there is still quite some space left on the persistent flash config area, make it possible to give nodes a name (e.g. hostname of the meshrouter) for nicer debugging
9 years ago
Christian Mehlis
8519dcceed
added @author fields
...
authors found in:
https://github.com/RIOT-OS/RIOT/commits/master/core/cib.c
http://ukleos.org/projects/ukleos/repository/revisions/master/changes/core/cib.c
9 years ago
Kaspar Schleiser
56ee585c81
update Kaspar's email address
...
kaspar.schleiser@fu-berlin.de is obsolete.
(2nd try, first try was overwritten by some overzealous documenter)
9 years ago
Oleg Hahm
d5fd29a658
created doxygen link to STATUS_STOPPED
9 years ago
Oleg Hahm
2cc01bab3f
added documentation for scheduler statuses
9 years ago
Ludwig Ortmann
bcbe6bf5c8
thread_measure_stack_ usage -> free
...
Rename the function as its name suggests the opposite of what it does.
9 years ago
Ludwig Ortmann
81608bdab5
thread_measure_stack_usage documentation
...
fix documentation - the return value is the opposite of what it said
add and improve comments
renamed space to space_free (the name is documentation as well)
9 years ago
Ludwig Ortmann
c42aa8993f
fix regression from #251
...
remove thread_measure_stack_usage from kernel_internal.h again
9 years ago
Oleg Hahm
9eebc532ef
Merge pull request #459 from rousselk/msp430-lpm-freq
...
Msp430 lpm freq
9 years ago
Kévin Roussel
e6d4a0b73a
Added the LPM_UNKNOWN constant to the enum 'lpm_mode'
...
for respresenting unknown/unavailable LPM-related status.
9 years ago
Oleg Hahm
c7d985d371
removed redundant include pathes from Makefiles
9 years ago
Oleg Hahm
593ee623b6
simplify and unify include pathes
...
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
9 years ago
Ludwig Ortmann
2fb884a5af
refine DEVELHELP section
...
more efficient to be better suited for ISR
made testcase more clear
9 years ago
Ludwig Ortmann
13bb8df91b
fix typo, improve doc
9 years ago
Ludwig Ortmann
6eb829c680
documentation, remove LIFO_DEBUG, break main
...
add documentation to lifo.h
remove LIFO_DEBUG and use DEVELHELP instead
make the main method which is included break
9 years ago
Ludwig Ortmann
eac60d666f
make reset of freed slots optional
...
addresses https://github.com/RIOT-OS/RIOT/pull/433#discussion_r8472602
9 years ago
Ludwig Ortmann
1a99a44e01
macro consistency and more DEBUG
...
addresses https://github.com/RIOT-OS/RIOT/pull/433#discussion_r8437084
add missing debug statement
9 years ago
Ludwig Ortmann
6021b9f36a
reset unused lifo slots
9 years ago
Ludwig Ortmann
1dac115c68
add debug statements to lifo
9 years ago
Oleg Hahm
903ec54a43
making include directives consistent
9 years ago
Ludwig Ortmann
8dd9db3c45
add some documentation to lpm.h
9 years ago
Oleg Hahm
9eb1daf31e
added thread.h include (necessary since 227c847135
)
9 years ago
Oleg Hahm
227c847135
put prototype for thread_yield() in core/include
9 years ago
Oleg Hahm
891eebd361
Merge pull request #427 from mehlis/hwtimer-debug
...
added some debug output
9 years ago
Hauke Petersen
2df82017a8
Fixed doxygen inconsistensies in sys
9 years ago
Hauke Petersen
edcabf7cb6
Fixed a lot of comments by removing tabs and correcting format.
9 years ago
Hauke Petersen
3785fe956b
Fixed doxygen comments, focused on file headers and group definitions
9 years ago
Christian Mehlis
2527d3d636
added some debug output
9 years ago
Oleg Hahm
07da7b2d45
reverted 18e97f6dd5
9 years ago
Kaspar Schleiser
aaf325c290
Merge pull request #400 from kaspar030/msg_cleanup
...
msg.c cleanup
9 years ago
Kaspar Schleiser
23ecbde1a3
core: msg: whitespace fixes
9 years ago
Kaspar Schleiser
94283789a7
core: msg: rename "n" to something more expressive ("queue_index")
9 years ago
Kaspar Schleiser
af542058ee
core: msg: whitespace fixes
9 years ago
Kaspar Schleiser
f85adf608f
change my email address
...
kaspar.schleiser@fu-berlin.de will be obsoleted soon. Replace it with
kaspar@schleiser.de, which will (hopefully) stay.
9 years ago
Thomas Eichinger
dfdfb448f4
enforce KERNEL_CONF_STACKSIZE_PRINTF in kernel.h
9 years ago
Christian Mehlis
863c0a7e14
Merge pull request #378 from OlegHahm/version_string
...
include version string
9 years ago
Christian Mehlis
05c05661e6
Merge pull request #337 from LudwigOrtmann/hwtimer_cleanup
...
hwtimer.h remove cruft, document, rearrange
9 years ago
Oleg Hahm
529f3fb278
include version string
9 years ago
Ludwig Ortmann
d6c213fb47
fix grammar in license header
9 years ago
Ludwig Ortmann
ed0d108da6
hwtimer.h remove cruft, document, rearrange
...
remove unsused hwtimer_t0* declarations
document hwtimer_now
move hwtimer_now outside the internal section
9 years ago
Oleg Hahm
7c979751e5
Merge pull request #368 from mehlis/findings
...
(non critical) findings
9 years ago
Christian Mehlis
a83a6f2b49
fix some defines in tcb.h
9 years ago
Christian Mehlis
f5d412bf9f
removed unnecessary stdlib.h include
9 years ago
Ludwig Ortmann
d06e0d8717
rename runtime to reflect the unit of measurement
9 years ago
Ludwig Ortmann
ffd8088d1d
proper inttype runtime, declare to import
...
define runtime long as hwtimer_now() uses long
import hwtimer.h instead of declaring hwtimer_now()
9 years ago
Ludwig Ortmann
05431e9e86
improve comments, rename variable
10 years ago
Ludwig Ortmann
2d419e6648
save one long
10 years ago
Ludwig Ortmann
e8a03a8287
improve fix and comment
10 years ago
Ludwig Ortmann
1ef31b3813
fix race condition in hwtimer_spin
10 years ago
Oleg Hahm
cc45909ffc
Merge pull request #236 from OlegHahm/telosb
...
Telosb
10 years ago
Oleg Hahm
5fea3af233
Merge pull request #294 from authmillenon/rewrite_bitarithm
...
Use GCC/Clang builtins for bit arithmetics
10 years ago
Oleg Hahm
e44412d0c1
added debug information to msg_send (similar to msg_send_int)
10 years ago
authmillenon
18e97f6dd5
Use GCC/Clang builtins for bit arithmetics
10 years ago
Ludwig Ortmann
4b02701ad0
document msg_init_queue return values
10 years ago
Ludwig Ortmann
37c9b8ebfd
fix spelling in msg.h
10 years ago
Ludwig Ortmann
f1b89df8d8
explain the "brainfuck condition"
10 years ago
Ludwig Ortmann
5e6cc92291
harmonize msg.c DEBUG statements
...
Use same order (function: [thread_name:] message) throughout msg.c.
Begin message with a capital letter.
10 years ago
Ludwig Ortmann
2d1303763e
fix spelling in msg.c
10 years ago
Ludwig Ortmann
089a15c110
merge thread_measure_stack_usage declarations
10 years ago
Christian Mehlis
495246d2d4
add thread_getname function
10 years ago
Christian Mehlis
9c70e4501c
only include debug functions if needed
10 years ago
Kévin Roussel
d2535f3841
Added missing definition of 'PRIu32' in some RIOT include files
...
to avoid a bug in mspgcc's standard library
10 years ago
Christian Mehlis
9ace6b4807
add missing inttypes include for PRI macros
10 years ago
Christian Mehlis
21ffebc197
add check for a not existing thread
10 years ago
Christian Mehlis
6da0375197
fix macros in the hwtimer
10 years ago
Oleg Hahm
3ad55cce8b
changed default stacksize
...
* the default stacksize no longer set for a thread using printf
* the stacksize for the main thread therefore adds the necessary space
10 years ago
Oleg Hahm
4d2de87724
Merge pull request #135 from OlegHahm/sched_fixes
...
Improving sched.h documentation
10 years ago
Oleg Hahm
2981fe0844
Improving sched.h documentation
10 years ago
Oleg Hahm
9fac7c3f5f
Merge pull request #134 from OlegHahm/sched_fixes
...
Scheduler callback
10 years ago
Oleg Hahm
1709fa600c
re-added the scheduler callback (the actual call was missing)
10 years ago
Oleg Hahm
7dbb97e376
added documentation for sched.h
10 years ago
Oleg Hahm
932c626c6b
moved prototype for sched_register_cb() from C file to header
10 years ago
Oleg Hahm
570c0e717d
removed unused (and ambiguous) definitions of active_thread and sched_threads in kernel_init.c
10 years ago
Oleg Hahm
b6fe284331
fix priority comparison in sched_switch
10 years ago
Christian Mehlis
735c41786d
remove unused static function
10 years ago
Christian Mehlis
6428bd5546
use std include style
10 years ago
Christian Mehlis
00d618634c
add missing include for mutex
10 years ago
Christian Mehlis
a1ce242ffe
Merge pull request #113 from mehlis/oneway-calloc
...
add oneway calloc
10 years ago
Martin Lenders
78db093d09
Merge pull request #105 from OlegHahm/hwtimer_wait
...
fix for #25 by using mutexes for hwtimer_wait
10 years ago
Christian Mehlis
764e0027f1
add oneway calloc
10 years ago
Martin
63146190b3
fix changed prototype parameter 1 of thread_stack_init from void* to void(*)(void)
10 years ago
Oleg Hahm
3f95d72828
fix for #25 by using mutexes for hwtimer_wait
10 years ago
Oleg Hahm
88d2357295
fix warnings from #62
10 years ago
LudwigOrtmann
07c7e8ccd3
Merge pull request #90 from OlegHahm/milestone_1_0_fixes
...
Milestone 1 0 fixes
10 years ago
Oleg Hahm
39a4dc684e
fixes for #62 : eliminate unused parameter warnings
...
NOTE: this commit introduces a kernel API change for mutex_unlock
10 years ago
Oleg Hahm
836ae0d291
fix #11 : initialize queue_node_t n.next in msg_send()
10 years ago
Christian Mehlis
62994314aa
in msg_send_receive: return result from msg_send
10 years ago
Oleg Hahm
f7ecc704a4
fixed includes and include pathes
10 years ago
Oleg Hahm
0bd81f14a4
remove header guard from debug.h and repaired debugging on a per file base
10 years ago
Oleg Hahm
ca75d3c36c
fixed some includes
10 years ago
Oleg Hahm
599e266b55
Revert "removed redefined ENABLE_DEBUG"
...
This reverts commit 69c526f44d
.
Instead of removing ENABLE_DEBUG, define it as zero and replacing the
ifdef preprocessor commands by a simple #if
10 years ago
Oleg Hahm
37467de0d2
fixed printf formatter
10 years ago
Christian Mehlis
837bad38eb
rename kernel_intern.h
...
german "intern" to english "internal"
10 years ago
Christian Mehlis
b8176f4488
fixed printf patterns
10 years ago
Christian Mehlis
c5e62e238b
add missing include
10 years ago
Christian Mehlis
69c526f44d
removed redefined ENABLE_DEBUG
10 years ago
Christian Mehlis
190e24116d
use int explicitly
10 years ago
Christian Mehlis
96cbf4019e
make internal function static
10 years ago
Ludwig Ortmann
7dd9ac6be0
Add msg_try_receive
10 years ago
Christian Mehlis
9549c29ccb
fix missing includes
10 years ago
Oliver Hahm
57cc002c67
Merge branch 'wsn430'
...
Conflicts:
core/include/queue.h
core/queue.c
cpu/msp430-common/hwtimer_cpu.c
cpu/msp430x16x/hwtimer_msp430.c
sys/lib/hashtable.c
sys/net/ieee802154/ieee802154_frame.c
sys/shell/commands/sc_cc110x_ng.c
sys/transceiver/transceiver.c
sys/vtimer/vtimer.c
10 years ago
Oliver Hahm
c8bee9e554
fixed coding style (space after most keywords)
10 years ago
Oliver Hahm
5bae4f841d
added one-time-initialization guard to transceiver
10 years ago
Oliver Hahm
f359453083
fixed doxygen value
10 years ago
Oliver Hahm
ffeb6f8523
fixed coding conventions (correctly this time)
10 years ago
Oliver Hahm
0d6d8390c0
* updated copyright and license headers in various files
10 years ago
Oliver Hahm
d640cf4298
fixed missing include
10 years ago
Oliver Hahm
fdd1d21e8d
Merge branch 'master' into wsn430
10 years ago
Christian Mehlis
a57c25499b
remove recursive include
10 years ago
Oliver Hahm
40edc25022
* cast main function in kernel_init to match prototype
10 years ago
Christian Mehlis
8f74612762
main should always return int
...
this fixes some compiler warnings
10 years ago
Christian Mehlis
b41fd19216
prevent double include of debug.h
10 years ago
Christian Mehlis
42063530c0
clarify: while loop without body is correct here
10 years ago
Milan Babel
df13d9e0fc
Merge branch 'master' of github.com:overflowed/RIOT
...
Conflicts:
drivers/cc110x_ng/Makefile
10 years ago
Milan Babel
edb34b73c0
fixes for the wsn430
...
fixed vtimer for the msp430
added spi module for the wsn430 v1.3b
changed some variables to uintXX_t, fixes overflow on msp430
10 years ago
Ludwig Ortmann
b36ddd7fd7
Merge remote-tracking branch 'upstream/master'
10 years ago
Ludwig Ortmann
c6553f6492
interrupt handling rewrite
...
(including uart0 integration, rt-extension removal)
10 years ago
Oliver Hahm
e69da952de
* forbid the usage of '0' as an parameter for number_of_the_lowest_bit()
10 years ago
Martin Lenders
07e8ac9c19
Remove swtimer
...
see #4
10 years ago
Oleg Hahm
349bec1f0f
* added documentation to kernel_intern.h
10 years ago
Oleg Hahm
e8af0c42c3
* created prototype for cpu_switch_context_exit()
10 years ago
Oliver Hahm
e6177e811a
* moved cpu and board specific parts to corresponding Makefiles
...
* introduced variable for cpu folder
10 years ago
Ludwig Ortmann
f8973bb007
Merge remote-tracking branch 'upstream/master'
10 years ago
Oliver Hahm
0d06e1bc18
Merge branch 'master' of github.com:RIOT-OS/RIOT
10 years ago
Oliver Hahm
7a4dec1830
* replaced new Makefile name in Makefiles
10 years ago
Oliver Hahm
5ffe5a9c27
* renamed makefiles to Makefile
10 years ago
Oleg Hahm
2ed63bd5c6
* removed outdated (and probably confusing) FeuerWhere project as an author
10 years ago
Oleg Hahm
2277b366b2
* removed outdated occurrences of (u|µ)kleos and FeuerWare
10 years ago
Oleg Hahm
68c9a60348
* fixed a copy&paste error in hwtimer_arch.h
10 years ago
Ludwig Ortmann
d65536f77b
native cpu initial import
10 years ago
Oleg Hahm
48e5df9bef
* some clean up
...
* assert active_thread pointer before saving it
10 years ago
Oleg Hahm
5aa00a4f8b
* fixed typo in readme
...
* fixed documentation in irq.h
* moved tools folder to dist
* added check for disk space in build_gnuarm script
* fixed gcc check in this script, too
10 years ago
Oleg Hahm
d31ee82518
* removed legacy projects folder and Jamfiles
10 years ago
Oliver Hahm
9df46b3507
* fixed makefiles for msb-430h support
10 years ago
Oliver Hahm
82f2e3d4e0
* added missing makefiles for msb430h
...
* updated some makefiles and fixed includes for msb430h
10 years ago
Oleg Hahm
5df0bd0cc4
* updated and integrated makefiles
...
* added some auto dependencies
10 years ago
Oleg Hahm
3791039974
* integrated makefiles
...
* fixed some prototypes
* restructured sys
10 years ago
Oliver Hahm
4162a2aff8
[core thread]
...
* added thread_getlastpid() to header
11 years ago
Oliver Hahm
bf96b81f53
[core include]
...
* added header for low-level io operations
11 years ago
Oliver Hahm
e49a17f4f7
Merge branch 'feuerware-integration'
11 years ago
Oliver Hahm
92281753ad
Merge branch 'stable'
...
Conflicts:
core/sched.c
sys/auto_init.c
11 years ago
Oliver Hahm
a20088f6e8
[core sched]
...
* fixed thread_getlastpid()
* enable interrupts again in thread_sleep() to avoid getting stuck w/
disabled interrupts
[cpu lpc2387]
* added hwtimer as dependency for MCI driver
[project test_*]
* fixed some expect scripts
11 years ago
Oliver Hahm
2109f7dc86
[core thread]
...
* added thread_getlastpid
11 years ago
Oliver Hahm
a30a18b3a8
[core msg]
...
* updated documentation of msg_send_receive()
11 years ago
Oliver Hahm
ffc7976aea
[core config]
...
* added prototype for config_load to header
11 years ago
Oliver Hahm
918a31cf8c
[core hwtimer] [cpu arm]
...
* adapted core and arm cpu
11 years ago
Oliver Hahm
551d684155
Merge branch 'master' of ssh://ukleos.org:2222/home/git/ukleos
11 years ago
Oliver Hahm
0d6d3e2c43
[board msba2-common] [sys chardev_thread] [sys shell] [driver cc110x_ng] [core msg]
...
* some cosmetics and cleanups
11 years ago
Oliver Hahm
961b4df179
[core cib] [projects default] [sys shell]
...
* fixed some minor issues found by splint
11 years ago
Oliver Hahm
59a46e0e88
Merge branch 'sixlowpan'
...
Conflicts:
cpu/arm_common/hwtimer_cpu.c
sys/include/vtimer.h
sys/vtimer.c
11 years ago
Oliver Hahm
75b4c946ac
[core hwtimer]
...
* removed double function prototype
11 years ago
Oliver Hahm
e89dc07a05
core/
11 years ago
Oliver Hahm
0fd8127fab
[core msg]
...
* updated IPC documentation
11 years ago
Oliver Hahm
1e0516fe73
[core msg]
...
* updated documentation
11 years ago
Oliver Hahm
a5d1d6d26b
[core scheduler]
...
* added optional callback for scheduler timing statistics
12 years ago
mlenders
9521142842
merged
12 years ago
Oliver Hahm
706d982705
[core kernel]
...
* fixed include search directive for internal header file
12 years ago
Oliver Hahm
5a0e412249
[core sched]
...
* removed declaration from header file
12 years ago
Oliver Hahm
fa94cecf1f
[core mutex]
...
* fixed bug from r5b3209ea
12 years ago
Oliver Hahm
23cd123bdb
[core thread]
...
* fixed wrong struct name in macro
12 years ago
Stephan Zeisberg
5abef6daf2
changed types irq_callback, hashtable, posix_io, s_display_flags, seq_buffer_entry, tcb, toprint to type_t"
12 years ago
Stephan Zeisberg
6a96de0d2f
changed msg to msg_t
12 years ago
Stephan Zeisberg
4bce433513
branch merge
12 years ago
Kaspar Schleiser
5838ce604b
* hwtimer: switched to lifo
12 years ago
Kaspar Schleiser
d5ff633d07
* initial checkin of last in first out array queue (lifo)
12 years ago
Kaspar Schleiser
88ccc555dc
* moved config to sys, split away board specifics
12 years ago
Oliver Hahm
fb1cb91c75
[board/msp-430-common board/msba2 core/]
...
* introduced dummy function for msp-430 config-save
* moved sysconfig from board to core
[sys/transceiver cpu/]
* moved some buffer size defines to cpu dependent parts
* some cleanups
12 years ago
Oliver Hahm
a46cdf189a
* introduced identifiers (include shell commands to get and set)
...
* introduced a system wide configuration
12 years ago
Stephan Zeisberg
9efaa3bbb6
branch merge fixes
13 years ago
Stephan Zeisberg
8264cde342
branch merge
13 years ago
Kaspar Schleiser
3e70da172e
* removed unneccessary double definition of struct
13 years ago
Kaspar Schleiser
3a83ef0824
* msg queue optimization
13 years ago
Kaspar Schleiser
5467d08536
* hwtimer: export hwtimer_now
13 years ago
Kaspar Schleiser
cb79a7a237
* first implementation of msg queues
13 years ago
Kaspar Schleiser
cb1d5c7ab3
* added circular index buffer implementation
13 years ago
Kaspar Schleiser
d40052e24b
* cosmetics
13 years ago
Kaspar Schleiser
0441c5a4a4
* some more mutex related changes
13 years ago
Kaspar Schleiser
21e6aaff24
* fix priority queue insert
13 years ago
Kaspar Schleiser
dad5bf866c
* removed unused prio function
13 years ago
Kaspar Schleiser
8b242c74a8
* mutex changes
13 years ago
Kaspar Schleiser
9122445c27
* align tcb on 32bit boundary
13 years ago
Oliver Hahm
3b9e9befa9
* some cosmetics and lpm flags for UART
13 years ago
Oleg
88c0ec84ee
* added set offset shell command for sht11
...
* introduced command separator for pyterm
* some cosmetics
13 years ago
Oleg
416029d2c0
* changed default project from "hello-world" to "default"
...
* increased main priority to the half of maximum priority
* introduced define for minimum stack size
* decreased stack size for uart0 thread
* merged commands for rtc shell module to one command (date)
* cleanup of header includes
13 years ago
Kaspar Schleiser
ba03f610c4
* fix status size
13 years ago
Kaspar Schleiser
2bf64ea4d0
* make doc reflect latest API change
13 years ago
Kaspar Schleiser
67f72d43ee
Merge branch 'master' of ssh://ukleos.org/home/git/ukleos
13 years ago
Kaspar Schleiser
eff0b1980f
* API CHANGE! changed thread_create so it allocates tcb on stack, removing first argument
13 years ago
Oliver Hahm
d1bff5cb3d
Merge branch 'master' of ssh://ukleos.des-mesh.net/home/git/ukleos
13 years ago
Oliver Hahm
e335ccfb43
* fixed wrong return value for thread_wakeup
...
* changed hwtimer_wait to use thread_sleep instead of mutexes
13 years ago
Kaspar Schleiser
7f8baa8818
* removed unneccessary priority names
13 years ago
Kaspar Schleiser
dc094d442b
* fix msg_reply_int
13 years ago
Kaspar Schleiser
d48c1e6e16
* fix msg_reply_int
13 years ago
Kaspar Schleiser
711ae3b686
* thread: add some more debug statements
13 years ago
Kaspar Schleiser
3b46b2d2af
* fix stack assignment mixup for main / idle threads
13 years ago
Kaspar Schleiser
62035f36c8
* add some more debug statements
13 years ago
Kaspar Schleiser
0f4a72974a
* hwtimer.c cosmetics
13 years ago
Kaspar Schleiser
cc800bcb13
* honour previous IRQ state in error path
13 years ago
Oliver Hahm
5b3209ea19
* check for null pointer in mutex wake waiters function
13 years ago
Oliver Hahm
f38f32f6cc
* added support for sht11 for msb-430-common
...
* fixed some jamfile isssues for msb-430
* fixed arch32 detection for scheduler
* changed sht11 driver to be platform independent
13 years ago
Kaspar Schleiser
11bc939d67
* merge fixes
13 years ago
Kaspar Schleiser
1e238e4131
* massive name changes
13 years ago
Kaspar Schleiser
1206f6fd5e
* massive name changes
13 years ago
Kaspar Schleiser
273f281a2f
* msg: fix msg_reply
13 years ago
Kaspar Schleiser
7a8a07fe08
* msg: fix msg_reply
13 years ago
Stephan Zeisberg
796544b650
fixed buf in msg_reply function
13 years ago
Kaspar Schleiser
f945b72067
* API CHANGE: thread_create no longer uses malloc
13 years ago
Kaspar Schleiser
cfccf0f2ca
* remove mu character from kernel greeting line.
13 years ago
Kaspar Schleiser
a076a765b3
* oneway_malloc: added realloc
13 years ago
Kaspar Schleiser
867fd7f293
* pull in VERY useful defines in thread.h
13 years ago
Kaspar Schleiser
52bca573f4
* make msg_send use IRQ api
...
* msg_send_int now sets sender_pid to receiver_pid
13 years ago
Kaspar Schleiser
72785295a3
* cosmetic
13 years ago
Kaspar Schleiser
e8ad60671b
* fixed kernel name in welcome message
13 years ago
Kaspar Schleiser
91ae1eb6fd
* import from old firekernel repository
13 years ago