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

2546 Commits

Author SHA1 Message Date
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
René Kijewski
07f5ca1b22 Add automatized test for sha256 2014-02-28 19:01:16 +01:00
René Kijewski
2562f36f47 Merge pull request #819 from kaspar030/tests_fix_shell_tests
tests: test_shell: call "make term" instead of hardcoded pseudoterm
2014-02-28 17:57:07 +01:00
bcf5050d50 tests: test_shell: call "make term" instead of hardcoded pseudoterm 2014-02-28 17:41:07 +01:00
493f17a4bf test_thread_msg_seq: add missing main() return statement 2014-02-28 17:10:53 +01:00
6bc9ad69c3 tests: add test that shows sequence of received messages 2014-02-28 16:13:33 +01:00
Martin Lenders
1e4badf85a Fix coding conventions in sys/transceiver/transceiver.c 2014-02-28 13:39:24 +01:00
Oleg Hahm
049838841a Merge pull request #808 from authmillenon/inet_pton_msp_430_fix
Include kernel.h for inet_pton for MSP-430
2014-02-28 13:14:04 +01:00
Ludwig Ortmann
05dc8ec1cb Merge pull request #790 from LudwigOrtmann/fixup_685
core: fixup for 685
2014-02-28 10:43:14 +01:00
Martin Lenders
3225683d2f Include kernel.h for inet_pton for MSP-430 2014-02-28 00:14:54 +01:00
Oleg Hahm
ca8836279a Merge pull request #807 from LudwigOrtmann/examples_rpl_udp
examples: fix rpl_udp README regarding invocation
2014-02-27 16:38:28 +01:00
Ludwig Ortmann
34c85da954 examples: fix rpl_udp README regarding invocation 2014-02-27 16:35:07 +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
Ludwig Ortmann
2cd3f04fc6 Don't use INCLUDES for building any native at all.
native modules will never need the dynamic INCLUDES, so we define our
own NATIVEINCLUDES. Due to the current make structure, the only way to
not use INCLUDES is to redefine the build rules.
2014-02-27 10:30:30 +01:00
Ludwig Ortmann
a5776613bc Merge pull request #803 from LudwigOrtmann/couple_include_defs
make: couple include path and -I
2014-02-27 09:56:20 +01:00
Ludwig Ortmann
ac21f3c54c make: couple include path and -I
This is necessary if includes have to be filtered, such as in native
to throw out RIOTs posix includes which interfere with system
includes.
2014-02-27 08:14:33 +01:00
Ludwig Ortmann
6eb8da137e Merge pull request #800 from OlegHahm/msp430_sys_time
cpu: msp430-common: adding sys/time.h for msp-430
2014-02-27 08:08:50 +01:00
René Kijewski
f58369ff91 Don't build PKGs twice 2014-02-27 01:29:38 +01:00
Oleg Hahm
72966fec39 adding sys/time.h for msp-430 2014-02-27 00:17:14 +01:00
Ludwig Ortmann
470bd7f17f Fixup for #685
- use DEVELHELP for native as well
- fix function name in documentation
- improve documentation language/spelling
2014-02-26 21:49:54 +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
Oleg Hahm
0c14597ec2 Merge pull request #685 from rousselk/panic
Panic
2014-02-26 16:26:27 +01:00
Christian Mehlis
5247fa48e1 Merge pull request #756 from josephnoir/add_test_pthread_factorial
tests: Add test for pthread
2014-02-26 16:08:45 +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
3f44bf30c7 Merge pull request #785 from authmillenon/fix-libcoap-make
pkg:libcoap: Fix libcoap make
2014-02-26 15:42:56 +01:00
Martin Lenders
2cc4682716 Fix libcoap make 2014-02-26 15:40:41 +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
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.
2014-02-26 14:55:50 +01:00
René Kijewski
5cab0ea68a Merge pull request #3 from mehlis/shell-args-prefix
shell: adapt register prefix command to new shell api
2014-02-26 14:12:31 +01:00
René Kijewski
a5c0518e0e Fix _settime_handler 2014-02-26 14:08:54 +01:00
Christian Mehlis
9d9f114f42 shell: adapt register prefix command to new shell api 2014-02-26 13:55:20 +01:00
Raphael Hiesgen
310ac02ad7 Adds test for pthread.
The test uses pthread to calculate the factorial of 12, with one
thread for each multiplication. pthread_mutex is used for synchronization.
2014-02-26 13:52:08 +01:00
René Kijewski
28c4ef45f7 Do not skip over the null terminator 2014-02-26 13:21:25 +01:00
Ludwig Ortmann
e536d706e2 Merge pull request #788 from LudwigOrtmann/714_fixup
remove hwtimer from test_irq
2014-02-26 13:17:46 +01:00
Ludwig Ortmann
23bccdf247 remove hwtimer from test_irq 2014-02-26 10:17:17 +01:00
Christian Mehlis
6f76a4c592 Merge pull request #757 from josephnoir/add_test_thread_factorial
tests: Add test for riot thread
2014-02-26 09:21:40 +01:00
Christian Mehlis
17b534619c Merge pull request #780 from mehlis/fix-bloom-test
test: fix bloom filter test
2014-02-26 09:13:13 +01:00
Oleg Hahm
b4a8788210 fixed typo 2014-02-26 08:18:17 +01:00
localadmin
0b8d5cf973 Adds test for riot threads.
The test uses riot threads to calculate the factorial of 12,
with one thread for each multiplication. The core mutex is
used for synchronization.
2014-02-25 21:58:56 +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
0eb7597ab1 Convert examples 2014-02-25 17:54:17 +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
Oleg Hahm
95e7df7f49 Merge pull request #783 from authmillenon/fix-at86rf231-followup
drivers : Make at86rf231_switch_to_rx() public to use with transceiver
2014-02-25 16:45:19 +01:00