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

23 Commits

Author SHA1 Message Date
René Kijewski
0cc699c0ce lint: reduce scope
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Cenk Gündoğan
710c7e6cf6 transport_layer: Splitting UDP and TCP
Currently, the tcp and udp implementations are bound to each other in a
module called *destiny*. Thus, when using only one of them then the
other one gets also compiled into the binary and initialized,
which results in unnecessary RAM usage and workload for the CPU.

The approach in this PR defines a common module named *socket_base*,
which contains functions used by the posix layer. Compiled by it's own,
those functions return negative error codes, to symbolize upper layers
that they are not supported. When also including the modules *udp* or
*tcp* respectively, functions from *socket_base* get overwritten with the
correct functionality.

Defining *udp* or *tcp* in a Makefile also includes *socket_base*.
Defining *pnet* in a Makefile also includes *socket_base*.
2014-09-11 20:07:46 +02:00
Oleg Hahm
4e48c25ecd examples: don't advertise IPv6 prefix
Cleaning up the IPv6 address initialization and removed the addition of
an IPv6 prefix to advertise.
2014-08-21 21:34:45 +02:00
Oleg Hahm
8b34d323e2 rpl: moved headers to sys/net/include 2014-08-21 21:34:45 +02:00
Oleg Hahm
4e39f68dd4 examples: cleanup for rpl_udp
* removed unnecessary shell commands
* updated documentation
* Unified global default IP address
2014-08-21 21:34:45 +02:00
Oleg Hahm
ea1d1d68b6 examples: renamed rpl_udp header 2014-08-21 21:34:45 +02:00
Oleg Hahm
983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
René Kijewski
ba1a15535b core: remove extra thread_create_arg() function 2014-07-09 10:28:23 +02:00
Ludwig Ortmann
06a86aef20 tests&examples: use sizeof(stack) in thread_create
fixes #1392
2014-07-09 07:41:54 +02:00
Ludwig Ortmann
373c0aba6e examples/rpl_udp: use defaulttransceiver 2014-04-02 16:08:51 +02:00
Oleg Hahm
1c67af2ddd using DEBUGF where reasonable 2014-03-19 16:27:54 +01:00
Oleg Hahm
6e7e92ee5a more debug for rpl_udp example 2014-03-19 16:19:08 +01:00
Martin Lenders
3a8c1770b1 Fix apps for previous changes 2014-03-01 15:08:19 +01:00
René Kijewski
0eb7597ab1 Convert examples 2014-02-25 17:54:17 +01:00
Christian Mehlis
341b095acf added LGPL header and doxygen headers 2014-02-04 12:57:06 +01:00
Christian Mehlis
f00693255b examples: use astyle to adopt current code style guide 2014-01-29 16:54:20 +01:00
Oleg Hahm
638bb4ce51 Merge pull request #516 from mehlis/rpl-fixes
first set of rpl demo related fixes
2014-01-21 02:28:41 -08:00
Christian Mehlis
39d532cfdc rpl_udp: remove destiny init call
This handler is called by auto_init to initialize the destiny
module correctly.

Fix: 'examples/rpl_udp' is currently double initializing destiny.
See: https://github.com/RIOT-OS/RIOT/blob/master/sys/auto_init/auto_init.c#L114
2014-01-20 23:30:50 +01:00
Christian Mehlis
f757de190f demo: make handler more error tolerant 2014-01-18 01:16:38 +01:00
Christian Mehlis
a4f1dc464a demo: fix printf handling 2014-01-18 01:15:29 +01:00
Christian Mehlis
dfc87026d7 demo: rename functions to avoid collisions 2014-01-18 01:14:23 +01:00
Oleg Hahm
1b1ca336f8 created examples folder with six apps 2014-01-06 10:10:47 +01:00