1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

1273 Commits

Author SHA1 Message Date
Christian Mehlis
246a6c73d2 Merge pull request #1084 from mehlis/ccnl-debug
ccnl: extra debug statements
2014-05-07 21:11:59 +02:00
René Kijewski
5879ccbcd3 Merge pull request #1117 from BytesGalore/add_missing_pthread_cv_header
sys:posix:pthread added missing `pthread_cond.h` to `pthread.h`
2014-05-07 09:11:39 +02:00
Martin Landsmann
61b0331980 added pthread_cond.h to pthread.h
adjusted `test_pthread_condition_variable\main.c` includes reflecting the above change
2014-05-07 07:54:54 +02:00
René Kijewski
b8419d48d9 ccnl: remove type warning 2014-05-07 06:17:11 +02:00
Martine Lenders
48d2ad285b Merge pull request #872 from OlegHahm/rpl_route_shell_command
sys: net: rpl: added RPL route shell command
2014-05-06 13:31:44 +02:00
Oleg Hahm
0018e3a181 shell: added RPL route shell command 2014-05-04 17:52:51 +02:00
René Kijewski
f23dab96d2 sys: rename ringbuffer functions
Closes #1011.
2014-05-03 16:39:39 +02:00
Christian Mehlis
433e40c76e ccnl: extra debug statements 2014-05-02 14:27:34 +02:00
BytesGalore
f4a994ac89 Merge pull request #1076 from BytesGalore/remove_return_from_noreturn_function
sys:posix:pthread removed explicit `return;` from `pthread_exit()`
2014-04-30 07:50:32 +02:00
Martin
fc532ad891 added else branch in pthread_exit() to avoid calling explicit return;
however, this won't help to completely eliminate the warning on returning from a `noreturn` function
2014-04-30 07:22:48 +02:00
Martin
619039e0e2 add pthread condition variable implementation 2014-04-29 18:39:03 +02:00
Christian Mehlis
72036742d8 Merge pull request #1063 from Kijewski/shell_command_t-fix-const
shell: strings in shell_command_t are const
2014-04-28 14:07:36 +02:00
René Kijewski
07cc72576e shell: Comment internal members, too
Closes #979.
2014-04-28 10:41:48 +02:00
René Kijewski
4ed38bd2f3 shell: strings in shell_command_t are const 2014-04-27 14:37:54 +02:00
BytesGalore
9d4d98c9ea Merge pull request #1025 from BytesGalore/add_out_of_bounds_check
sys:posix:pthread added check to avoid array out of bound access
2014-04-25 18:00:07 +02:00
Martin
345e76a0d7 added check to avoid array out of boud access 2014-04-25 17:57:41 +02:00
Christian Mehlis
1e9b9ed0bd Merge pull request #917 from fabianbrandt/rpl_config_split
Splitting rpl_structs.h into structs and config part
2014-04-25 11:42:27 +02:00
Fabian Brandt
85d8cd8e0a Four macros changed to static inline type functions and style fixes 2014-04-25 11:40:22 +02:00
Christian Mehlis
f04007e15f Merge pull request #918 from fabianbrandt/etx_now_routing
ETX-functionality is now part of a common routing-module
2014-04-25 11:33:02 +02:00
Fabian Brandt
ef5eaff1bc ETX-functionality is now part of a common routing-module 2014-04-25 11:30:28 +02:00
Fabian Brandt
2634b3c400 Splitting rpl_structs.h into structs and config part 2014-04-25 11:04:52 +02:00
Christian Mehlis
dcabf10fcb ccnl: appserver: remove unused flag 2014-04-25 09:13:01 +02:00
Christian Mehlis
13b38a46ac ccnl: don't include c files
this fixes a build problem on
debian and ubuntu based systems
2014-04-25 01:48:54 +02:00
Thomas Eichinger
d89faccc78 Merge pull request #1031 from LudwigOrtmann/issue_676
redbee-econotag: fix maca
2014-04-24 10:19:22 +02:00
Christian Mehlis
c1f0ef9fbe Merge pull request #1037 from Kijewski/issue-577
shell: Add doxygen
2014-04-22 16:59:08 +02:00
René Kijewski
14401ede42 shell: Add doxygen
Closes #577.
2014-04-22 08:03:15 +02:00
Christian Mehlis
206e6688a7 ccnl: find bogus looping content 2014-04-19 21:09:12 +02:00
René Kijewski
9a5a8a2452 Add pthread_rwlock test 2014-04-18 16:26:12 +02:00
René Kijewski
10d36df795 pthread: implement reader/writer lock 2014-04-18 16:20:47 +02:00
René Kijewski
542a2e5d9d Merge pull request #995 from Kijewski/issue-993
Make: exterminate 'clean' buildtarget clutter
2014-04-18 16:11:15 +02:00
René Kijewski
72df45ea02 Merge pull request #1017 from Kijewski/issue-980
documentation: Add missing documentation for pthread functions and structures
2014-04-18 16:08:06 +02:00
Ludwig Ortmann
3a1980af36 redbee-econotag: fix maca
I suspect that the transceiver will still not work as there are many
many warnings, but at least it builds now.

closes: #676
2014-04-18 16:05:23 +02:00
Christian Mehlis
1bc74f4fef Merge pull request #1001 from mehlis/ccnl-defaulttransceiver
ccnl: use default transceiver
2014-04-18 15:12:09 +02:00
Christian Mehlis
dcf4c3a80e Merge pull request #1021 from Kijewski/vtimer_now-no-16bit-overflow
vtimer: fix integer overflow in vtimer_now() for MSP-430
2014-04-18 12:00:27 +02:00
Christian Mehlis
c2846a07b9 ccnl: use default transceiver 2014-04-18 11:45:53 +02:00
René Kijewski
3101083f13 pthread: fix spinlock 2014-04-18 03:19:31 +02:00
René Kijewski
3e6bebadd3 Add missing doxygen for pthread funs and structs 2014-04-18 03:19:31 +02:00
René Kijewski
f2e28c8146 Merge pull request #1016 from BytesGalore/fix_cpp_pthread_id
posix:pthread c++11 changed pthread_self() to return thread IDs > 0
2014-04-17 16:44:43 +02:00
René Kijewski
77c296cf59 vtimer: fix integer overflow in vtimer_now() for MSP-430 2014-04-17 14:46:21 +02:00
Martin
e159d0b38a changed return value to 0 on lookup fail in pthread_self() 2014-04-17 14:31:36 +02:00
Martine Lenders
0e4d2909a6 Merge pull request #830 from authmillenon/fix_test_pnet
tests: Fix test_pnet
2014-04-17 01:40:27 +02:00
Martin Lenders
4e1da23817 Fix test_pnet
fixes #829
2014-04-16 17:44:46 +02:00
Martin
f3566f0b8a changed pthread_self() to return thread IDs > 0 2014-04-16 17:31:47 +02:00
Christian Mehlis
65bd8f03c1 ccnl: remove useless compare
This compare is useless for CCN lite in RIOT, because
a face has always an interface with index >= 0
2014-04-14 00:08:44 +02:00
Christian Mehlis
987f2576e0 ccnl: LRU is the replacement strategy, rename variable to express this 2014-04-11 11:53:03 +02:00
René Kijewski
300d6b3e35 Make: exterminate 'clean' buildtarget
Closes #993.

We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.

This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
2014-04-09 23:07:52 +02:00
Martin Lenders
9ee7956e53 Fix length of fragmentation buffer in 6LoWPAN 2014-04-09 16:07:46 +02:00
Martine Lenders
139da0a5b4 Merge pull request #873 from OlegHahm/on_link_check
net: sixlowpan: removing possible invalid check
2014-04-09 16:02:56 +02:00
Oleg Hahm
8a86f493b4 Merge pull request #821 from Kijewski/pthrad_cleanup
posix: Add pthread_cleanup handlers
2014-04-09 00:19:17 +02:00
Oleg Hahm
786cd0a5f7 Merge pull request #986 from Kijewski/a-minor-fix-for-issue-672-not-everything-but-better-than-nothing-i-guess-or-what-do-you-think
make: replace findstring with filter in sys/Makefile
2014-04-09 00:16:26 +02:00
Oleg Hahm
56c5df7097 Merge pull request #813 from Kijewski/add-pthread_barrier
posix: Add `pthread_barrier_*` functions
2014-04-09 00:08:23 +02:00
René Kijewski
fbc4531877 make: replace findstring with filter in sys/Makefile 2014-04-08 19:25:51 +02:00
René Kijewski
eaca16d07a Add pthread_barrier_t documentation 2014-04-06 19:25:15 +02:00
René Kijewski
9202a482d5 Add pthread_barrier_* functions
Compare [`pthread_barrier_init`][1].

  [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_barrier_init.html
2014-04-06 19:25:15 +02:00
Martin Lenders
d9fdbca9de Fix dereferencing of type-punned pointer
Fixes #897
2014-04-05 20:42:08 +02:00
René Kijewski
b44b88a6ed pthread_cleanup: better documentation 2014-04-04 18:03:29 +02:00
René Kijewski
b54962689a posix: Add pthread_cleanup handlers
With `pthread_cleanup_(push|pop)` you can define a function that should
be ran if the thread is exited while it is inside this scope. A thread
can be ended here through an explicit call to `pthread_exit()`, or if
cancellation was requested and a cancellation point was hit.

`pthread_cleanup_*` is mostly only useful together with cancellation
points, and cancellation points are only useful with a cleanup
functionality. Cancellation points are at least partially implemented by
means of `pthread_testcancel()`.

C.f. ["Cancellation Points"][1].

  [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_05_02
2014-04-04 18:03:29 +02:00
Martine Lenders
f9d8f1fc75 Merge pull request #798 from Kijewski/usemodule-includes
Make: Add include paths automatically for USEMODULES
2014-04-01 17:25:48 +02:00
Oleg Hahm
2b7e41b742 Merge pull request #963 from LudwigOrtmann/make_remove_makebase
make: replace MAKEBASE with RIOTBASE
2014-04-01 17:23:31 +02:00
Ludwig Ortmann
91814e52ae make: replace MAKEBASE with RIOTBASE
closes https://github.com/RIOT-OS/RIOT/issues/959
2014-04-01 16:40:28 +02:00
Martine Lenders
951cc0cdc2 Merge pull request #928 from authmillenon/ndp-nce-remove
Make neighbor cache remove function public
2014-04-01 16:39:06 +02:00
Ludwig Ortmann
aa6246cd49 Merge pull request #937 from mehlis/ccnl-dead-code
ccnl: remove dead code
2014-03-29 20:37:31 +01:00
René Kijewski
de29e4184c Add include paths automatocally for USEMODULES
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.

But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
2014-03-29 16:27:55 +01:00
Ludwig Ortmann
a6fd531783 Merge pull request #874 from OlegHahm/fix_ignore_command
net: transceiver: fix ignore command
2014-03-29 09:42:35 +01:00
Christian Mehlis
51faf0b239 ccnl: remove dead code 2014-03-28 21:27:55 +01:00
Martin Lenders
69903e4cb8 Make neighbor cache remove function public 2014-03-28 10:20:08 +01:00
Benjamin Valentin
113fd6a9cf icmp.c: remove empty else clause 2014-03-28 10:06:44 +01:00
Martine Lenders
03b49e849b Merge pull request #875 from OlegHahm/ip_forwarding
net: IPv6: use forwarding table entry when routing
2014-03-24 15:39:24 +01:00
Martine Lenders
ddebe8ed1a Merge pull request #876 from OlegHahm/iphc_decompression_shift
net: 6lowpan: added missing hdr position shift
2014-03-24 15:36:44 +01:00
René Kijewski
7354c5cc51 Merge pull request #867 from OlegHahm/uart_stacksize
uart: use cpu dependent stack size
2014-03-24 15:30:30 +01:00
Martine Lenders
e64c7c1739 Merge pull request #668 from benpicco/remove_includes
remove unnecessary INCLUDES
2014-03-24 15:20:15 +01:00
Martine Lenders
53264c7a45 Merge pull request #609 from LudwigOrtmann/transceiver_any
anytransceiver pseudomodule
2014-03-24 14:04:02 +01:00
Benjamin Valentin
5f57db794b remove unnecessary INCLUDES from net_help 2014-03-24 11:19:55 +01:00
Benjamin Valentin
167bbd6793 remove unnecessary INCLUDES from ccn_lite 2014-03-24 11:19:28 +01:00
Oleg Hahm
b559459a35 Merge pull request #898 from OlegHahm/rename_tcp_socket_enums
net: destiny: renamed internal TCP enums
2014-03-20 18:17:51 +01:00
René Kijewski
d6ad19b410 Fix issue #896 2014-03-19 14:56:35 +01:00
Oleg Hahm
90ccdd34d2 shell: transceiver: added missing return in error case 2014-03-19 10:26:49 +01:00
Oleg Hahm
b23e157b54 Merge pull request #792 from OlegHahm/etx_fixes
rpl: moved debugging statements from header to c file
2014-03-19 10:23:09 +01:00
Oleg Hahm
5bcbb09b73 net: destiny: fixed typo and further cleanups 2014-03-18 12:03:03 +01:00
René Kijewski
e073d86845 Merge pull request #877 from Kijewski/shell-utf8
shell: fix UTF-8 problem
2014-03-18 11:27:28 +01:00
Ludwig Ortmann
8ac4f3332d core cpu: add defaulttransceiver pseudomodule
update examples/default
2014-03-18 10:18:15 +01:00
Oleg Hahm
5687553411 cosmetics 2014-03-18 10:08:30 +01:00
Oleg Hahm
5e4a9c0e94 net: destiny: renamed internal TCP enums
Rationale: LISTEN was used in MSP430-Lib for the USART.
2014-03-17 19:38:10 +01:00
Christian Mehlis
5733015c27 correct copyright and doxygen 2014-03-16 20:00:47 +01:00
Christian Mehlis
60feb7ea37 posix: move posix semaphore in posix module 2014-03-16 19:48:25 +01:00
Oleg Hahm
3c54edf4d6 Merge pull request #822 from LudwigOrtmann/reboot_signature
core: change reboot signature.
2014-03-16 18:42:23 +01:00
Martin Lenders
a134bb4238 Merge pull request #878 from OlegHahm/unroutable
net: sixlowpan: notify lowpan_transfer when IP packet is not routable
2014-03-13 19:40:41 +00:00
Ludwig Ortmann
9b61d95545 make: don't ignore failures in for loops
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
2014-03-12 11:09:04 +01:00
Oleg Hahm
42dbc44be4 amendment to 169976f 2014-03-10 20:03:14 +01:00
Oleg Hahm
153f2f9e95 notify lowpan_transfer when IP packet is not routable
The IP process silently discarded an unroutable packet without replying to the 6LoWPAN layer, causing that thread to starve.
2014-03-10 19:58:52 +01:00
René Kijewski
97593e9f05 shell: add myself to authors 2014-03-10 18:17:05 +01:00
René Kijewski
a1df6a86bb shell: don't ignore IO errors 2014-03-10 13:48:00 +01:00
René Kijewski
3f289760bf shell: accept UTF8 input 2014-03-10 13:47:33 +01:00
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.
2014-03-10 11:14:27 +01:00
Oleg Hahm
3945a06851 added missing hdr position shift 2014-03-09 19:14:18 +00:00
Oleg Hahm
05ebad4380 use forwarding table entry when routing
So far the entry was looked up, but ignored in the case where the packet
has to be forwarded.
2014-03-09 19:03:59 +00:00
Oleg Hahm
169976f90a fix ignore command 2014-03-09 18:59:35 +00:00
Oleg Hahm
72e1c667a7 removing possible invalid check
Checking for a link local address to determine if a node is on-link is
probably not a valid assumption in most wireless networks.
2014-03-09 18:51:48 +00:00
Martin Lenders
58fb30b8a7 Fix address output of net_if shell command 2014-03-09 08:45:03 +00:00
Oleg Hahm
a0d1fda4a8 use cpu dependent stack size 2014-03-08 15:29:52 +00:00
René Kijewski
83988b2d03 Merge pull request #725 from kaspar030/optimize_thread_status_usage
core: sched: thread: optimize thread status field usage
2014-03-05 17:30:31 +01:00
René Kijewski
a3076c9726 shell: remove clutter from shell's Makefile
Remove clutter that was put into centralized Makefile.includes.
2014-03-04 21:12:17 +01:00
René Kijewski
e15ce49808 Merge pull request #848 from Kijewski/that-annoying-debug-flag-in-pthread-that-effing-needs-to-go-away-already
posix: Disable debug output of pthreads
2014-03-04 18:31:55 +01:00
Oleg Hahm
a6bc8cba28 Merge pull request #843 from authmillenon/fix-lowpan-iphc
sixlowpan: Fix source address IPHC
2014-03-04 13:40:00 +00:00
Martin Lenders
78aa5a4b3d Merge pull request #852 from authmillenon/autoinit-src-addr-mode
net_if/auto_init: Auto init source address mode
2014-03-04 11:58:01 +01:00
Martin Lenders
4c63dae94d Auto init source address mode 2014-03-04 11:14:05 +01:00
René Kijewski
46031a0540 posix: Disable debug output of pthreads
`DEBUG_ENABLED` should be enabled during debugging, and disabled
afterwards.
2014-03-03 22:12:25 +01:00
Christian Mehlis
eb0ceeb773 Merge pull request #794 from Kijewski/shell-args-escape
shell: Allow escaped characters in shell
2014-03-03 18:14:00 +01:00
Christian Mehlis
ef1d9836d3 Merge pull request #806 from Kijewski/sem-pthread-native
native/posix: Don't include sys/types.h in semaphore.h
2014-03-03 17:36:46 +01:00
Christian Mehlis
1ec20ce2f1 Merge pull request #832 from mehlis/ccn-lite-follow-up-11
ccnl: added documentation and proper event handling for dropped packets
2014-03-03 17:25:23 +01:00
Christian Mehlis
1cc5fa57c1 Merge pull request #839 from mehlis/posix-sleep
posix: added sleep and usleep
2014-03-03 17:23:09 +01:00
Christian Mehlis
1a438b64a5 posix: added sleep and usleep 2014-03-03 17:21:48 +01:00
Martin Lenders
332485e466 Fix source address IPHC 2014-03-03 17:16:29 +01:00
Christian Mehlis
64fc465a6a pthread: mutex - return the right values 2014-03-03 13:29:28 +01:00
Oleg Hahm
9255c9cbef removed obsolete buffer 2014-03-02 23:34:07 +00:00
Oleg Hahm
3e4fa5f012 removed error causing packed attribute in net_if 2014-03-02 23:34:07 +00:00
Christian Mehlis
d0025f6652 ccnl: added documentation and proper event handling for dropped packets 2014-03-02 19:13:45 +01:00
Oleg Hahm
6fc1f5843b RPL byte order issues 2014-03-01 19:24:18 +01:00
Oleg Hahm
e8e424f8cd enhanced RPL debugging 2014-03-01 19:24:16 +01:00
Christian Mehlis
80135e6655 Merge pull request #824 from LudwigOrtmann/3des_includes
sys/crypto: remove assert.h include
2014-03-01 17:14:44 +01:00
Ludwig Ortmann
6089de5ef2 Remove useless assert comments
address: https://github.com/RIOT-OS/RIOT/pull/824#issuecomment-36426297
2014-03-01 16:27:18 +01:00
Martin Lenders
bdced318bc Eliminate side effects in icmpv6_csum and make it public 2014-03-01 15:08:19 +01:00
Oleg Hahm
2c76f99f04 nbr_cache_auto_rem does not need an extra thread 2014-03-01 15:08:19 +01:00
Martin Lenders
6c9578c028 Add sixlowpan to auto_init 2014-03-01 15:08:19 +01:00
Martin Lenders
00acab920b Let IPv6 and ICMP use new 6LoWPAN layer (+fixes) 2014-03-01 15:08:18 +01:00
Oleg Hahm
e2e62596be Byte order and rpl problems 2014-03-01 15:08:18 +01:00
Martin Lenders
c9e8adc414 Use net_if in 6LoWPAN layer 2014-03-01 15:08:18 +01:00
Martin Lenders
108989b65d Use net_if in 6LoWPAN MAC layer 2014-03-01 14:44:21 +01:00
Martin Lenders
470d8745e9 Add capability to set and get variable default hop limit 2014-03-01 14:44:21 +01:00
Martin Lenders
78b5f2ae5d Decouple ICMPv6 from 6LoWPAN 2014-03-01 14:44:21 +01:00
Martin Lenders
4e39cbdd54 Put 6LoWPAN border router in its own module 2014-03-01 14:44:21 +01:00
Martin Lenders
90e946eb49 Fix ieee802154_frame module 2014-03-01 14:44:21 +01:00
Martin Lenders
bc4befb4e9 Fix coding conventions for sixlowpan and rpl module 2014-03-01 14:44:21 +01:00
Ludwig Ortmann
c51c135192 sys/crypto: remove assert.h include
It is not used and most platforms don't have it.
2014-03-01 14:43:13 +01:00
Martin Lenders
4a6495987e Add shell commands for interface configuration 2014-03-01 00:48:42 +01:00
Martin Lenders
848ac70f90 Implement net_if module 2014-02-28 23:13:22 +01:00
Martin Lenders
7f8e2c2991 Add getter and setter of long addresses to transceiver 2014-02-28 23:13:22 +01:00
Martin Lenders
fa11d82443 Allow IEEE 802.15.4 addressing types for transceiver
IEEE 802.15.4 has two addressing modes: 16-bit short and the device's
EUI-64. Currently RIOT supports only sending of packets with 16-bit
short addresses via the transceiver interface. This patch allows at
least for the radio chips that support IEEE 802.15.4 to let the
application/upper layer decide which addressing mode to use.

Upper layer implementation will be implemented in follow-up PR to #460
2014-02-28 23:13:04 +01:00
Martin Lenders
1e4badf85a Fix coding conventions in sys/transceiver/transceiver.c 2014-02-28 13:39:24 +01:00
Martin Lenders
3225683d2f Include kernel.h for inet_pton for MSP-430 2014-02-28 00:14:54 +01:00
René Kijewski
6636e9c8e8 native/posix: Don't include sys/types.h in sem
`sys/types.h` contains the native definition for `pthread_*_t`. This
causes clashes if you want to use `semaphore` and `pthread` in the same
application.
2014-02-27 15:26:25 +01:00
Oleg Hahm
1dc3b5910e amendment - to be squashed 2014-02-26 19:07:02 +01:00
Oleg Hahm
28513fce9a moved debugging statements from header to c file
Additionally, declaring the stacks as static.
2014-02-26 18:16:40 +01:00
René Kijewski
03e174ed96 Allow escaped characters in shell
Per #708.

This patch allows escaped characters in the shell, and makes the
apostrophe a quotation mark. The escape character is backslash.

The term "escape character" is used liberally in here: if a backslash is
encountered in the command line, the next character will be taken
verbatim. No escape sequences are understood, i.e. `"\n"` is just the
letter `n`, not a new line.
2014-02-26 18:09:46 +01:00
Christian Mehlis
af87308e2a Merge pull request #782 from OlegHahm/syscall_gettimeofday
sys: vtimer: added gettimeofday syscall
2014-02-26 15:56:53 +01:00
Christian Mehlis
92eaa51f5c Merge pull request #760 from Kijewski/shell-args
shell: Use argc and argv in shell handlers
2014-02-26 15:37:14 +01:00
René Kijewski
a5c0518e0e Fix _settime_handler 2014-02-26 14:08:54 +01:00
René Kijewski
28c4ef45f7 Do not skip over the null terminator 2014-02-26 13:21:25 +01:00
cc0de63289 Merge pull request #713 from OlegHahm/sched_switch_simplification
core: move inISR check into sched_switch
2014-02-25 19:13:41 +01:00
René Kijewski
829966ee32 Print error message on any quoting error 2014-02-25 17:54:17 +01:00
René Kijewski
c507632e50 Use argc and argv in shell handlers
Compare #708.

Now the tokenization of an input line is done by the shell itself. You
may quote arguments with `"..."`. Empty arguments, supplied by `""` are
preserved. Spaces in between arguments are squasheds; spaces inside
quotes are preserved.

You cannot partially quote an argument. You must not use
- `cmd "abc`,
- `cmd abc"def"`, or
- `cmd "abc"def`.
2014-02-25 17:54:17 +01:00
Oleg Hahm
07b0cd8863 added gettimeofday syscall
RIOT's gettimeofday needs to be called from syscalls.c to assure that gcc actually links it.

If an RTC if available and enabled it will be used instead.
2014-02-25 17:41:45 +01:00
Christian Mehlis
6414b55512 Merge pull request #714 from OlegHahm/hwtimer_integration
core: always build and initialize hwtimer
2014-02-25 11:21:46 +01:00
Christian Mehlis
b1fc8d7846 Merge pull request #776 from OlegHahm/uart0_stack_documentation
added documentation of configuring the right debug stack size for uart0 module
2014-02-25 11:12:08 +01:00
Ludwig Ortmann
61df6e05a3 ifdef shell _heap_handler for corresponding module 2014-02-25 10:11:04 +01:00
Ludwig Ortmann
3fd73c60c6 build id shell command only for config module
closes #777
2014-02-25 10:11:04 +01:00
Oleg Hahm
32f918abe8 simplified sched_switch
sched_switch can check ISR itself.
2014-02-25 09:47:58 +01:00
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