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

1529 Commits

Author SHA1 Message Date
Christian Mehlis
34a4bb9cb9 example: adapt README to new naming of the transport layer 2014-09-13 15:05:01 +02:00
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
Fabian Nack
7650ef412f tests/examples: blacklisted msbiot for some tests 2014-09-02 15:45:50 +02:00
Hinnerk van Bruinehsen
4ca3a49a5d tests: blacklist failing test on arduino-mega2560 2014-08-27 17:47:24 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Oleg Hahm
400fb29a6b licenses: updated some missing licenses in headers 2014-08-21 23:52:42 +02:00
Oleg Hahm
e879e2aba2 fix low-level sending destination address 2014-08-21 21:34:45 +02:00
Oleg Hahm
659800d397 examples: use correct broadcast address when sending 2014-08-21 21:34:45 +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
Thomas Eichinger
0e79a01cd2 stm32f1: SPI: implement speed setting properly 2014-08-21 17:53:38 +02:00
Thomas Eichinger
aaa2c2e8ba boards: initial import of iot-lab_M3 2014-08-21 17:53:37 +02:00
Thomas Eichinger
37611db41c cpu: initial import of stm32f1 2014-08-21 17:53:37 +02:00
Thomas Eichinger
e6798a8250 examples/ccn-lite-relay: remove unnecessary USEMODULE 2014-08-21 17:46:17 +02:00
Oleg Hahm
1de5c2b4a0 fixed remaining variables to kernel_pid_t 2014-08-07 17:29:53 +02:00
Oleg Hahm
93ef4346e9 ccnl: duplicate variable names
Some variables had multiple definitions, but could be removed or
declared with a smaller scope.
2014-08-07 16:31:27 +02:00
Oleg Hahm
0ad7b170ed make kernel_pid_t comparisons consistent 2014-08-07 16:31:27 +02:00
Oleg Hahm
aa2ecf6216 initialize kernel_pid_t correctly 2014-08-07 16:31:27 +02:00
epiktet
1154bd5a50 cpu/nrf51822: squash added support for nrf51822 cpu 2014-08-04 13:42:06 +02:00
Ludwig Ortmann
106137ff64 examples: use DEVELHELP per default 2014-08-01 18:49:56 +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
René Kijewski
b7b7fd3bc1 make: provide BOARD, MCU and CPU name as a string
This PR adds the defined `RIOT_BOARD`, `RIOT_CPU` and `RIOT_MCU`.
They each are defined as `BOARD_${BOARD}`, `CPU_${CPU}`, and
`MCU_${CPU}`, resp.

`BOARD_${BOARD}` is defined as the string `"${BOARD}"`, but not in upper
case. Same for the other two.
2014-08-01 02:40:40 +02:00
Hauke Petersen
938c61a5a2 Merge pull request #1456 from haukepetersen/board_stm32f3discovery
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +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
Hauke Petersen
f2c8997acc examples/tests: blacklisted stm32f3discovery 2014-07-31 19:42:05 +02:00
Oleg Hahm
54fd920da0 Merge pull request #1450 from mehlis/ccp-stacksize-fix
examples: changed stacksize to the recommended value
2014-07-19 15:04:38 +02:00
Christian Mehlis
346c0cc490 examples: changed stacksize to the recommended value 2014-07-18 21:21:43 +02:00
Christian Mehlis
d2b78a398f ccnl: finish rebase 2014-07-18 21:06:40 +02:00
Christian Mehlis
ba22fd41b7 ccnl: adapt HOWTO to new features 2014-07-18 20:08:29 +02:00
Christian Mehlis
9b5eedeea8 ccnl: use stacksize main for all threads 2014-07-18 20:08:29 +02:00
Christian Mehlis
cebffb2ccf ccnl: make relay start on RIOT startup 2014-07-18 20:07:15 +02:00
Christian Mehlis
51fa2ec5c5 ccnl: use vtimer instead of rtc 2014-07-18 20:04:13 +02:00
Hauke Petersen
a49fc062bf test/examples: blacklisted stm32f4discovery 2014-07-16 17:20:53 +02:00
Hauke Petersen
082e970251 tests/examples: added stm32f0discovery to ignorelists 2014-07-16 15:21:33 +02:00
Ludwig Ortmann
1c825e2524 tests,examples: remove unneeded headers, fix style 2014-07-15 18:54:45 +02:00
René Kijewski
ac9c80f417 make: don't use export on example makefiles 2014-07-10 15:23:31 +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
Oleg Hahm
13028b41bf applications: set stack size correctly
The correct stack size for all examples and test applications correctly.
KERNEL_CONF_STACKSIZE_MAIN is the correct stack size for any thread
using printf.

Also adapted black lists accordingly.
2014-07-04 15:39:43 +02:00
René Kijewski
63dd8546af Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
Pham Huu Dang Nhat
3595506020 added riot_and_cpp example 2014-06-25 16:37:05 +07:00
René Kijewski
3063e3c2b1 Fix all warnings for native and qemu-i386
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
Martin Lenders
2362623490 Fix trailing whitespaces
Fixes #1138
2014-05-26 14:54:23 +02:00
emmanuelsearch
a37e86db0a Documentation: Create README.md for the CCN-lite client and relay 2014-05-26 14:11:30 +02:00
Thomas Eichinger
1e983c9670 s/PROJECT/APPLICATION/g
fixes #548
2014-05-26 13:21:09 +02:00
René Kijewski
4e4f908379 Initial import of the x86 port
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
René Kijewski
49778752b3 Use BOARD_INSUFFICIENT_RAM in examples and tests 2014-05-23 14:29:52 +02:00
Kévin Roussel
2a3033b3ca boards/z1: initial import 2014-05-16 11:02:06 +02:00
Hauke Petersen
cbd4f91656 examples/tests: blacklisted udoo board
blacklisted for:
- ccn-lite-client
- ccn-lite-relay
- rpl_udp
- test_net_if
- test_pnet
2014-05-15 11:53:14 +02:00
Hauke Petersen
47ce60ccdc examples: IPC ping-pong README adjustments 2014-05-14 15:40:52 +02:00
Hauke Petersen
279b5cc5ca examples: adjusted output and README for IPC pingpong 2014-05-14 15:11:01 +02:00
Hauke Petersen
fbdc18cd63 examples: added README.md to ipc_pingpong example 2014-05-14 14:46:08 +02:00
René Kijewski
ccc934856f Merge pull request #1124 from Kijewski/consolidate-crypto
sys:crypto: put ciphers into one module
2014-05-14 13:12:21 +02:00
Ludwig Ortmann
2314915ff2 license: fix license header grammar
insert missing "is"
2014-05-14 09:49:09 +02:00
Hauke Petersen
595ede41ea examples/tests: blacklisted arduino-due 2014-05-13 21:18:27 +02:00
René Kijewski
96fba8a19b sys:crypto: put ciphers into one module 2014-05-12 21:57:44 +02:00
Ludwig Ortmann
1eca41456f examples/default: add README.md
Fixes #1068
2014-05-12 11:22:14 +02:00
René Kijewski
4aabf8f1de Merge pull request #1072 from Kijewski/issue-1070
Add readme for the hello-world example
2014-05-08 09:24:37 +02:00
Christian Mehlis
2a37308a10 Merge pull request #1081 from mehlis/ccnl-config-remove
ccnl: remove unused config module
2014-05-07 21:13:37 +02:00
René Kijewski
ca21d9e8f0 Add readme for the hello-world example
Closes #1070.
2014-05-07 09:52:17 +02:00
Christian Mehlis
2f4c4caa5d ccnl: don't include transceiver and defaulttransceiver
This removes the duplicate include of the transceiver.
The transceiver module is a dependency of the
defaulttransceiver, so an explicite include is not needed

Follow up to #1053
2014-04-30 14:05:40 +02:00
Christian Mehlis
9eb07e0a01 ccnl: remove useless config module 2014-04-30 14:03:42 +02:00
Christian Mehlis
a41f0ff31d Merge pull request #1053 from mehlis/ccnl-make-defaulttransceiver
ccnl: don't include transceiver and defaulttransceiver
2014-04-26 14:03:04 +02:00
Fabian Brandt
ef5eaff1bc ETX-functionality is now part of a common routing-module 2014-04-25 11:30:28 +02:00
Christian Mehlis
b323395c7a ccnl: don't include transceiver and defaulttransceiver
This removes the duplicate include of the transceiver.
The transceiver module is a dependency of the
defaulttransceiver, so an explicite include is not needed
2014-04-25 09:09:50 +02:00
Christian Mehlis
9e6d91ecd6 Merge pull request #1030 from mehlis/ccnl-blacklist
examples: ccn-lite blacklist boards
2014-04-18 18:51:47 +02:00
Christian Mehlis
7923e1e24d examples: rpl_udp: blacklist boards 2014-04-18 17:29:59 +02:00
Christian Mehlis
dcfd5b9a5a examples: ccn-lite-relay blacklist boards 2014-04-18 15:37:07 +02:00
Christian Mehlis
7184e32ba3 examples: ccn-lite-client blacklist boards 2014-04-18 15:30:56 +02:00
Christian Mehlis
1bc74f4fef Merge pull request #1001 from mehlis/ccnl-defaulttransceiver
ccnl: use default transceiver
2014-04-18 15:12:09 +02:00
Christian Mehlis
4488134322 Merge pull request #969 from LudwigOrtmann/examples_rpl_udp_defaulttransceiver
examples/rpl_udp: use defaulttransceiver
2014-04-18 15:11:07 +02:00
Christian Mehlis
c2846a07b9 ccnl: use default transceiver 2014-04-18 11:45:53 +02:00
Ludwig Ortmann
6349d357cd examples/hello-world: return instead of busy loop. 2014-04-03 18:45:26 +02:00
Ludwig Ortmann
373c0aba6e examples/rpl_udp: use defaulttransceiver 2014-04-02 16:08:51 +02:00
Ludwig Ortmann
c0846fde22 Merge pull request #940 from Kijewski/issue-926
make: Add DEFAULT_MODULE and DISABLE_MODULE
2014-04-02 14:46:24 +02:00
Ludwig Ortmann
11e544ac0b Merge pull request #769 from authmillenon/fix-rpl-app-for-clang
rpl: Fix RPL app for clang
2014-04-02 10:56:49 +02:00
René Kijewski
e740fbc800 make: Add DEFAULT_MODULE and DISABLE_MODULE
Closes #926
2014-04-01 23:42:00 +02:00
Martin Lenders
e34b006445 Fix rpl app for clang 2014-04-01 17:31:24 +02:00
René Kijewski
de29e4184c Add include paths automatocally for USEMODULES
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.

But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
2014-03-29 16:27:55 +01:00
Martine Lenders
53264c7a45 Merge pull request #609 from LudwigOrtmann/transceiver_any
anytransceiver pseudomodule
2014-03-24 14:04:02 +01:00
Christian Mehlis
01fdbc3465 examples: make includes adhere to coding conventions 2014-03-24 11:08:42 +01:00
Oleg Hahm
b5f36bab1e Merge pull request #907 from OlegHahm/ipc_pingpong_fix
ipc_pingpong: start receiving thread immediately
2014-03-20 22:11:23 +01: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
Ludwig Ortmann
8ac4f3332d core cpu: add defaulttransceiver pseudomodule
update examples/default
2014-03-18 10:18:15 +01:00
Oleg Hahm
e6241b13de ipc_pingpong: start receiving thread immediately
Rationale: When using `msg_send_receive()` the receiving thread needs to
be already in receiving mode.
2014-03-16 19:19:58 +01:00
Martin Lenders
3a8c1770b1 Fix apps for previous changes 2014-03-01 15:08:19 +01:00
Ludwig Ortmann
34c85da954 examples: fix rpl_udp README regarding invocation 2014-02-27 16:35:07 +01:00
Christian Mehlis
9d9f114f42 shell: adapt register prefix command to new shell api 2014-02-26 13:55:20 +01:00
René Kijewski
0eb7597ab1 Convert examples 2014-02-25 17:54:17 +01:00
Oleg Hahm
93e32953b3 always build and initialize hwtimer
Eliminates special treatment of the hwtimer module and makes it a
mandatory part of the kernel.
2014-02-24 18:36:28 +01:00
Christian Mehlis
48f23aa43d Merge pull request #734 from mehlis/native-c++-fixes
C++ compiler warnings (native, core)
2014-02-20 10:27:37 +01:00
Christian Mehlis
87d8e4f99c enable nonces in interests 2014-02-19 23:23:53 +01:00
Christian Mehlis
0309fecc19 fix warning: invalid suffix on literal
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Christian Mehlis
cb9c5d00de repace project by application in documentation 2014-02-18 12:28:32 +01:00
Oleg Hahm
6c0482b976 Merge pull request #701 from Kijewski/issue-672
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Christian Mehlis
38529e3296 replace all endless for loops by while 2014-02-14 17:47:33 +01:00
René Kijewski
b9c9436e88 102dc45382 (commitcomment-5378590) 2014-02-14 14:50:39 +01:00
René Kijewski
102dc45382 Eliminate findstring in more places 2014-02-14 14:30:16 +01:00
Christian Mehlis
d794900386 Merge pull request #666 from LudwigOrtmann/native_valgrind_config
Native valgrind config
2014-02-12 11:01:34 +01:00
Thomas Eichinger
17b624e0a4 Merge pull request #681 from OlegHahm/at86rf231_fixes
at86rf231: fix includes and shell commands
2014-02-12 09:46:13 +01:00
Ludwig Ortmann
b175dbee91 update Makefiles to point to all-valgrind target
Header path knowledge is not necessary anymore
2014-02-11 19:22:40 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +01:00
Oleg Hahm
9fff3f5b90 Merge pull request #657 from LudwigOrtmann/wsn430-v1_4_Makefiles
fix wsn430-v1_4 Makefiles
2014-02-11 17:55:11 +01:00
Oleg Hahm
f379eefbd8 fix includes and shell commands for at86rf231 2014-02-11 17:15:03 +01:00
Christian Mehlis
14cb81d914 Merge pull request #639 from mehlis/remaining-license
added licenses to some files
2014-02-10 10:18:01 +01:00
Christian Mehlis
050b714e78 added licenses to some files 2014-02-08 12:20:28 +01:00
Ludwig Ortmann
f09f30c94d fix wsn430-v1_4 Makefiles 2014-02-07 21:20:35 +01:00
Ludwig Ortmann
1c9d4f8720 remove stale cc110x_ng includes 2014-02-07 19:22:27 +01:00
Ludwig Ortmann
c6be9ad3fc remove superfluous uart USEMODULEs from examples 2014-02-06 12:34:54 +01:00
Christian Mehlis
341b095acf added LGPL header and doxygen headers 2014-02-04 12:57:06 +01:00
Lotte Steenbrink
c1980e5fcf added README that explains how to use the rpl_udp example application 2014-02-03 21:28:29 +00:00
Christian Mehlis
d0680e7bac shell: added a handler for mersenne twister 2014-01-30 11:52:29 +01:00
Christian Mehlis
f00693255b examples: use astyle to adopt current code style guide 2014-01-29 16:54:20 +01:00
Christian Mehlis
fa87339083 ccnl: adapt doc to current code 2014-01-21 11:40:58 +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
Christian Mehlis
3f246803af ccnl: remove energy mesurement code
This code causes some troubles with the heavy usage of hwtimer and
foating point operations.

Ref: https://github.com/RIOT-OS/RIOT/issues/495
2014-01-15 18:55:49 +01:00
Ludwig Ortmann
57679f90dc remove trailing slashes from RIOTBASE variables
addresses https://github.com/RIOT-OS/RIOT/pull/496#issuecomment-32170092
2014-01-15 17:26:10 +01:00
Ludwig Ortmann
498cc027b1 dist/example Makefiles: not BOARD -> no BOARD, ## Modules -> # Modules 2014-01-13 11:12:14 +01:00
Ludwig Ortmann
a60a0a2cf7 Use dist Makefile style in examples Makefiles 2014-01-13 11:05:52 +01:00
Oleg Hahm
1b1ca336f8 created examples folder with six apps 2014-01-06 10:10:47 +01:00