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

19 Commits

Author SHA1 Message Date
Hinnerk van Bruinehsen
57b998e4a1 cpu/examples/sys/drivers: reduce scope of variables 2014-09-13 19:03:40 +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
659800d397 examples: use correct broadcast address when sending 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
Ludwig Ortmann
1c825e2524 tests,examples: remove unneeded headers, fix style 2014-07-15 18:54:45 +02:00
René Kijewski
ba1a15535b core: remove extra thread_create_arg() function 2014-07-09 10:28:23 +02:00
Ludwig Ortmann
1a8967cb45 tests&examples: apply coding conventions to sizeof 2014-07-09 07:41:54 +02:00
Ludwig Ortmann
06a86aef20 tests&examples: use sizeof(stack) in thread_create
fixes #1392
2014-07-09 07:41:54 +02: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
38529e3296 replace all endless for loops by while 2014-02-14 17:47:33 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +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
Christian Mehlis
a4f1dc464a demo: fix printf handling 2014-01-18 01:15:29 +01:00
Oleg Hahm
1b1ca336f8 created examples folder with six apps 2014-01-06 10:10:47 +01:00