Oleg Hahm
8ad299882c
Merge pull request #2191 from cgundogan/rpl_remove_send_mutex
...
rpl: remove send mutex
2015-02-21 13:30:09 +01:00
Martine Lenders
d198724981
sys: clean-up Makefile
2015-02-20 20:20:47 +01:00
Martine Lenders
dad4e8d5df
Merge pull request #2433 from authmillenon/ng_ipv6_addr/feat/initial
...
ng_ipv6_addr: initial import
2015-02-20 19:27:17 +01:00
Martine Lenders
ff36abb2cf
ng_ipv6_addr: initial import
...
The motivation behind this module is to allow for address handling
functions where they, but not the full IPv6 functionality might be
needed. This new version of the IPv6 address data type utilizes the
byteorder.h header to enforce network byte-order on its members.
2015-02-20 17:40:26 +01:00
BytesGalore
9e0ccc395a
sys/net/routing/rpl: catch hardfault when OCP from DIO is not supported
2015-02-19 19:05:27 +01:00
Ludwig Ortmann
4f29a7757e
Merge pull request #2285 from authmillenon/pktbuf/api/use-pkt
...
pktbuf: port to use pkt_t instead of void*
2015-02-19 14:46:15 +01:00
Martine Lenders
41f60aca4c
pktbuf: port to use ng_ version
2015-02-19 13:51:27 +01:00
Hauke Petersen
f33938078b
net/ng_netdev: changed return value of rem_cb
2015-02-18 18:05:23 +01:00
Oleg Hahm
ccd3db6ae8
Merge pull request #2431 from BytesGalore/fix_rpl_correct_byte_order
...
sys/net/routing/rpl: apply correct byte order for RPL messages
2015-02-17 21:46:05 +01:00
BytesGalore
5a0eba2b1e
sys/net/routing/rpl: apply correct byte order for RPL messages
2015-02-17 20:41:11 +01:00
Oleg Hahm
a6e902ff42
Merge pull request #2455 from authmillenon/ng_protnum/feat/initial
...
ng_protonum: Initial import of protocol number defines
2015-02-17 19:54:13 +01:00
Martine Lenders
c4e6504c8e
ng_protonum: Initial import of protocol number defines
2015-02-17 19:17:14 +01:00
Martine Lenders
1126c97dcf
ng_pktqueue: fix documentation
2015-02-15 12:57:43 +01:00
Martine Lenders
fc441064b9
ng_pkt: fix documentation
2015-02-15 12:57:43 +01:00
Martine Lenders
3837e31f59
ng_nettype: fix documentation
2015-02-15 12:57:42 +01:00
Martine Lenders
d32aa48413
ng_netreg: fix documentation
2015-02-15 12:57:42 +01:00
Martine Lenders
84754c1b83
ng_netif: fix documentation
2015-02-13 12:43:42 +01:00
Martine Lenders
580eb63835
ng_netdev: fix documentation
2015-02-13 12:43:37 +01:00
Martine Lenders
0b95b3ae40
ng_netconf: fix documentation
2015-02-13 12:42:46 +01:00
Martine Lenders
c601b72ba7
ng_netapi: fix documentation
2015-02-13 12:42:24 +01:00
Martine Lenders
c80c04d6ed
netreg: Initial import
2015-02-12 16:13:38 +01:00
Martine Lenders
e6f21eee97
Merge pull request #2441 from thomaseichinger/ng_netconf_reset
...
net/ng_netconf: add reset state to ng_netconf_state_t
2015-02-12 15:01:47 +01:00
Martine Lenders
c6777ffeed
Merge pull request #2427 from authmillenon/netapi/api/naming-fixup
...
netdev: unify msg type macro with msg type macros in netapi
2015-02-12 12:02:50 +01:00
Thomas Eichinger
6a425b5784
net/ng_netconf: add reset state to ng_netconf_state_t
2015-02-12 11:48:34 +01:00
Martine Lenders
15a6e2066d
netdev: piggy-back some formatting error
2015-02-11 20:04:58 +01:00
Ludwig Ortmann
a6d9b57930
Merge pull request #2436 from LudwigOrtmann/pr/nstf_doxygen_fixup
...
nstf doxygen fixup
2015-02-11 18:10:55 +01:00
Johann Fischer
2c703e5732
Merge pull request #2434 from jfischer-phytec-iot/fix@recv_ieee802154_frame
...
Fix packet processing in mac layer.
2015-02-11 16:12:08 +01:00
Ludwig Ortmann
c6fb00a235
netconf: fix doxygen
2015-02-11 13:44:08 +01:00
Ludwig Ortmann
eaa9102a6a
netif: fix doxygen
2015-02-11 13:42:06 +01:00
Martine Lenders
b208371163
Merge pull request #2417 from authmillenon/netif/feat/initial
...
netif: Initial import of ng_* version
2015-02-11 12:41:54 +01:00
Martine Lenders
cfc64ff4de
Merge pull request #2342 from authmillenon/pkt/api/simplify
...
pkt: simplify API
2015-02-11 12:41:43 +01:00
Johann Fischer
ce423816af
sys/net/network_layer/sixlowpan/mac.c: add missing p->processing--;
2015-02-11 11:57:46 +01:00
Martine Lenders
cb74094edd
pktqueue: adapt to change in pkt.h
2015-02-11 11:01:33 +01:00
Martine Lenders
7317097db2
pkt: simplify API
2015-02-11 11:01:33 +01:00
Martine Lenders
894cd964f9
netif: Initial import of ng_* version
2015-02-11 10:52:51 +01:00
Martine Lenders
934806394f
netdev: unify msg type macro with msg type macros in netapi
2015-02-10 18:19:04 +01:00
Hauke Petersen
c2cfd89fa5
net/ng_netapi: fixed get/set msg type macro names
2015-02-10 18:04:32 +01:00
Hauke Petersen
bf95a8f089
Merge pull request #2425 from haukepetersen/ng_fix_netdev
...
net/ng_netdev: fixed msg type macro name
2015-02-10 17:46:05 +01:00
Hauke Petersen
157fea687b
Merge pull request #2424 from haukepetersen/ng_fix_netapi
...
net/ng_netapi: fixed typo
2015-02-10 17:45:56 +01:00
Hauke Petersen
f9e2404772
net/ng_netdev: fixed msg type macro name
2015-02-10 17:26:49 +01:00
Hauke Petersen
28ad246c9f
net/ng_netapi: fixed typo
2015-02-10 17:25:15 +01:00
Ludwig Ortmann
4172566fb7
Merge pull request #2423 from LudwigOrtmann/pr/unittest-doc
...
unittest doxygen fixup
2015-02-10 17:17:11 +01:00
Ludwig Ortmann
bfd34a6855
Merge pull request #2421 from LudwigOrtmann/pr/netdev_ng_fixup
...
netdev_ng fixup
2015-02-10 16:55:35 +01:00
Ludwig Ortmann
5db7cb8cc5
sys/embunit: don't doxygen embunit.h content
2015-02-10 15:42:33 +01:00
Ludwig Ortmann
7b0e3c7f74
sys/embunit: add wiki link
2015-02-10 15:42:33 +01:00
Ludwig Ortmann
9d6a3ac46a
sys/embunit: fix doxygen declaration
2015-02-10 15:42:33 +01:00
Martine Lenders
e5e1d0dd6d
Merge pull request #2397 from authmillenon/nettype/feat/initial
...
nettype: intial import
2015-02-10 15:10:08 +01:00
Lotte Steenbrink
52d51a781a
Merge pull request #2419 from BytesGalore/lowpan_release_mutex_on_unknown_iphc
...
sys/net/sixlowpan: prevent deadlock when no IPHC context is recognized
2015-02-10 14:46:35 +01:00
Hauke Petersen
d46d6541c1
Merge pull request #2399 from haukepetersen/ng_netconf
...
ng_net: add global configuration options
2015-02-10 14:26:27 +01:00
Ludwig Ortmann
8234bc87e7
ng_net: unify header guard
2015-02-10 14:22:36 +01:00
Ludwig Ortmann
3f055f18dd
ng_net: fix doxygen group
2015-02-10 14:22:15 +01:00
Martine Lenders
09ebb0e89c
Merge pull request #2400 from haukepetersen/ng_netapi
...
ng_net: add new version of NETAPI
2015-02-10 14:03:27 +01:00
Martine Lenders
9d36c05398
nettype: intial import
2015-02-10 13:32:10 +01:00
BytesGalore
c7eea4d0d5
sys/net/sixlowpan: change to release lowpan.c::lowpan_context_mutex
when no context is recognized
2015-02-10 12:27:56 +01:00
Hauke Petersen
c5c9c3dfab
ng_net: added global configuration options
2015-02-10 11:41:27 +01:00
Hauke Petersen
87e2b6db50
ng_net: added new version of NETAPI
2015-02-10 11:34:56 +01:00
Hauke Petersen
71496771c5
net: added ng version of the netdev interface
2015-02-09 18:53:04 +01:00
Martine Lenders
fe29514597
Merge pull request #2411 from cgundogan/ip_static_addr_str
...
ip: make addr_str static
2015-02-08 22:15:08 +01:00
Ludwig Ortmann
dd2da2fb71
Merge pull request #2405 from cgundogan/restrict_with_leading_underscores
...
Use `__restrict` instead of `restrict`
2015-02-08 22:07:23 +01:00
Cenk Gündoğan
4347039e88
ip: make addr_str static
...
When setting the `ENABLE_DEBUG` flag to *1* in ip.c,
the **rpl_udp** example won't compile, because the variable `addr_str`
is also defined in **rpl_udp.h** as extern.
Prefixing `addr_str` with `static` in ip.c solves this problem.
2015-02-08 22:07:19 +01:00
Martine Lenders
498313a23f
doc: Add mail address where it is missing
2015-02-08 19:41:14 +01:00
Cenk Gündoğan
3ff5231ffd
sys: restrict => __restrict
2015-02-08 19:19:50 +01:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
BytesGalore
4b189b6e58
rpl: added configurable RPL MOP on compile time
...
- e.g. `make RPL_MOP=RPL_MOP_NON_STORING_MODE`
- changed the MOP defines to have `RPL_MOP_*` prefix
2015-02-05 19:17:51 +01:00
Christian Mehlis
f69a5ae1f6
Merge pull request #2374 from cgundogan/bloom_doc_bytes_bits
...
sys/bloom: changed doc from bytes -> bits
2015-02-03 18:16:27 +01:00
Cenk Gündoğan
13e7bbccfc
rpl: wrong length for DAO options
2015-02-03 11:47:07 +01:00
Cenk Gündoğan
c14217c68e
rpl: introduce constants for PREFIX_INFO length with/without RPL_OPT_LEN
2015-02-03 10:41:28 +01:00
Cenk Gündoğan
26095013a1
rpl: introduce constants for DODAG_CONF length with and without RPL_OPT_LEN
2015-02-03 10:41:27 +01:00
Cenk Gündoğan
432688accb
rpl: wrong length of DIO options
...
Currently, the DIO options `dodag conf` and `prefix info` are off by two
bytes in their `length` field. The RFC states, that the length field
should not include the option `type` field and the `length` field (two bytes).
For Prefix Info Option: Option Length: 30 (RFC 6550, P.61)
For Dodag Conf Option: Option Length: 14 (RFC 6550, P.52)
Wireshark complains about DIOs as malformed packets, otherwise.
Can be reproduced by running the rpl_udp example and logging the DIOs
via wireshark.
2015-02-03 10:41:27 +01:00
Cenk Gündoğan
eb202ffe6d
rpl: remove unsused warning
2015-02-02 12:54:58 +01:00
Cenk Gündoğan
f3c6ef7e66
rpl: remove common globals by prefixing with static
2015-02-02 12:54:58 +01:00
Oleg Hahm
5792f37e87
Merge pull request #2367 from x3ro/fix-orphaned-debug-outputs
...
Fix misc errors that occur with ENABLE_DEBUG
2015-01-30 11:05:44 +01:00
Lucas Jenss
8e758d7463
sys: Misc errors that occur w/ ENABLE_DEBUG fixed
...
I enabled debug output in all files to poke around
and there were some errors (seemingly) due to code
changes that were not tested with debug enabled. This
commits tries to fix these issues.
2015-01-30 01:36:28 +01:00
Cenk Gündoğan
5c77530da4
sys/bloom: changed doc from bytes -> bits
2015-01-29 15:06:01 +01:00
Oleg Hahm
6715bccf5b
Merge pull request #2190 from cgundogan/rpl_new_parent_dodag_assignment
...
rpl: wrong dodag assignment to parent
2015-01-29 11:24:38 +01:00
Martin Landsmann
6e90ad6d73
sys/posix/pthread: added dynamic pthread thread local storage
2015-01-27 23:04:12 +01:00
BytesGalore
714ee38355
boards: core: cpu: drivers: sys: added missing header guards
2015-01-27 19:10:57 +01:00
Cenk Gündoğan
993f7cc7c6
rpl: remove rpl_send_mutex
...
This PR is based on #2155 .
Since RPL/Trickle is only using one thread in #2155 , the send mutex becomes
obsolete and can be removed safely.
2015-01-27 12:35:41 +01:00
Joakim Gebart
f71f8322d9
Merge pull request #2348 from gebart/pr/fno-common-fixes1
...
Removing (some) common globals, working towards #2346
2015-01-26 09:11:10 +01:00
Joakim Gebart
14b4418e6b
transceiver: Reduce scope of globals in transceiever.c.
2015-01-23 20:06:40 +01:00
Joakim Gebart
3f4478e2bb
sixlowpan: Reduce scope on some globals in ip.c
2015-01-23 19:46:26 +01:00
Joakim Gebart
c5e1683a8c
rpl: Make ipv6_buf local.
2015-01-23 19:46:26 +01:00
Joakim Gebart
526a84093b
rpl: Remove extra definition of rpl_process_pid.
2015-01-23 19:46:26 +01:00
Joakim Gebart
6a810fe989
sys/net/routing: reduce scope of globals in etx_beaconing.c
2015-01-23 18:01:28 +01:00
Joakim Gebart
cd248f89f0
sixlowpan: reduce scope of globals in mac.c
2015-01-23 14:04:59 +01:00
haukepetersen
df9dabfa7d
net/udp: cleaned up header and documentation
2015-01-22 14:23:03 +01:00
Ludwig Ortmann
3d2b328288
sys/vtimer: bypass weak attribute missing on OSX
2015-01-22 10:24:27 +01:00
Oleg Hahm
f6a415a3d9
Merge pull request #2306 from cgundogan/rpl_no_macros_for_shell
...
rpl: wrong macro definitions in rpl shell commands
2015-01-16 22:00:11 +01:00
Martine Lenders
cfed38ae12
Merge pull request #2287 from authmillenon/pktqueue/api/use-pkt
...
pktqueue: adapt to pkt_t
2015-01-16 19:48:04 +01:00
Cenk Gündoğan
7095241555
rpl: wrong macro definitions in rpl shell commands
...
It appears that the values defined for RPL_NODE_IS_ROOT and
RPL_MAX_ROUTING_ENTRIES in the Makefile via CFLAGS are not recognized in
sc_rpl.c (my guess: they are only visible to the rpl module?)
Therefore RPL_MAX_ROUTING_ENTRIES is always set to 0, no matter how the
binary is compiled, thus resulting in the output "No routing table
available" for root nodes.
2015-01-15 10:56:22 +01:00
Cenk Gündoğan
c4b01b87bc
rpl: RPL/Trickle with only *one* thread
...
This PR proposes an approach to reduce the thread count of RPL.
The current RPL/Trickle stack needs about 5 threads to handle tasks
like updating the trickle timer, routing entries and the transmission of
DAOs.
This PR modifies RPL to use only one thread with a looped `msg_recv()` call.
The message is then multiplexed to the right task.
2015-01-14 19:42:13 +01:00
Martine Lenders
c9e2f5bdce
pktqueue: adapt to pkt_t
2015-01-14 14:53:37 +01:00
Ludwig Ortmann
8676a1972d
sys/timex: suppress passedByValue warnings
2015-01-14 11:57:01 +01:00
Oleg Hahm
2d874af904
Merge pull request #2158 from authmillenon/pkt/feat/initial-import
...
pkt: Initial import
2015-01-14 08:20:46 +01:00
Martine Lenders
99e2feca48
pkt: Initial import
...
This data type is bound to replace the `(netdev_hlist_t *ulh, void
*data)` tuples in netapi and netdev.
2015-01-14 07:04:56 +01:00
Martin Lenders
96502e2fd4
sys: net: Initial import of a basic MAC protocol layer
2015-01-14 06:58:48 +01:00
Oleg Hahm
34908f11a9
Merge pull request #2257 from cgundogan/rpl_fix_srh_for_storing_mode
...
rpl: node-to-node communication broken (rpl_udp)
2015-01-13 18:49:14 +01:00
Oleg Hahm
a31bc97e1c
Merge pull request #2253 from cgundogan/rpl_srh_remove_relay_debugf
...
rpl: move msg_send_receive outside of DEBUGF
2015-01-13 14:43:18 +01:00
Ludwig Ortmann
154a6b5d22
Merge pull request #2268 from cgundogan/rpl_cleanup_no_routing_table
...
rpl: remove routing table dependent code
2015-01-13 14:09:32 +01:00
Oleg Hahm
0421ab96ee
Merge pull request #2245 from cgundogan/rpl_remove_routing_decision_in_rpl_send
...
rpl: remove decision to drop packets in rpl_send
2015-01-13 14:04:53 +01:00
Cenk Gündoğan
a06c667af5
rpl: remove routing table dependent code
...
This PR removes code depending on a routing table with an entries
size > 0. Currently, all those functions and symbols are compiled into the binary,
even when there is no effective space in the routing table (as it is the
case for normal nodes in non-storing mode)
2015-01-13 13:11:32 +01:00
Oleg Hahm
4a615e21ef
Merge pull request #1717 from BytesGalore/base64_encoder_decoder
...
base64 encoding/decoding module
2015-01-12 16:39:08 +01:00
Martin Landsmann
a0898dbb9f
sys: add base64 encoding/decoding module
...
- suppressed cppcheck warning for `unassignedVariable` for
the encode/decode arrays in stream encode/decode tests
as these arrays are assigned by the according `base64_[en|de]code()` function.
2015-01-12 11:26:41 +01:00
Cenk Gündoğan
22f466ab80
rpl: remove needless call to rpl_get_of_for_ocp
...
This line has no further significance to the application other than burning cpu cycles.
2015-01-08 09:40:08 +01:00
Cenk Gündoğan
da12f62751
rpl: remove return value completely as it is not really used, gives
...
`unsused` warning otherwise
2015-01-08 09:31:30 +01:00
Lotte Steenbrink
3591894698
aodvv2: fix calls to DEBUG()
...
``debug.h`` was included before ``ENABLE_DEBUG`` was set to 0 or 1. In consequence, setting ``ENABLE_DEBUG`` to 1 had no effect. This should be fixed now.
2015-01-06 15:57:12 -08:00
Lotte Steenbrink
f6ffbd6830
Merge pull request #2255 from Lotterleben/aodvv2_fix_packethandler
...
aodv: call aodv_packet_reader_handle_packet() when received packet is *not* our own
2015-01-07 00:37:07 +01:00
Lotte Steenbrink
465f9096b1
aodvv2: call aodv_packet_reader_handle_packet() when recieved packet is *not* our own.
...
For some reason the call to aodv_packet_reader_handle_packet() got lumped in with the check if a received packet is ours. In consequence, all packets which were not sent by the node that received them (i.e. the important ones) were silently ignored, preventing any routes from being established.
This should be fixed now: foreign packets are now handled again, while own packets are ignored.
Also, I made the corresponding comment a bit less passive-aggressive.
2015-01-06 12:54:14 -08:00
Cenk Gündoğan
40c28dd3bf
rpl: node-to-node communication broken (rpl_udp)
...
Calling ipv6_iface_set_srh_indicator with storing mode breaks the
neighbour discovery code in **ip.c:480**.
Thus, it is not possible to use `send <n> test` from node to node.
2015-01-06 18:04:54 +01:00
Lotte Steenbrink
7dc31402d3
transceiver: DEBUG instead of DEBUGF
...
Switch two calls to DEBUGF() to DEBUG() because they lead to compliling complcations and the additional output provided by DEBUG isn't really necessary here.
2015-01-06 08:29:29 -08:00
Cenk Gündoğan
843be5ad6d
rpl: minor changes to comments in rpl_storing.c
2015-01-06 13:24:42 +01:00
Cenk Gündoğan
d4b57b301d
rpl: move msg_send_receive outside of DEBUGF
...
When the debug flag is set to off, the call to msg_send_receive will be
ignored. @fabianbrandt am I missing something?
2015-01-06 13:04:26 +01:00
Oleg Hahm
be67f662ac
Merge pull request #2248 from cgundogan/rpl_remove_faulty_comment
...
rpl: remove faulty comment
2015-01-06 12:55:15 +01:00
Cenk Gündoğan
8b7386fc8b
rpl: remove faulty comment
...
Can be misleading since we also support non-storing mode now.
2015-01-06 10:24:25 +01:00
Cenk Gündoğan
652b4f84a6
rpl: remove decision to drop packets in rpl_send
...
The dicision to drop a packet if no next hop exists is made by the
`rpl_get_next_hop` function, which is initialized as the routing
provider for rpl applications. Hence, it seems needless to do this in the
`rpl_send` function.
2015-01-06 09:34:15 +01:00
Cenk Gündoğan
36893ded6d
rpl: typo childs -> children
2015-01-06 09:23:56 +01:00
Oleg Hahm
1e87a3212b
Merge pull request #2235 from OlegHahm/weak_vtimer_gettimeofday
...
vtimer: enable vtimer_gettimeofday as fallback
2014-12-31 18:27:36 +01:00
Oleg Hahm
99f227bf33
vtimer: enable vtimer_gettimeofday as fallback
...
Declaring vtimer_gettimeofday as a "weak" alias for the _gettimeofday
syscall.
2014-12-27 15:53:23 +01:00
Cenk Gündoğan
aca1ade01c
rpl: cleanup, changing structdefs into typedefs
2014-12-26 21:13:33 +01:00
Ludwig Ortmann
dc916ad458
Merge pull request #2102 from Kijewski/embunit-module
...
tests: make embUnit a normal sys module
2014-12-22 12:50:26 +01:00
Ludwig Ortmann
5e0973ca89
Merge pull request #2150 from OlegHahm/more_doc_cleanup
...
doc: More documentation cleanup
2014-12-22 11:58:59 +01:00
René Kijewski
91050cd72d
embunit: fix outputters for msp430
2014-12-21 20:04:57 +01:00
René Kijewski
f684aa4b2d
tests: make embUnit a normal sys module
...
There is nothing quite special about embUnit.
This PR makes it a normal sys module, so that you can use it in any
application / test.
2014-12-21 20:04:57 +01:00
René Kijewski
5f29fed076
core: introduce msg_sent_by_int()
...
msg_send_int() sets `m->sender_pid = target_pid`. This was used to flag a
message as having been sent by an ISR.
This PR introduces a static inline function `msg_sent_by_int()` and a
specific define for this purpose.
2014-12-18 23:04:03 +01:00
Ludwig Ortmann
695d702b4f
Merge pull request #2212 from Lotterleben/fix_ipv6_iface_set_routing_provider
...
exclude ``ipv6_iface_set_routing_provider()`` from ``#ifdef MODULE_RPL``...
2014-12-17 19:03:47 +01:00
Ludwig Ortmann
b8b50e8579
Merge pull request #2210 from Lotterleben/fix_sixlowpan_typos
...
fix typos in ip.h, mac.h, ndp.h and types.h
2014-12-17 12:32:35 +01:00
Lotte Steenbrink
743146a803
fix typos in ip.h, mac.h, ndp.h and types.h
2014-12-17 03:29:37 -08:00
Lotte Steenbrink
1bd60400f0
add parentheses to ENABLE_DEBUG in CBOR_NO_PRINT
2014-12-17 03:03:33 -08:00
Lotte Steenbrink
a8b3c9f535
exclude `ipv6_iface_set_routing_provider()
from
#ifdef MODULE_RPL
` so that other routing protocols can use it too.
2014-12-17 02:09:09 -08:00
Ludwig Ortmann
e7f6f640f6
Merge pull request #2060 from OlegHahm/periph_rtc
...
drivers: Adapt old platforms to periph rtc
2014-12-16 18:56:59 +01:00
Oleg Hahm
498edb1854
cc430: lpc2387: switch to new periph/rtc interface
...
Removes the old interface.
2014-12-16 17:02:44 +01:00
Ludwig Ortmann
ca36e9c4a7
sys/shell: refactor _parse_time
2014-12-16 16:15:17 +01:00
Ludwig Ortmann
3729789dc3
sys/shell: use more common libc calls
...
use strtol instead of sscanf
use plain printf instead of asctime
2014-12-16 16:08:49 +01:00
Ludwig Ortmann
4942882949
sys/shell: rewrite rtc command for periph/rtc
2014-12-16 16:07:01 +01:00
Oleg Hahm
e64ab2aed5
Merge pull request #2024 from OlegHahm/ccnl_802154
...
ccn-lite: fixes for working with IEEE 802.15.4 radios
2014-12-16 11:03:20 +01:00
Oleg Hahm
1bd4b1b407
ccnl: convert C++ comments into C style comments
2014-12-16 09:35:46 +01:00
Oleg Hahm
ee386a4778
ccn: add line breaks if limit was exceeded
2014-12-16 09:35:44 +01:00
Oleg Hahm
5cf625fc03
ccnl: adapt for 802154 devices
2014-12-16 09:34:56 +01:00
Ludwig Ortmann
68ca082dcc
sixlowpan: handle malloc error
...
The return value of malloc wasn't checked before, resulting in
possibly undefined behavior.
2014-12-14 11:32:30 +01:00
Ludwig Ortmann
5e6d5ab522
sixlowpan: remove redundant assignment
2014-12-14 11:32:30 +01:00
Cenk Gündoğan
eeafd426d5
rpl: wrong dodag assignment to parent
...
`dodag` is the representation of the incoming DIO and thus is temporary.
Assigning this to the parent would lead to failure when reading/writing
to/from the parent's dodag attribute later.
`my_dodag`on the other hand is the local persistent representation of
the DIO's dodag and therefore the right choice.
2014-12-14 09:41:42 +01:00
Oleg Hahm
a10cb114c5
Merge pull request #2169 from BytesGalore/rpl_configuarbale_max_routing_entries
...
sys:net:routing:rpl allow setting the number of routing entries on comile time
2014-12-12 17:53:23 +01:00
Fabian Nack
5a095faa54
sys/include: Include utlist for simple list operation defines
2014-12-12 12:18:34 +01:00
BytesGalore
0ced7338e4
sys:net:routing:rpl made the number of routing entries configurable on compile time.
2014-12-12 09:42:33 +01:00
Oleg Hahm
d4166faccc
doc: add or move module description where missing
2014-12-11 17:29:51 +01:00
Oleg Hahm
73248cc05e
doc: put rpl_storing header to right doxygen group
2014-12-11 17:27:56 +01:00
Oleg Hahm
11d0a22ad7
doc: remove superfluous and erroneous @file params
2014-12-11 17:27:54 +01:00
Cenk Gündoğan
2a7ce79947
ip: check for null before ip_get_next_hop is used
2014-12-11 15:43:16 +01:00
Cenk Gündoğan
6ee5e737f9
vtimer: set custom msg_t.type with vtimer_set_msg
...
Currently, when using vtimer_set_msg the corresponding msg_t is filled
with the MSG_TIMER ("12345") type.
This approach makes it difficult to differentiate between incoming
messages via vtimer_set_msg.
In this PR I introduce another parameter for the vtimer_set_msg
function to specify a custom msg_t type.
2014-12-09 10:07:26 +01:00
Ludwig Ortmann
0027f90be4
Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
...
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Oleg Hahm
6ad89ff46c
sys: rename lib to hash_string
...
That was the onyl remaining module in this folder.
2014-12-06 15:42:01 +01:00
Oleg Hahm
a9ed34a293
doc: fixed documentation for crypto headers
2014-12-06 11:55:28 +01:00
Oleg Hahm
26ab4829d7
doc: fix posix wrapper documentation
2014-12-06 02:05:51 +01:00
Oleg Hahm
364e60d84c
doc: fix quat_math documentation
2014-12-06 01:27:23 +01:00
Oleg Hahm
1288b3f9cb
doc: fix bloom filter documentation
2014-12-06 01:26:12 +01:00
Oleg Hahm
fb3e8939df
doc: fix vtimer documentation
2014-12-05 20:33:10 +01:00
Oleg Hahm
6c762d683b
doc: added missing documentation for PRIu32
2014-12-05 20:33:10 +01:00
Oleg Hahm
a3ea98c063
doc: fixed documentation for transceiver
2014-12-05 20:33:10 +01:00
Oleg Hahm
45ea87f403
doc: cbor: complemented documentation
2014-12-05 20:33:10 +01:00
Oleg Hahm
1270edace6
cbor: fixe line length
2014-12-05 20:33:10 +01:00
Oleg Hahm
93c7627f07
doc: fix doxygen warnings for CBOR
2014-12-05 20:33:10 +01:00
Oleg Hahm
67a2b37ff8
cc110x: cleanup cc110x_legacy_csma driver
...
Remove unused radio_t struct and fixed documentation.
2014-12-05 20:33:10 +01:00
Oleg Hahm
da3377bf6d
doc: document board_uart0 module
2014-12-05 20:33:10 +01:00
Oleg Hahm
cd81c040d8
uart0: remove superfluous prototype from header
...
Declare and document prototype in CPU part instead.
2014-12-05 20:33:10 +01:00
Oleg Hahm
752836f0b6
doc: document auto_init
2014-12-05 20:33:09 +01:00
Cenk Gündoğan
42d0fe3f78
rpl: removing unnecessary recv_mutex
...
In the main function of RPL (rpl_process thread)
a mutex is used after receiving a message via msg_recv.
However, this mutex is never used in another thread and thus is rendered
obsolete.
2014-12-05 16:31:41 +01:00
Oleg Hahm
312e2b10a8
Merge pull request #2146 from cgundogan/rpl_unused_parameter_warning_nonstoring
...
rpl: make unused parameter warning disappear
2014-12-05 15:11:01 +01:00
Cenk Gündoğan
6bfb82ca13
rpl: make unused parameter warning disappear
2014-12-05 14:16:11 +01:00
Cenk Gündoğan
8d31f8b8ed
rpl: fix offset for transit buf
...
As a result of PR #1404 , entries will not be added to the routing table
when running in storing mode, although it is supposed to do so.
You can verify by running rpl_udp and call *route* on the dodag-root.
This PR fixes the wrong offset calculation.
2014-12-05 13:45:22 +01:00
Oleg Hahm
000450c894
Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
...
Doxygen eliminate warnings pt. 2
2014-12-04 17:18:42 +01:00
Oleg Hahm
43c86b5a3e
doc: fix remaining doxygen warnings
2014-12-04 17:16:57 +01:00
Oleg Hahm
0ccf1043de
doc: fixed broken doxygen references
2014-12-04 17:16:57 +01:00
Ludwig Ortmann
28e5b1bb9a
Merge pull request #2134 from cgundogan/rpl_addr_str_debug_fix
...
rpl: addr_str not renamed to addr_str_mode
2014-12-04 11:34:40 +01:00
Cenk Gündoğan
0f66a9e06e
rpl: addr_str not renamed to addr_str_mode
...
In PR #1404 addr_str was renamed to addr_str_mode,
but at some places it was still referenced as addr_str.
When enabling debug messages, the compiler complains.
2014-12-04 10:46:59 +01:00
Oleg Hahm
c92effaead
debug: removed superfluous additional debug flag
2014-12-03 22:59:14 +01:00
Oleg Hahm
f386de6203
Merge pull request #1659 from Kijewski/ubjson
...
sys: add Universal Binary JSON module (UBJSON)
2014-12-03 22:25:03 +01:00
René Kijewski
118dfd861b
Add UBJSON library
2014-12-03 20:42:51 +01:00
René Kijewski
4cf0fd642a
Merge pull request #2129 from Kijewski/pipe-doxygen
...
sys: doc: pipe.h spams the manual
2014-12-03 20:24:59 +01:00
René Kijewski
5b7c24d9e1
sys: doc: pipe.h spams the manual
...
This PR adds a new group for the pipe module, so the .h file does not
spam the manual in Modules/System.
2014-12-03 20:18:37 +01:00
Oleg Hahm
13fe311b10
Merge pull request #2025 from OlegHahm/socket_init_fix_fix
...
net: socket: fix for e93d030058
2014-12-03 20:18:33 +01:00
Martine Lenders
115420a510
Merge pull request #1228 from OlegHahm/l2_ping
...
net: Link Layer Ping
2014-12-03 11:55:37 +01:00
Oleg Hahm
d4dced0f63
l2_ping: add to auto_init
2014-12-03 11:08:32 +01:00
Oleg Hahm
4b77fcd22f
shell: introduced l2 ping shell commands
2014-12-03 11:08:32 +01:00
Oleg Hahm
17929a5ce4
cpu: lpc2387: integrated lpc_common into lpc2387
...
Rationale 1: The common part made only sense for (some) NXP ARM7 MCUs,
but was misleading for MCUs like the LPC1768.
Rationale 2: The common part was only used by one specific MCU
implementation - no need to outsource it.
2014-12-02 17:47:10 +01:00
Oleg Hahm
0c967c4d3f
cpu: msp430: renamed msp430x16x to msp430fxyz
2014-12-02 17:46:57 +01:00
Oleg Hahm
588ddda1fe
socket: socket_base_exists_socket returns bool
...
Adapt the prototype to the actual used return value.
2014-12-02 14:58:44 +01:00
Oleg Hahm
a93a74daed
socket: cosmetics
2014-12-02 14:53:17 +01:00
Oleg Hahm
a2b21fb019
net: socket: fix for e93d030058
...
The former fix for socket initialization was broken. This fixes the
"fix" by using the right exit condition for the loops.
2014-12-02 14:51:19 +01:00
Fabian Nack
eebfd5011a
drivers - cc110x: Initial import of new cc110x driver
2014-12-01 17:14:02 +01:00
Oleg Hahm
d92e9af91c
doc: fixed broken param descriptions
2014-11-30 22:34:50 +01:00
Oleg Hahm
dc74bd48bf
doc: removed superfluous (and broken) @file params
2014-11-30 21:52:54 +01:00
Oleg Hahm
36e49c6c65
doc: removed broken doxygen struct tags
2014-11-30 21:50:43 +01:00
Oleg Hahm
206afa4d40
doc: fix typo in UDP header
2014-11-30 21:46:08 +01:00
Oleg Hahm
df9c09d946
doc: fixed typos and other misspellings
2014-11-30 21:32:12 +01:00
Oleg Hahm
cc73296d43
doc: added missing titles
2014-11-30 21:22:52 +01:00
Oleg Hahm
ae8dd90884
doc: added missing closing doxygen brackets
2014-11-30 21:16:41 +01:00
Hinnerk van Bruinehsen
9f80fa235b
lint: fix syntax error caused by ifdef mess
2014-11-28 01:17:55 +01:00
Hinnerk van Bruinehsen
59a6e5836b
lint: fix uselessAssignmentArg start_index
2014-11-28 01:10:35 +01:00
Fabian Brandt
12cd62c689
Introduction of RPL non-storing mode.
...
This implementation is based on RFC 6550 with addition of RFC 6554 (Source Routing Header for RPL). Both can be found under the following links:
- http://tools.ietf.org/html/rfc6550
- http://tools.ietf.org/html/rfc6554
The PR provides basic functionality for handling and forwarding packages in non-storing mode. In addition the structure of the previous implemented RPL storing mode is now revised, so that readability and modularity is increased. The following features are implemented:
- building function for a SRH and integration in common packets
- source-route build algorithm based on the structure of the DODAG
- an RPL-based interpretation of the SRH and removal at destination
- new structure for RPl-module with extracted beaconing-functionality
- leaf nodes are now supported
There are some missed goals and should be included in future updates:
- building a common routing table structure for different types of routing protocols
- routing tables are statically assigned via source code, future update should have an optional variable at build-time, which sets the size of the routing table depending on the desired functionality of a node in the network (root, node, leaf)
2014-11-27 21:42:40 +01:00
Oleg Hahm
b358d8517f
Merge pull request #1080 from fabianbrandt/of_manager
...
Introduction of an of-manager for RPL.
2014-11-27 18:17:18 +01:00
Fabian Brandt
38d9b42762
Introduction of a of-manager for RPL.
...
The of-manager should gather all available of´s and initialize the prefered one, based on rpl_config.h.
2014-11-27 17:18:54 +01:00
Lotte Steenbrink
0c67c02047
Add the AODVv2 Routing Protocol
...
This PR depends on #1766 .
It contains a minimal implementation of the AODVv2 routing protocol.
*Not* implemented are:
- AckReqs
- alternate metrics
- multiple interfaces
- clients and Client Networks
- buffering
- all addresses, TLVs, and features that are marked as optional
An example application can be found at https://github.com/Lotterleben/RIOT-AODVv2/tree/master/aodvv2_demo .
The implementation relies heavily on a functioning Neighbor Discovery Protocol.
It might be necessary to fill the neighbor cache manually with the current state
of RIOTs NDP implementation.
The value of AODVV2_MAX_UNREACHABLE_NODES has been chosen arbitrarily and will be subject to
future improvement.
Please note that based on my experience, with the default transceiver
buffer size (3) of the native port, about 2/3 of the route discoveries
will fail. This has been addressed in issue #1747 . It is advised to increase
the transceiver buffer size when using AODVv2 as a routing protocol.
2014-11-27 03:50:20 -08:00
Oleg Hahm
41d6bc303a
Merge pull request #2085 from authmillenon/fix-pktqueue
...
pktqueue: fix alignment order
2014-11-26 01:44:52 +01:00
Lotte Steenbrink
c0ffbf52d2
Simplify rpl_clear_routing_table()
...
Instead of looping over the entire table and setting every entry to 0, memset the entire table at once.
2014-11-25 12:01:21 -08:00
Martine Lenders
211cad1ea3
pktqueue: fix alignment order
...
Alignment order of `pktqueue_node_t` does not align with `priority_queue_node_t`
2014-11-25 18:50:12 +01:00
Hauke Petersen
b4c3a06a8e
Merge pull request #2048 from haukepetersen/rem_ioarch
...
core/cpu/boards: removed fw_puts from RIOT
2014-11-21 17:04:18 +01:00
René Kijewski
682af155e0
posix: Fix missing restoreIRQ()
in sem_post()
2014-11-21 14:33:28 +01:00
Hauke Petersen
2220a9fab0
core/cpu/boards: removed fw_puts from RIOT
2014-11-21 13:09:02 +01:00
Martine Lenders
b7a079471a
sys: net: Initial import of a general interface to a network protocol
2014-11-20 14:51:29 +01:00
Oleg Hahm
459f550be5
Merge pull request #2042 from Kijewski/restrict
...
c++: `s/restrict/__restrict/`
2014-11-19 15:29:23 +01:00
Oleg Hahm
771b3a4506
Merge pull request #1984 from Kijewski/net_help-is-odd
...
core: move NTOHL and friends into byteorder.h
2014-11-19 15:11:43 +01:00
René Kijewski
f89e1f4a3d
c++: s/restrict/__restrict/
...
`restrict` is not a keyword in C++, but `__restrict` is understood by
GCC-ish compilers.
2014-11-19 14:27:19 +01:00
René Kijewski
3ea777ff14
Merge pull request #2017 from kaspar030/move_ringbuffer_to_core
...
Move ringbuffer to core
2014-11-19 14:22:16 +01:00
9ce0b676b4
core: sys: move ringbuffer to core
2014-11-19 14:18:39 +01:00
Hinnerk van Bruinehsen
c2a30f1e49
lint: remove unusedStructMember supressions
2014-11-19 11:22:49 +01:00
René Kijewski
c85610437b
sys: use byteorder.h in cbor.c
2014-11-19 00:46:45 +01:00
René Kijewski
434d6a1f65
core: move NTOHL and friends into byteorder.h
2014-11-19 00:46:41 +01:00
Martine Lenders
4d674ef107
Merge pull request #2019 from authmillenon/cleanup-net_help
...
net_help: Cleanup
2014-11-18 16:41:20 +01:00
Martine Lenders
c9219b87d6
net_help: prefix csum properly and add documentation
2014-11-18 14:59:37 +01:00
Oleg Hahm
9cf42d587f
Merge pull request #2002 from OlegHahm/ccnl_malloc_all_over
...
ccn-lite: use always ccnl_malloc
2014-11-17 16:01:31 +01:00
Martine Lenders
4d82c2c646
net_help: remove IPV6_CMP_ADDR macro
...
Used nowhere; alternative: ipv6_addr_is_equal(), since other use-cases
(is an IPv6 address smaller than the other) are not applicable anyway.
2014-11-17 09:42:07 +01:00
Martine Lenders
53eaa4feb8
net_help: remove printArrayRange()
...
The od module does the same, much less specialized, much more
sophisticated.
2014-11-17 09:39:45 +01:00
Oleg Hahm
fbd04bd051
ieee802154: introduce constant for default PAN id
2014-11-16 19:04:25 +01:00
Martine Lenders
ba1527593f
ipv6: fix IPv6 address matching algorithm
2014-11-13 00:16:34 +01:00
Thomas Eichinger
f53dd860f0
Merge pull request #2000 from OlegHahm/ieee802154_transceiver_ignore
...
transceiver: fix ignore command for 802.15.4 radios
2014-11-12 12:33:20 +01:00
Oleg Hahm
c9bb6361fe
ccn-lite: use always ccnl_malloc
2014-11-11 21:51:52 +01:00
Oleg Hahm
2657289d5c
oneway-malloc: fix prototype for calloc
...
The prototype differs from stdlib
2014-11-11 21:50:28 +01:00
Oleg Hahm
78694ea52b
transceiver: fix ignore command for 802.15.4 radios
2014-11-11 19:48:43 +01:00
Oleg Hahm
4a93a261b4
net: l2_ping uses radio_packet_t instead of packet_info_t
2014-11-11 16:59:06 +01:00
Oleg Hahm
c692b3a00a
net: move ping to sys/net
...
* moved the former ping module from `sys` to `sys/net/link_layer` and renamed to l2_ping
* use defaulttransceiver instead of cc110x
* some refactoring
2014-11-11 15:03:40 +01:00
René Kijewski
9a15a6def5
make: easify {sys,drivers}/Makefile
...
Currently you need to add every new sys and driver module into the
respective Makefile. This requires rebasing if another module was merged
in the meantime.
This PR allows you to omit the entry to {sys,drivers}/Makefile, if the
subfolder has the same name as the module name, which should be sensible
in most cases.
2014-11-11 09:26:37 +01:00
Oleg Hahm
04253cf89a
Merge pull request #1980 from OlegHahm/coverity_fixes
...
net: fixes some finding from coverity
2014-11-11 00:07:43 +01:00
Oleg Hahm
e93d030058
net: fix buffer overrun in socket initialization
2014-11-10 21:33:11 +01:00
Oleg Hahm
037571445c
Merge pull request #1974 from OlegHahm/cleanup_licenses
...
licenses: fix miss-spelled & missing boiler plates
2014-11-10 19:53:40 +01:00
Oleg Hahm
39abba1bc2
licenses: fix miss-spelled & missing boiler plates
2014-11-10 18:59:55 +01:00
Oleg Hahm
d1d8972b0c
6lowpan: do not overrun in context_remove
2014-11-10 15:33:49 +01:00
Oleg Hahm
ebfaa85f0c
net_if: fix buffer overruns
2014-11-10 15:33:48 +01:00
Oleg Hahm
365bfd81af
IPv6: allow complete in ipv6_addr_init_prefix
...
If the specified prefix is a full IPv6 address, no bits remain.
Fixes a possible buffer overrun.
2014-11-10 15:33:48 +01:00
Oleg Hahm
b96b995d76
6lowpan: fix buffer overrun in decompression
2014-11-10 15:33:48 +01:00
Oleg Hahm
e06dce55b1
6lowpan: free fragment buffer in error case
2014-11-10 15:33:48 +01:00
DangNhat Pham-Huu
429162c20f
Merge pull request #1793 from BytesGalore/extern_C_in_headers_sys
...
sys: add extern "C" to headers
2014-11-10 08:57:48 +07:00
BytesGalore
de3c3cebd0
c++: sys: add extern C to header files
2014-11-08 20:09:55 +01:00
Martine Lenders
b7929ae03d
pktbuf: optimize size overhead in packet buffer
2014-11-07 12:01:22 +01:00
Oleg Hahm
9d5c3f4c8b
auto_init: always set source address mode
2014-11-06 21:52:08 +01:00
Oleg Hahm
8f93b5cee7
Merge pull request #1948 from OlegHahm/netif_byteorder
...
Netif fix byteorder
2014-11-06 20:06:12 +01:00
Hauke Petersen
4cdc79f3a9
Merge pull request #1945 from thomaseichinger/sc_lsm303dlhc
...
shell: provide shell commands to poll lsm303dlhc sensor
2014-11-06 15:03:10 +01:00
Oleg Hahm
ac3519d46a
net_if: alternative approach for swapping the byte order
2014-11-06 14:30:22 +01:00
Oleg Hahm
f79e228e44
shell: sensors: exit on failure
...
Immediately leave the read command if sensor is not initialized.
2014-11-06 13:45:44 +01:00
Thomas Eichinger
6bbc4ca226
shell: provide shell commands to poll lsm303dlhc sensor
2014-11-06 11:28:22 +01:00
Hauke Petersen
7e043bb27f
sys/shell: added commands for iot-lab_M3 sensors
2014-11-06 10:41:55 +01:00
Oleg Hahm
0fed329774
Merge pull request #1941 from OlegHahm/ieee802154_use_enums
...
Ieee802154: use enums for frame type
2014-11-06 08:03:53 +01:00
Oleg Hahm
32543afdd0
ieee802154: make use of frame_type enum all over
2014-11-06 08:02:27 +01:00
Oleg Hahm
74a53e824e
ieee802154: change frame type definition to enum
2014-11-06 08:02:11 +01:00
Thomas Eichinger
660f24405e
shell/transceiver: set 16 bit addresses and frame type
2014-11-04 15:14:37 +01:00
Martine Lenders
0641ccbd5d
auto_init: adapt auto_init for cc110x devices
2014-11-02 15:05:28 +01:00
Troels Hoffmeyer
406872751a
Only read pan ID when address mode is not 0, when reading 802.15.4 header
2014-10-31 10:16:34 +01:00
Oleg Hahm
fce3a2243e
Merge pull request #1846 from thomaseichinger/at86rf23x
...
drivers/at86rf231: refactoring of the at86rf231 radio driver
2014-10-31 09:33:30 +01:00
Hinnerk van Bruinehsen
d1775a1ad1
lint: fix redundantCopy in udp code
2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
ce075d9cbd
lint: suppress warning about obsoleteFuntionsasctime
2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
aca4724447
lint: fix warnings of possible nullPointer dereferences
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
ff6a7febc6
lint: fix uselessAssignmentPtrArg
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
8723ba7568
lint: fix variableScope warnings
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
a5aeaab87b
lint: fix unreadVariable warnings
2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
ec98c85a05
lint: fix unusedVariable warnings
...
SQUASH ME: into unusedVariable (annotated)
SQUASH ME: into unusedVariable (II)
SQUASH ME: into unreadVariable (II)
2014-10-31 01:24:29 +01:00
Oleg Hahm
62006b6f34
Merge pull request #1915 from OlegHahm/replace_has_radio_by_feature
...
make: replace has radio by feature
2014-10-30 23:29:49 +01:00
Oleg Hahm
50ad24b011
Merge pull request #1911 from OlegHahm/fix_trickle_timer_stacksize
...
trickle: fix timer stacksize
2014-10-30 23:21:00 +01:00
f2483dfd5b
Merge pull request #1649 from kaspar030/ringbuffer_remove
...
sys: lib: introduce ringbuffer_remove()
2014-10-30 23:20:06 +01:00
e4257284ad
sys: lib: introduce ringbuffer_remove()
...
This commit adds a function that deletes n elements from the ringbuffer
without actually writing them somewhere.
2014-10-30 23:23:27 +01:00
Oleg Hahm
1b47b76135
config: use FEATURE_PROVIDED instead of HAS_RADIO
2014-10-30 23:13:52 +01:00
benpicco
54c3cb259e
Merge pull request #1908 from OlegHahm/ps_fix_after_tcb_cleanup
...
sys: fix thread_print_all
2014-10-30 22:46:02 +01:00
Thomas Eichinger
dfb1b56fad
drivers/at86rf231: refactoring of the at86rf231 radio driver
...
* deploy extended operation mode
* cleanup
* implement netdev 802154.h interface
2014-10-30 22:35:00 +01:00
Oleg Hahm
99b5ff81fa
config: suppress cppcheck warnings
2014-10-30 22:27:12 +01:00
Oleg Hahm
576e76db51
config: make members feature specific
...
Channel and address are only sensible for boards that actually have a
transceiver.
2014-10-30 22:27:12 +01:00
Oleg Hahm
6b39ce9650
config: moved from core to sys
...
There's no need to run config_load from core directly, can be done by
auto_init.
2014-10-30 22:27:11 +01:00
Oleg Hahm
5cf154223b
trickle: increase stacksize for timer thread
...
printf is used in this thread
2014-10-30 21:27:12 +01:00
Oleg Hahm
7b95b613b2
sys: fix thread_print_all
2014-10-30 20:16:48 +01:00
Oleg Hahm
313d5b4e56
doc: added and fixed some copyright boilerplates
2014-10-30 19:30:14 +01:00
Oleg Hahm
922b2d758f
Merge pull request #1815 from OlegHahm/core_eliminate_unnecessary_tcb_members
...
core: eliminate unnecessary tcb_t struct fields
2014-10-30 16:45:30 +01:00
Martine Lenders
1dae583bce
Merge pull request #1884 from authmillenon/od
...
sys: Initial import of analytical object dump (od) module
2014-10-30 16:42:30 +01:00
Martine Lenders
3519a3d9be
sys: Initial import of analytical object dump (od) module
2014-10-30 16:43:06 +01:00
Oleg Hahm
9a61d8cf1c
core: move optional tcb members to DEVELHELP
2014-10-30 16:37:10 +01:00
Oleg Hahm
cf8cf3bb68
Merge pull request #1843 from OlegHahm/timex_cleanup
...
sys: timex cleanup
2014-10-28 18:00:52 +01:00
Ludwig Ortmann
d78c101b08
Merge pull request #1880 from fnack/cc110x_rename
...
drivers/cc110x: rename driver to cc110x_legacy_csma
2014-10-28 09:54:41 -07:00
Oleg Hahm
af13f190e6
doc: compliment and fix timex documentation
2014-10-28 17:50:11 +01:00
Fabian Nack
53b0ad2be5
drivers - cc110x: rename cc110x to cc110x_legacy_csma
2014-10-28 16:18:50 +01:00
Oleg Hahm
20dc7b0b00
timex: remove redundant struct timex_t declaration
...
timex_t is available as a typedef, declaring it as `struct timex_t` in
addition is not necessary.
2014-10-28 14:25:34 +01:00
Oleg Hahm
4b3fa4925a
timex: update copyrights
2014-10-28 14:25:34 +01:00
Oleg Hahm
67f82fcee0
timex: replace print by a to_str function
...
Instead of printing the timestamp, it's more flexible to convert it into
a string.
2014-10-28 14:25:34 +01:00
Oleg Hahm
8c4a874161
timex: make functions static inline
...
This commit makes all one- or two-liners in timex a static inline
function, defined in the header file.
2014-10-28 14:25:34 +01:00
René Kijewski
9cccf6bf8e
sys:ringbuffer: use memcpy in ringbuffer_get
2014-10-28 12:22:00 +01:00
René Kijewski
c0914ec451
sys:ringbuffer: static inline ringbuffer_init
2014-10-28 12:21:46 +01:00
Oleg Hahm
d8bad332bf
Merge pull request #1881 from LudwigOrtmann/purge_feuerware_radio
...
boards, sys: purge feuerware_radios
2014-10-27 18:16:00 +01:00
Ludwig Ortmann
eceb656c49
core,sys: fix storage types for irq API usage
...
* should not have any effect as long as `unsigned` and `int` are compatible
* also fix two cosmetic `unsigned int` -> `unsigned` for consistency
2014-10-27 16:25:23 +01:00
Ludwig Ortmann
975412e16d
boards, sys: purge feuerware_radios
...
* `feuerware_radios` is unused, remove from `radio.h` header
* FEUERWARE_CONF_NUM_RADIOS is superfluous without it, remove all occurrences
2014-10-27 14:49:25 +01:00
Oleg Hahm
c33e1b5dad
Merge pull request #1844 from OlegHahm/doxygen_cleanup
...
Doxygen cleanup
2014-10-24 16:04:01 +02:00
Ludwig Ortmann
6a5026803c
Merge pull request #1842 from fnack/cc110x_ng_rename
...
drivers/cc110x_ng: rename driver to cc110x_legacy
2014-10-24 03:07:37 -07:00
Oleg Hahm
9b819c4dd6
Merge pull request #1836 from Kijewski/yield-less
...
core: introduce sched_yield(), yield less
2014-10-24 10:05:37 +02:00
Fabian Nack
07fff37efe
drivers - cc110x_ng: rename ng driver to legacy
2014-10-24 09:55:31 +02:00
René Kijewski
677d690e2b
core: introduce thread_yield_higher(), yield less
...
Fixes #1708 .
Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.
This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.
Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.
`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.
This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
Martine Lenders
f7d9b02d7e
vtimer: improve documentation of vtimer_set_msg()
2014-10-23 21:28:15 +02:00
Oleg Hahm
84cb4ccaa2
Merge pull request #1830 from thomaseichinger/transceiver-fixes
...
sys/transceiver: fixes for the use of `ieee802154_packet_t`
2014-10-23 20:58:57 +02:00
Oleg Hahm
a9a5c2da1c
doc: fix vtimer documentation
2014-10-23 20:53:00 +02:00
Oleg Hahm
b186b177a5
doc: fix doxygen warnings for color module
...
Also fixes the module name in API documentation.
2014-10-23 20:53:00 +02:00
Oleg Hahm
206b75933e
doc: fixed remaining doxygen warnings in core
...
Only one warning remains and will be fixed in a separate commit.
2014-10-23 18:30:09 +02:00
Oleg Hahm
6d8c0d74c3
doc: some doxygen cleanups
...
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
ce6659a192
Merge pull request #1650 from kaspar030/ringbuffer_get_free
...
sys: lib: ringbuffer: introduce ringbuffer_get_free
2014-10-22 17:24:13 +02:00
6e03faa3d6
sys: lib: ringbuffer: introduce ringbuffer_get_free
...
This function returns the number of bytes available in the ringbuffer.
2014-10-22 17:07:36 +02:00
5146c66786
core: adapt to msg_try_send
2014-10-22 12:37:33 +02:00
Martine Lenders
fbaae0951a
ip: set solicited node address correctly
2014-10-21 20:22:07 +02:00
Thomas Eichinger
5b48fcd007
shell/transceiver: properly initialize 802.15.4 packet
2014-10-17 17:05:09 +02:00
Thomas Eichinger
ebbe5bef6a
sys/transceiver: cc2420 handles 802.15.4 packets
2014-10-17 17:05:09 +02:00
Martine Lenders
b9054e825a
auto_init: reduce scope of iface
2014-10-16 16:08:01 +02:00
Martine Lenders
19bf230de2
auto_init: use full hash to configure radio address
...
Since the 4-byte CPU ID on native is in most cases generated from the 2-byte
PID of the native process, choosing the lower half of the hash of the CPU ID to
set the radio address led to always setting it to the hash of 0 in this
cases. This changes it to use both halves of the hash and taking the
modulus so this corner cases can be avoided.
2014-10-16 16:07:50 +02:00
Martine Lenders
0812d4789a
Merge pull request #1638 from authmillenon/packetbuf2
...
net: Initial import of a global packet buffer
2014-10-16 14:01:56 +02:00
Emmanuel Baccelli
3f0d9d63d6
Merge pull request #1716 from waehlisch/master
...
Update CCN-lite Readme
2014-10-16 13:23:15 +02:00
Martine Lenders
a569f2b92c
net: Initial import of a global packet buffer
2014-10-16 11:52:30 +02:00
Oleg Hahm
bd3d32e9b0
documentation: added description for packet queue
2014-10-13 19:30:12 +02:00
Martine Lenders
94528fef46
Merge pull request #1795 from sgso/byte-order-udp-sockaddr
...
udp: fix byte order in sockaddr6_t
2014-10-11 13:48:34 +02:00
Ludwig Ortmann
90e2b1c4c4
sys/net/pktqueue: fix doxygen
2014-10-11 08:20:50 +02:00
Martine Lenders
36f8e3c5c3
Merge pull request #1640 from authmillenon/packetqueue
...
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:12:28 +02:00
Martine Lenders
e7e62cffdb
net: Initial import of a packet wrapper for priority_queue
2014-10-10 23:11:50 +02:00
Fabian Brandt
cd80cc166e
Fixes when a packet is not for me, but an interface is defined.
2014-10-10 17:17:40 +02:00
Sebastian Sontberg
c8c518005f
udp: fix byte order in sockaddr6_t
...
udp_recvfrom wrote the sender port number in host byte order into the
provided sockaddr6_t. Because all send functions expect the port number
in network byte order this introduces a superfluous conversion step in
case one wants to reuse the address for replying.
closes #1406
2014-10-10 15:43:34 +02:00
Martine Lenders
42f96b0d60
Merge pull request #1699 from Kijewski/issue-1586
...
core: Provide functions for different byte orders
2014-10-10 07:38:57 +02:00
Martine Lenders
d63e98786e
sixlowpan: fix ipv6_addr_init_prefix
2014-10-09 14:42:35 +02:00
Ludwig Ortmann
e40f4c1912
native/freebsd: fix usecond typdef
2014-10-08 16:11:15 +02:00
Ludwig Ortmann
5be28f49f6
Merge pull request #1754 from OlegHahm/timex_makefile_order
...
make: fix the order of Makefile.dep for timex
2014-10-07 05:52:43 -07:00
Oleg Hahm
a50d44c195
posix: configure stdio only to uart0 if enabled
2014-10-07 12:14:14 +02:00
Thomas Eichinger
2f27388d04
sys/transceiver: cleanup and fix for cc2420 and at86rf231
...
cc2420: the payload pointer was set twice
at86rf231: payload_len was not copied from the radio driver buffer
2014-10-07 11:37:29 +02:00
Thomas Eichinger
6fcc2ac777
shell/transceiver: fix byte selection for 802.15.4 devices in output
2014-10-07 10:32:58 +02:00
Thomas Eichinger
a686e909aa
examples/default: fix handling of 802.15.4 devices
2014-10-07 10:32:58 +02:00
Thomas Eichinger
19f612cf2c
examples/default: set src addr correctly
2014-10-07 10:32:58 +02:00
Ludwig Ortmann
cc319d1dd8
Merge pull request #1755 from Lotterleben/transceiver_debug_clean
...
transceiver: notify about dropped packets
2014-10-06 03:06:36 -07:00
Lotte Steenbrink
e843868141
Notify about dropped packets
...
Added debug output that warns about packets that are dropped
because the transceiver buffer was full or because the transceiver
failed to notify aiting upper layers.
2014-10-04 07:18:39 -07:00
Ludwig Ortmann
983e570e27
Merge pull request #1409 from LudwigOrtmann/hwtimer_spin-barrier
...
core,sys,boards: introduce hwtimer_spin barrier
2014-10-01 11:52:32 -07:00
Ludwig Ortmann
da550bc913
introduce HWTIMER_SPIN_BARRIER (API change)
...
Boards should define HWTIMER_SPIN_BARRIER that is used to decide
whether it makes sense to set a timer and yield or call hwtimer_spin
instead.
Used by `core/hwtimer.c` and `sys/vtimer/vtimer.c`.
A default value is provided and a warning is printed when it is used.
2014-10-01 19:53:42 +02:00
Oleg Hahm
cbb1aff0ce
sixlowpan: fixed net_if counter
...
This is a fixup for 11254577eb
which
caused this function to always return a positive number, when any
interfaces was configured.
2014-10-01 18:19:35 +02:00
Oleg Hahm
be1fde1557
Merge pull request #837 from authmillenon/auto-init-addresses
...
auto_init: Initialize link-layer addresses from CPU ID
2014-09-30 15:29:50 +02:00
Martine Lenders
a5a7008f3f
auto_init: Put net_if auto-initialization into its own function
2014-09-30 14:32:29 +02:00
Martin Lenders
30c92efa43
Initialize addresses from CPU ID
2014-09-30 14:32:29 +02:00
René Kijewski
5f262be568
Merge pull request #1653 from medicalwei/shell_backspace
...
Add backspace functionality in shell
2014-09-29 21:21:41 +02:00
René Kijewski
749db8d0dd
core: Provide functions for different byte orders
...
Rationale: see #1586 .
2014-09-29 21:07:02 +02:00
Oleg Hahm
762e9492a6
Merge pull request #1528 from OlegHahm/silent_rpl
...
rpl: mute RPL
2014-09-29 10:56:10 +02:00
Matthias Waehlisch
72b06cc9b1
sys/net/ccn_lite/README.md change wording + add ACM ICN reference
...
sys/net/ccn_lite/README.md fix encoding
2014-09-27 11:17:06 +02:00
René Kijewski
d4f144eb47
Add license statement to {msp430_types,net_help}.h
2014-09-25 10:14:58 +02:00
Yao Wei
b5d3c65672
Add 0x7f as backspace key in shell
2014-09-24 15:40:21 +08:00
Hinnerk van Bruinehsen
567ebf987f
lint: limit maximum length of input via scanf
2014-09-19 23:31:26 +02:00
Christian Mehlis
88ae531ef9
Merge pull request #1679 from cgundogan/bloom_t_as_typedef
...
sys: use typedef for `struct bloom_t`
2014-09-19 13:18:39 +02:00
Ludwig Ortmann
289c4c0ee4
doc: add license headers to some .h files
2014-09-18 17:45:11 +02:00
Cenk Gündoğan
0a4ea07daa
sys: use typedef for struct bloom_t
...
`bloom_t` is defined as a struct.
`_t` can mislead the user to think of bloom_t
as a typedef (see our coding conventions) instead of a struct.
Thus, I modified `struct bloom_t` to be a *typedefed* struct.
Another solution would be to rename bloom_t to sth. like bloom_s
everywhere and use `struct bloom_s` instead of `bloom_t`.
2014-09-17 19:54:40 +02:00