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
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
Martin Lenders
03975ba003
Make at86rf231_switch_to_rx() public to use with transceiver
2014-02-25 16:03:43 +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
Christian Mehlis
6ff0d86e16
Merge pull request #781 from LudwigOrtmann/sc_id
...
build id shell command only for config module
2014-02-25 11:07:30 +01:00
Kévin Roussel
f4f2519a58
LPC1768 implementation of 'core_panic()'
...
copied from 'arm_common', for make-related reasons...
2014-02-25 10:50:51 +01:00
Kévin Roussel
4f8a29d892
Implemented the crash-handling/reboot mechanism for ARM-based MCUs
2014-02-25 10:50:51 +01:00
Kévin Roussel
03fe9de135
Implemented crash-handling mechanism for 'native' platform
2014-02-25 10:50:51 +01:00
Kévin Roussel
1183555cc3
Implement the crash-handling/reboot mechanism for MSP430 MCUs
2014-02-25 10:50:51 +01:00
Kévin Roussel
d007207f3e
Add a mechanism for handling fatal errors (and reboots)
2014-02-25 10:49:57 +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
Ludwig Ortmann
5e82c06cad
Merge pull request #779 from mehlis/native-unreachable-code
...
native: removed unreachable code
2014-02-25 09:20:06 +01:00
Christian Mehlis
e2c3f668bf
test: fix bloom filter test
2014-02-25 09:06:19 +01:00
Christian Mehlis
261d414649
native: removed unreachable code
2014-02-25 09:02:39 +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
24f5ec929c
removed duplicate inISR prototype
2014-02-24 18:42:13 +01:00