Oleg Hahm
b26ad476ff
added documentation of configuring the right debug stack size for uart0 module
2014-02-24 22:40:02 +01:00
Oleg Hahm
93e32953b3
always build and initialize hwtimer
...
Eliminates special treatment of the hwtimer module and makes it a
mandatory part of the kernel.
2014-02-24 18:36:28 +01:00
Christian Mehlis
8556403f8f
Merge pull request #680 from benpicco/fix_crash
...
set up message queues for the IP and UDP thread
2014-02-24 15:10:19 +01:00
Christian Mehlis
2de9619f21
Merge pull request #758 from Kijewski/issue-755
...
Fix `pthread_self()` confusion
2014-02-22 18:30:11 +01:00
René Kijewski
ca4337ab4d
Fix pthread_self()
confusion
...
This fixes #755 .
The pthread ID cannot be reused as soon as the thread ends, because
another thread needs to join it first. `pthread_self()` uses the native
(i.e. RIOT's) thread ID to distinguish itself. A native thread ID can be
reused as soon as the thread ends, since the core knows no join
operation.
In order to not confuse itself with an earlier zombie thread (i.e a dead
non-detached thread, that was not joined, yet), we need to invalidate
the associated native thread ID.
This approach is sane since a dead thread won't call `pthread_self()`
anymore.
2014-02-21 17:44:08 +01:00
René Kijewski
cb423c0ac4
Fix linkage of pthread_reaper_stack
2014-02-21 14:03:55 +01:00
Christian Mehlis
3e980184a8
Merge pull request #748 from authmillenon/fix-possible-null-pointer-errors
...
bughunt: Fix possible null pointer dereference
2014-02-20 21:41:50 +01:00
René Kijewski
e55fd19d5c
Fix the makefile of sys/random
...
The Makefile must not overwrite the include paths.
2014-02-20 17:16:57 +01:00
Christian Mehlis
48f23aa43d
Merge pull request #734 from mehlis/native-c++-fixes
...
C++ compiler warnings (native, core)
2014-02-20 10:27:37 +01:00
Martin Lenders
4119e15e6b
Fix possible null pointer dereference
2014-02-20 02:29:33 +01:00
Christian Mehlis
e865022a31
pthread: initial add
2014-02-19 23:39:38 +01:00
Christian Mehlis
a21c8d41e1
ccnl: fix 'no break' warning in switch
2014-02-19 23:23:54 +01:00
Christian Mehlis
87d8e4f99c
enable nonces in interests
2014-02-19 23:23:53 +01:00
Christian Mehlis
9fa0844f3f
added nonce timeout
2014-02-19 23:23:53 +01:00
Martin Lenders
df83221983
Hotfix for error introduced in #678
2014-02-18 22:44:00 +01:00
Christian Mehlis
0309fecc19
fix warning: invalid suffix on literal
...
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Oleg Hahm
b42496475a
Merge pull request #724 from rousselk/reboot
...
Reboot
2014-02-18 13:33:49 +01:00
Christian Mehlis
6578669e46
Merge pull request #718 from Kijewski/issue-693
...
"Exterminate `} else {`"
2014-02-18 12:42:54 +01:00
Christian Mehlis
cb9c5d00de
repace project by application in documentation
2014-02-18 12:28:32 +01:00
Christian Mehlis
980bd2e7a4
ccnl: fix memory leak on CS error
2014-02-18 12:17:53 +01:00
53347540d1
sys: update ps to reflect thread status variable changes
2014-02-17 12:57:27 +01:00
Kévin Roussel
dc6f920f33
Merge remote-tracking branch 'origin/reboot' into reboot
2014-02-17 12:00:19 +01:00
René Kijewski
2349d0806e
"Exterminate } else {
"
2014-02-16 23:29:47 +01:00
René Kijewski
6dea183eac
Merge pull request #721 from mehlis/fix-avaiable
...
ccnl: fix two typos
2014-02-16 23:14:44 +01:00
Christian Mehlis
fcabb3be2a
ccnl: fix two typos
2014-02-16 23:12:51 +01:00
Christian Mehlis
8897c67677
ccnl: fix ageing timeout
2014-02-16 22:45:32 +01:00
Oleg Hahm
6c0482b976
Merge pull request #701 from Kijewski/issue-672
...
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Ludwig Ortmann
47aa7b4bb2
reflect the original intent of the unused ignore_add parameter
2014-02-15 12:58:55 +01:00
Ludwig Ortmann
5ede3a82df
fix ignore_add unused parameter warning
2014-02-15 12:11:47 +01:00
René Kijewski
24defa5289
Merge pull request #572 from Kijewski/quad-math
...
Add quadword math library
2014-02-15 03:55:50 +01:00
0e9c91f696
Merge pull request #704 from mehlis/for-while
...
replace all endless for loops by while
2014-02-14 18:50:00 +01:00
Christian Mehlis
4fd6d73125
Merge pull request #678 from mehlis/shell-no-copy
...
shell: remove useless copying of input string
2014-02-14 18:03:14 +01:00
Christian Mehlis
38529e3296
replace all endless for loops by while
2014-02-14 17:47:33 +01:00
Ludwig Ortmann
523129c1d6
add system calls to the shell
2014-02-14 17:17:25 +01:00
René Kijewski
47e11ddfe3
Split } else {
lines per #693
2014-02-14 14:36:06 +01:00
René Kijewski
102dc45382
Eliminate findstring in more places
2014-02-14 14:30:16 +01:00
René Kijewski
d86509db66
Use filter
instead of findstring
...
See #672
2014-02-14 00:30:34 +01:00
Benjamin Valentin
4068133f3d
also add msg_queue for UDP
...
All other layers in the network stack use a msg_queue to not drop messages, which in this context represent packages.
This finally fixes the random crashes when UDP network traffic is present. Turns out RIOT is not handling lost messages well.
2014-02-13 07:07:46 +01:00
Benjamin Valentin
95d3aae48c
actually use msg_queue in ip.c
...
msg_queue is defined but never used, hook it up so IP packets get queued instead of dropped when there is more than one.
change the name to ip_msg_queue to avoid naming conflicts.
2014-02-13 07:07:07 +01:00
Thomas Eichinger
17b624e0a4
Merge pull request #681 from OlegHahm/at86rf231_fixes
...
at86rf231: fix includes and shell commands
2014-02-12 09:46:13 +01:00
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
2014-02-11 18:45:06 +01:00
Oleg Hahm
f379eefbd8
fix includes and shell commands for at86rf231
2014-02-11 17:15:03 +01:00
Oleg Hahm
49c6a3af55
Merge pull request #655 from OlegHahm/cc110x_header
...
include cc110x.h instead of deprecated interface.h
2014-02-11 15:47:24 +01:00
René Kijewski
0054d4bb54
Adapt quad lib to RIOT coding conventions
2014-02-11 15:27:51 +01:00
René Kijewski
3dff8ed10c
Add compile time checks to quad.h
2014-02-11 15:24:21 +01:00
René Kijewski
76bbac4c2b
Add quadword math lib
...
GCC implicitly calls functions like __adddi3 to handle arithmetics on
long long.
Copied from http://ftp3.usa.openbsd.org/pub/OpenBSD/src/lib/libc/quad/
which is curtesy of the OpenBSD project (3 clause BSD license).
2014-02-11 15:24:21 +01:00
Oleg Hahm
0e734f5c38
Merge pull request #663 from authmillenon/rm-addr-conv-dep
...
Remove destiny header dependency from net_help
2014-02-11 13:41:21 +01:00
Oleg Hahm
30b6c16512
include cc110x.h instead of deprecated interface.h
2014-02-11 13:36:40 +01:00
Christian Mehlis
bfadc1a18e
Merge pull request #640 from benpicco/fixes
...
newlib doesn't support the z modifier
2014-02-10 20:33:42 +01:00
Christian Mehlis
33239487bf
shell: remove useless copying of input string
2014-02-10 15:41:04 +01:00
Christian Mehlis
14cb81d914
Merge pull request #639 from mehlis/remaining-license
...
added licenses to some files
2014-02-10 10:18:01 +01:00
Benjamin Valentin
2e26bb7214
newlib doesn't support the z modifier
...
on msba2 this will print
Initializing transport layer packages. Size of socket_type: zu
2014-02-08 21:31:13 +01:00
Christian Mehlis
7ccf0e0858
Merge pull request #643 from N8Fear/fix_memleak_ccn-lite-ctrl
...
fix memory leaks in sys/net/ccn_lite/util/ccn-lite-ctrl.c
2014-02-08 12:57:21 +01:00
Christian Mehlis
8076d1c3a6
Merge pull request #647 from benpicco/patch-1
...
proper line breaks in payload debug output
2014-02-08 12:23:28 +01:00
Christian Mehlis
050b714e78
added licenses to some files
2014-02-08 12:20:28 +01:00
Martin Lenders
e5df49dc5e
Remove destiny header dependency from net_help
2014-02-08 00:31:02 +01:00
Ludwig Ortmann
3ba156883b
Merge pull request #278 from LudwigOrtmann/transeiver_command
...
unify tranceiver shell commands
2014-02-07 18:57:19 +01:00
Ludwig Ortmann
7584fd04a4
fix maca get_channel transceiver switch
2014-02-07 18:56:04 +01:00
Ludwig Ortmann
e091c17040
make transceiver get/set address type safe
2014-02-07 18:56:04 +01:00
Ludwig Ortmann
062a5b93f4
replace shell commands for different transceivers with one transceiver command
2014-02-07 18:56:04 +01:00
Oleg Hahm
33ef849197
Merge pull request #632 from benpicco/add_name
...
add name to sysconfig
2014-02-07 18:16:46 +01:00
Oleg Hahm
355f6610d5
Merge pull request #482 from OlegHahm/driver_includes
...
Driver includes
2014-02-07 17:21:45 +01:00
Martin
78874331de
fix changed checking order to avoid possible access violation
2014-02-07 09:06:34 +01:00
benpicco
86b2df0ca6
proper line breaks in payload debug output
...
I guess the idea was to make a new line after every 16 elements, not every element except for every 16th
2014-02-07 09:05:28 +01:00
Hinnerk van Bruinehsen
1722b936b8
fix memory leaks in sys/net/ccn_lite/util/ccn-lite-ctrl.c
2014-02-07 00:15:26 +01:00
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
2014-02-06 18:13:48 +01:00
Ludwig Ortmann
87a7211e59
remove trailing newlines
2014-02-06 12:29:18 +01:00
Martin Lenders
4e57b54650
Fix types in transceiver.c
2014-02-06 02:32:38 +01:00
Oleg Hahm
70747d8bb4
streamlined driver include pathes
2014-02-05 18:56:47 +01:00
Christian Mehlis
439b0d2ba5
added LGPL header and doxygen headers
2014-02-03 23:21:41 +01:00
Martin Lenders
df598772d3
Fix net_help include path
2014-02-01 20:00:56 +01:00
Ludwig Ortmann
7c7ff25264
fix calc_rtt
...
closes #192
2014-02-01 11:37:35 +01:00
Christian Mehlis
fb81b3cfdb
Merge pull request #591 from authmillenon/author_oliver
...
Add Oliver Gesch as author of his files
2014-01-31 08:05:43 -08:00
Martin Lenders
333a19db03
Add Oliver Gesch as author of his files and license header
2014-01-31 17:01:51 +01:00
Martin Lenders
5001925831
Fix my licensing
2014-01-31 15:00:21 +01:00
Christian Mehlis
d53744e07c
Merge pull request #558 from mehlis/shell-srand
...
shell: added a handler for PRNG
2014-01-30 02:53:19 -08:00
Christian Mehlis
d0680e7bac
shell: added a handler for mersenne twister
2014-01-30 11:52:29 +01:00
Oleg Hahm
1bca52495e
Merge pull request #545 from OlegHahm/problematic_stack_sizes
...
replaced stack sizes in etx_beaconing by variables
2014-01-29 15:01:49 -08:00
Oleg Hahm
9991991f92
replaced stack sizes in etx_beaconing by variables
...
resolves #356
2014-01-29 23:54:30 +01:00
fbcbd7ff1f
Merge pull request #574 from kaspar030/kaspar_email_change_2
...
update Kaspar's email address
2014-01-29 05:39:57 -08:00
Christian Mehlis
257cfa6f96
Merge pull request #565 from Kijewski/shell-mac-nl
...
Allow Mac linebreaks in shell
2014-01-28 09:24:36 -08:00
Christian Mehlis
b598316294
Merge pull request #561 from mehlis/copyright
...
timex.c: add copyright header
2014-01-28 03:47:05 -08:00
56ee585c81
update Kaspar's email address
...
kaspar.schleiser@fu-berlin.de is obsolete.
(2nd try, first try was overwritten by some overzealous documenter)
2014-01-28 11:53:19 +01:00
Christian Mehlis
97133b9dfb
use one consistent mail address in all places
2014-01-27 20:46:45 +01:00
René Kijewski
891245cf60
Allow Mac linebreaks in shell
...
QEMU uses Mac style newlines in its UART implementation.
This change allows Unix ("\n"), DOS ("\r\n") and Mac ("\r") style
linebreaks.
2014-01-27 19:25:03 +01:00
Christian Mehlis
5fe1a78685
Merge pull request #551 from mehlis/vtimer-mutex
...
use mutex in vtimer_sleep
2014-01-27 05:38:06 -08:00
Christian Mehlis
106b36e201
timex.c: add copyright header
2014-01-24 19:54:56 +01:00
Oleg Hahm
5ef2b04dd0
Merge pull request #562 from mehlis/author-spelling
...
spelling: fix autor to author
2014-01-24 10:16:57 -08:00
Christian Mehlis
96d0eafc1a
spelling: fix autor to author
2014-01-24 19:04:28 +01:00
Oleg Hahm
b060c23cd9
Merge pull request #536 from authmillenon/cc2420-remove-globals
...
Uncircumvent radio chip's status for IEEE 802.15.4 hardware
2014-01-24 08:18:14 -08:00
Oleg Hahm
8f738930c0
Merge pull request #556 from mehlis/remove-math
...
math.h: remove unneeded math.h includes
2014-01-24 07:12:32 -08:00
Christian Mehlis
f2f36f8179
math.h: remove unneeded math.h includes
2014-01-24 15:41:30 +01:00
Martin Lenders
eeee32363e
Fix errors in at86RF231 driver
2014-01-24 13:15:35 +01:00
Christian Mehlis
cb0bb80d0c
ccnl: dynamic memory - client module
2014-01-23 15:30:43 +01:00
Christian Mehlis
607a5f27c3
ccnl: dynamic memory - control module
2014-01-23 15:30:43 +01:00
Christian Mehlis
2ae4755469
ccnl: dynamic memory - appserver module
2014-01-23 15:30:43 +01:00
Christian Mehlis
5f10d44009
use mutex in vtimer_sleep
...
this change prevents a race condition in case of
short sleep time
Fixes: https://github.com/RIOT-OS/RIOT/issues/550
2014-01-23 15:20:43 +01:00
Oleg Hahm
0409d4b3a1
Merge pull request #521 from OlegHahm/fix_includes_for_msp430
...
Fix includes for msp430
2014-01-21 04:49:06 -08:00
Christian Mehlis
fa87339083
ccnl: adapt doc to current code
2014-01-21 11:40:58 +01:00
Oleg Hahm
638bb4ce51
Merge pull request #516 from mehlis/rpl-fixes
...
first set of rpl demo related fixes
2014-01-21 02:28:41 -08:00
Christian Mehlis
348971e4db
trickle: replace call to pow (base of 2)
2014-01-20 16:43:01 +01:00
Oleg Hahm
90f977e7e2
making socket.h MSP430 ready
2014-01-20 14:21:22 +01:00
Oleg Hahm
caf1433389
changed condition in fd.c to check for MCU instead of checking for the board
2014-01-20 14:05:21 +01:00
Oleg Hahm
690c4564f2
include "cpu.h" for MSP430 platforms in fd.h
2014-01-20 13:48:37 +01:00
Ludwig Ortmann
9cd5b4f30d
fix stack_size comment in ps.c
2014-01-20 10:54:14 +01:00
Ludwig Ortmann
bcbe6bf5c8
thread_measure_stack_ usage -> free
...
Rename the function as its name suggests the opposite of what it does.
2014-01-20 10:46:20 +01:00
Christian Mehlis
5c3381b70a
tcp_timer: fix 'remove without use' behavior
2014-01-18 01:20:40 +01:00
Christian Mehlis
860b499fb6
lowpan: fix wrong printf usage
2014-01-18 01:18:37 +01:00
Christian Mehlis
8539517c11
icmp: fix warning of unused parameter
2014-01-18 01:17:31 +01:00
Christian Mehlis
a4f1dc464a
demo: fix printf handling
2014-01-18 01:15:29 +01:00
Christian Mehlis
b6734ce2cb
socket: fix warning of void pointer arithmetic
2014-01-18 01:12:38 +01:00
Martin Lenders
4333467e02
Add auxilary headers
2014-01-17 14:40:57 +01:00
Martin Lenders
419225753c
Wrap RIOT socket API
2014-01-17 14:40:57 +01:00
Martin Lenders
96489b85c6
Define stdin, stdout and stderr
2014-01-17 14:40:57 +01:00
Martin Lenders
ab654573e5
Implementation of close()
2014-01-17 14:40:57 +01:00
Martin Lenders
abe65b09bb
Implement file descriptor table
...
Needed for pnet
2014-01-17 14:40:57 +01:00
Martin Lenders
f9ae76fa4b
Start POSIX net [pnet] module
2014-01-17 14:40:57 +01:00
Martin Lenders
2cf0d02c5e
Auto init destiny
2014-01-17 14:40:56 +01:00
Oleg Hahm
420dc8953b
Merge pull request #504 from mehlis/ipv6-send-return-value
...
ipv6_sendto: return the success
2014-01-16 08:04:00 -08:00
Oleg Hahm
ed8a220cd0
Merge pull request #442 from mehlis/vtimer_get_localtime
...
Vtimer get localtime
2014-01-15 09:19:06 -08:00
Oleg Hahm
01d62a52bc
Merge pull request #430 from mehlis/vtimer-now-fix
...
fix: vtimer_now should return seconds and microseconds
2014-01-15 09:10:29 -08:00
Oleg Hahm
3bf55a227d
Merge pull request #457 from mehlis/vtimer-now-followup
...
fix usage of vtimer_now
2014-01-15 08:51:53 -08:00
Christian Mehlis
8cfab9d014
ipv6_sendto: return the success
2014-01-14 07:29:28 +01:00
Christian Mehlis
b157304481
ccnl: added 'content is dup' debug message
2014-01-11 18:28:32 +01:00
Christian Mehlis
2e1b0b513e
ccnl: data is not a string
2014-01-11 18:18:25 +01:00
Oleg Hahm
a4f4dee028
Merge pull request #456 from mehlis/fix-ping
...
Fix ping
2014-01-09 13:43:47 -08:00
Christian Mehlis
c26a3c0e41
Merge pull request #483 from mehlis/master
...
fix some findings by the static analyser
2014-01-09 13:30:45 -08:00
Oleg Hahm
70c59c3f4b
size of msg_queue must be power of two
2014-01-09 18:19:57 +01:00
Christian Mehlis
93ddf37d81
added timex_isnormalized
2014-01-09 16:36:40 +01:00
Christian Mehlis
a19ff87d21
socket.c: fix usage of timex_t
2014-01-09 16:36:40 +01:00
Christian Mehlis
e28481b1b1
tcp_timer.c: fix usage of timex_t
2014-01-09 16:36:40 +01:00
Christian Mehlis
0934d10e4b
destiny.c: fix usage of timex_t
2014-01-09 16:36:40 +01:00
Christian Mehlis
31849f0771
lowpan.c: fix usage of timex_t
2014-01-09 16:36:40 +01:00
Christian Mehlis
aa159fa4fe
flowcontrol.c: fix usage of timex_t
2014-01-09 16:36:40 +01:00
Christian Mehlis
5a6e16cfc3
added timex_uint64 function
2014-01-09 16:36:40 +01:00
Christian Mehlis
8bcb099384
fix some findings by the static analyser
2014-01-08 17:01:22 +01:00
Christian Mehlis
a59bc0d265
added missing include
2014-01-07 23:23:57 +01:00
Christian Mehlis
9d2fac1e59
removed useless include
2014-01-07 23:23:45 +01:00
Oleg Hahm
48a53373a6
repaired includes for ccn_lite
2014-01-05 16:11:08 +01:00
Oleg Hahm
775c0dee5c
added missing mute prefixes in nativenet and shell
2014-01-05 16:11:08 +01:00
Oleg Hahm
9df07f9238
muting compiler and binutils optionally
...
Instead of muting all compiler and other binutils output by default,
introduce a variable to make this behaviour configurable.
2014-01-05 16:11:08 +01:00
Oleg Hahm
02612ff0ca
further Makefile cleanup
2014-01-05 16:11:08 +01:00
Oleg Hahm
c7d985d371
removed redundant include pathes from Makefiles
2014-01-05 16:11:08 +01:00
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
2014-01-05 16:11:07 +01:00
Oleg Hahm
8d157130ae
move include directives from header to C file
2014-01-05 16:11:07 +01:00
Oleg Hahm
e6b354db5d
mute build tools (to be consistent with the rest of the build system)
2014-01-05 16:11:07 +01:00
Christian Mehlis
3d67ad3a8a
add vtimer_get_localtime
2013-12-23 23:36:03 +01:00
Ludwig Ortmann
c04b7fa8be
add debug information to chardev_loop
2013-12-23 18:21:10 +01:00
Christian Mehlis
0435946e33
fix: 1s = 1000*1000us
2013-12-22 20:21:36 +01:00
Christian Mehlis
f73314c34b
added missing us to ticks macro
2013-12-22 20:21:36 +01:00