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

3295 Commits

Author SHA1 Message Date
Hauke Petersen
854d3fe258 drivers: some adjustments to low-level pwm driver
- adjusted doxygen and boilerplate
- changed return values for start and stop functions
2014-06-11 20:37:21 +02:00
Hauke Petersen
9e0653afbb drivers: added rgbled driver 2014-06-11 20:17:44 +02:00
Hauke Petersen
b588d48a63 boards: added periph_conf.h for msba2 and avsextrem 2014-06-11 19:54:21 +02:00
Hauke Petersen
09e3ac20f1 cpu: added low-level pwm driver impl for lpc2387 2014-06-11 19:54:11 +02:00
Thomas Eichinger
b4fceaca89 Merge pull request #1313 from thomaseichinger/cortexm_crash
cpu:cortex_common: add core_panic function
2014-06-11 15:02:46 +02:00
Thomas Eichinger
3639ae9b25 cpu:cortex_common: add core_panic function 2014-06-11 14:43:02 +02:00
Oleg Hahm
bef04d9f75 Merge pull request #1312 from mehlis/pnet-unused-param
pnet: silence unused argument warnings
2014-06-11 14:31:53 +02:00
Hauke Petersen
186bf386a8 Merge pull request #1295 from haukepetersen/mv_cpu_cortexm-common
cpu: renamed cortexm_common->cortex-m3_common and cleanup
2014-06-11 14:31:39 +02:00
Christian Mehlis
2350809536 pnet: silence unused argument warnings 2014-06-11 13:36:41 +02:00
Hauke Petersen
ebb496cc26 cpu: renamed cortexm_common->cortex-m3_common and cleanup 2014-06-11 00:24:10 +02:00
René Kijewski
3c5f8b0f9e Merge pull request #1308 from N8Fear/fix-typo-and-whitespaces
core/include/arch/irq_arch.h: fix typo and trailing whitespaces
2014-06-10 18:14:05 +02:00
Hinnerk van Bruinehsen
6da0c31265 core/include/arch/irq_arch.h: fix typo and trailing whitespaces 2014-06-10 18:07:41 +02:00
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.
2014-06-10 17:04:39 +02:00
René Kijewski
ce428a8937 Merge pull request #1292 from Kijewski/issue-1288
core/cortex-m: add missing NORETURNs to thread_arch
2014-06-09 22:11:29 +02:00
Oleg Hahm
f6cd96b023 Merge pull request #1300 from cgundogan/fix_wrong_byte_order_ipv6_length
destiny: change byte order of ipv6_header->length
2014-06-09 22:01:41 +02:00
Oleg Hahm
9652c24b71 Merge pull request #1275 from cgundogan/fix_tcp_flags_for_wireshark
destiny: wireshark compliant tcp flags
2014-06-09 21:45:11 +02:00
Cenk Gündoğan
ecf47b1f48 destiny: using a bit field for tcp_header->data_offset is more convenient
In the current implementation the data offset is coded into an uint8_t.
Of this uint8_t only 3 bits apply for the data offset.
The remaining bits represent reserved flags for future use.
However, a proper bit masking is forgotten in order
to obtain the data offset part of this uint8_t.

Therefore, defining this uint8_t as a bit field allows a more convenient
method of access.
2014-06-09 19:37:37 +02:00
Cenk Gündoğan
97da23051a destiny: change byte order of ipv6_header->length
When accessing the length field of an ipv6_header a byte order switch (host -> network) is necessary.
Otherwise, it breaks calculations or the checksum and other tcp related computations.
Furthermore, when writing to ipv6_header->length it is important to switch this
from host byte order to network byte order.
2014-06-08 20:50:45 +02:00
Ludwig Ortmann
4cdd9a246b Merge pull request #1192 from LudwigOrtmann/native_override_pid
native: add id option
2014-06-06 16:31:32 +02:00
Ludwig Ortmann
dbc36fc2c5 native: add id option 2014-06-06 16:30:54 +02:00
Ludwig Ortmann
33f1e11d41 Merge pull request #1274 from sgso/wireshark_dissector
wireshark: fix dissector plugin and expand documentation
2014-06-06 16:29:23 +02:00
René Kijewski
5f30789c30 x86: Use 'versioning' for precompiled newlib 2014-06-06 15:38:54 +02:00
René Kijewski
3d3ada9a26 x86: slightly better debuggable bincode
While tracking down an error in #1253 I ameded newlib a bit to be
slightly better debuggable. Some lengthy macros were removed in favor of
proper functions.

The parameter passing was wrong before (because of a bug in newlib),
because the user provided CFLAGS were overwritten in the subfolders.
It is kinda strange that this did not cause errors.

The standalone version of the toolchain script was deleted, because it
is not reasonable to maintain two scripts.
2014-06-06 15:38:19 +02:00
René Kijewski
b6dc5c9b76 core/cortex-m: add missing NORETURNs to thread_arch 2014-06-05 21:01:35 +02:00
René Kijewski
ed7e233876 core: faster bitarithm_msb 2014-06-05 20:19:10 +02:00
René Kijewski
be1e6d1616 Add bitarithm measuring 2014-06-05 20:19:10 +02:00
René Kijewski
9775a3d199 Add test_ipc_pingpong 2014-06-05 20:19:10 +02:00
René Kijewski
f3bbec633b unittests: core: add test_bitarithm_[ml]sb_all 2014-06-05 20:19:10 +02:00
f7913e31a8 tests: test_vtimer_msg_diff: Makefile s/PROJECT/APPLICATION/g 2014-06-05 14:35:37 +02:00
Cenk Gündoğan
7584ffe887 destiny: fixed condition for error handling
send_tcp returns either the length of the sent data,
or -1, if an error was detected.

The current implementation checks for != 1.
This results in executing the error case, although
there was semantically no error returned from send_tcp.
2014-06-05 14:17:48 +02:00
Cenk Gündoğan
43b7a393b1 destiny: wireshark compliant tcp flags
This enum is also used to set the tcp flags within a tcp header.
With the current values in this enum, wireshark is not able to
recognize the tcp segments as their actual tcp type,
and thus odd messages in wireshark appear.

destiny: reusing tcp flags for combinations
2014-06-05 13:15:00 +02:00
9ee346c9d3 tests: test_vtimer_msg_diff: add some timers, change max values 2014-06-05 12:51:26 +02:00
8d9569d8b0 tests: test_vtimer_msg_diff: use array for timers, change first to 1s 2014-06-05 12:43:16 +02:00
40c939882d tests: add test_vtimer_msg_diff
This test sets three timers and renews them periodically, showing the
difference they accumulate.
2014-06-05 12:35:06 +02:00
Sebastian Sontberg
06433426cf wireshark: fix dissector plugin and expand documentation
The wireshark dissector plugin currently fails with a "Lua Error" when
trying to parse nativenet packets. This patch restores working behaviour
by commenting the offending line introduced in 1258675, which intention
was to account for padding in small packets. It further adds a comment
on how to edit the plugin for the case padding information is required.

The README.md now contains a usage note for configuration on fedora
which might also be helpful for users of other distributions.
2014-06-04 20:36:18 +02:00
Thomas Eichinger
87f0977c21 Merge pull request #1272 from OlegHahm/sched_pidlist_fix
core: fix variable name for sched_pidlist
2014-06-04 12:38:25 +02:00
Oleg Hahm
c679a051d9 core: fix variable name for sched_pidlist 2014-06-04 02:13:06 +02:00
Oleg Hahm
47e5c9055c Merge pull request #1269 from cgundogan/fix_get_waiting_connection_socket_null_check
destiny: segfault due to dereferencing nullpointer
2014-06-04 00:51:41 +02:00
Cenk Gündoğan
f41fe7bb04 destiny: segfault due to dereferencing nullpointer
get_socket(i) returns NULL, when no specific socket is found.
Without an appropriate check for NULL, the current state
of the code leads to a segfault.

destiny: added parens

destiny: continuing the loop makes more sense than returning at first sight of NULL
2014-06-03 22:48:01 +02:00
René Kijewski
aab2311205 Merge pull request #1248 from thomaseichinger/debug_h_doc_fix
core:debug: documentation for `DEBUG_PRINT` was confusing and wrong
2014-06-03 22:42:39 +02:00
René Kijewski
d0d935f996 Merge pull request #1250 from Kijewski/x86-osx-fix-download
x86: fix download script for OSX
2014-06-03 22:41:11 +02:00
René Kijewski
ee02a0f654 x86: fix download script for OSX
Mac OSX does not have `wget`, but `curl`.
It does not understand `tar xJ`, but `tar xj`.
2014-06-03 22:36:00 +02:00
René Kijewski
2231a315d4 vtimer: fix callback usage
There is no need to test the "handler" set in the vtimer struct, and
have some code executed then. We just can make the code to execute the
handler. To lengthy `if else if`, just a call.
2014-06-03 21:07:59 +02:00
Martine Lenders
e84cdd67b7 Merge pull request #1238 from authmillenon/makefile-unittests
unittests: Force execution of $(UNITTEST_LIBS) build target
2014-06-03 17:56:09 +02:00
Ludwig Ortmann
cf555c4ebd Merge pull request #1214 from LudwigOrtmann/issue-1045
native: unix socket path enhancement
2014-06-03 17:26:19 +02:00
Ludwig Ortmann
1e5e19bc23 native: set optional path with unix socket option
fixes #1045
2014-06-03 16:46:40 +02:00
Ludwig Ortmann
e36590cda7 native: fix coding style 2014-06-03 16:46:40 +02:00
René Kijewski
05a4bf7f04 Merge pull request #1057 from Kijewski/sched_switch-current_prio
core: imply current_prio in `sched_switch()`
2014-06-03 15:59:23 +02:00
Oleg Hahm
4298918ba7 rpl: debug: use DEBUGF where necessary 2014-06-03 15:08:50 +02:00
Oleg Hahm
fe788838ef net: IPv6: RPL: more debug output 2014-06-03 15:04:53 +02:00