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

14534 Commits

Author SHA1 Message Date
Martine Lenders
f6cb8a89ce Merge pull request #7117 from cgundogan/pr/netdev_doc
netdev.h: remove indirect reference to netdev2 from doc
2017-05-31 17:15:34 +02:00
Cenk Gündoğan
1f4dbcb089 Merge pull request #6676 from astralien3000/rm_aversiveplusplus
pkg : remove aversiveplusplus
2017-05-31 16:57:55 +02:00
Cenk Gündoğan
1473adde17 netdev.h: remove indirect reference to netdev2 from doc 2017-05-31 16:54:38 +02:00
Loïc Dauphin
f8675f77b7 pkg: removed aversiveplusplus 2017-05-31 16:41:33 +02:00
Sebastian Meiling
aff74a7216 Merge pull request #7113 from miri64/doc/fix/make-quick-start-guide
make: fix link to quickstart guide
2017-05-31 16:40:37 +02:00
Loïc Dauphin
b5fea98e17 tests: removed pkg_aversiveplusplus 2017-05-31 16:34:58 +02:00
Martine Lenders
e1d2c0c134 make: fix link to quickstart guide 2017-05-31 16:19:01 +02:00
Cenk Gündoğan
9d286240be Merge pull request #6736 from smlng/tests/xtimer_msg_receive_timeout
tests: enhance xtimer_msg_receive_timeout
2017-05-30 22:07:31 +02:00
smlng
44801c4ef6 tests: enhance xtimer_msg_receive_timeout
- correct test period from 100ms to 1000ms, to match description
    - moved description to separate README.md
    - changed timer message type from 44 to 42, for nerdiness
    - minor code enhancements
2017-05-30 22:00:49 +02:00
Emmanuel Baccelli
cdaccf4e8c Merge pull request #7056 from kaspar030/add_coccinelle_readme
dist: tools: coccinelle: add documentation
2017-05-30 21:47:38 +02:00
e99a834487 dist: tools: coccinelle: add documentation 2017-05-30 21:38:03 +02:00
Cenk Gündoğan
3921fc86a7 Merge pull request #6901 from BytesGalore/rpl_drop_dao_ack_on_mc
rpl: drop DAO-ACK when received via multicast
2017-05-30 21:28:58 +02:00
Sebastian Meiling
efffddd0ba Merge pull request #6768 from aabadie/driver_dsp0401
drivers/dsp0401: add implementation for 4 digits alphanumeric display
2017-05-30 21:13:36 +02:00
Martine Lenders
229ad28751 Merge pull request #7112 from rfuentess/doxygen_fixes
Doxygen:  Minor series of fixes for the documentation
2017-05-30 21:06:06 +02:00
Raul Fuentes
1c0653f383 Doxygen: Completed line for Makefile.base 2017-05-30 20:48:57 +02:00
Raul Fuentes
f21d497be4 tread.h: Minor examples compile 2017-05-30 20:48:57 +02:00
Raul Fuentes
808b56c07f sock/udp.h: Changed wiki syntax to doxygen 2017-05-30 20:48:41 +02:00
Cenk Gündoğan
fd7f8a5209 Merge pull request #7108 from cgundogan/pr/kw2xrf_inline
kw2xrf: use static inline
2017-05-30 20:20:51 +02:00
BytesGalore
da38b77ba4 rpl: drop DAO-ACK when received on multicast 2017-05-30 18:05:00 +02:00
BytesGalore
c3843122dd Merge pull request #7111 from cgundogan/pr/ndp_fallthrough
ndp: warn gcc-7 about intentional fall-through
2017-05-30 18:00:02 +02:00
Cenk Gündoğan
3c73d07e04 Merge pull request #7026 from smlng/shell/ccn_lite_cmd_fixup
shell: fix _ccnl_content command
2017-05-30 15:35:34 +02:00
Cenk Gündoğan
6065be76e1 ndp: warn gcc-7 about intentional fall-through
Since gcc-7 `Wimplicit-fallthrough` is activated by using `-Wextra`.
This leads to the following problem when compiling `gnrc_networking`:

```
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c: In function ‘gnrc_ndp_internal_set_state’:
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:106:15: error: this statement may fall through [-Werror=implicit-fallthrough=]
   t = ipv6_iface->reach_time;
  ~~^~~~~~~~~~~~~~~~~~~~~~~~
RIOT/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c:109:9: note: here
case GNRC_IPV6_NC_STATE_DELAY:
         ^~~~
```

The fall-through in this code is intentional. There are several ways to
warn the comiler about such intentional fall-throughs, which include
e.g. attributed empty statements (`__attribute__ ((fallthrough));`).
I don't like tis approach however. The best way would probably be to
remove this fall-through from the code. However, to keep the diff
minimal, and since ndp will change in the future, I went for warning
the compiler using comments.

The compiler checks comments for several *fall through* regexs to
decide whether a fallthrough was intentional or not.

You can read more about this gcc option in [1]. A note about
fallthrough comment regexs is at the bottom of this article.

[1] https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
2017-05-30 14:23:37 +02:00
Martine Lenders
2e0133d1df Merge pull request #7110 from cgundogan/pr/native_fallthrough
native: add break to satisfy compiler gcc-7.1.1
2017-05-30 14:20:01 +02:00
Martine Lenders
386be92a66 Merge pull request #7105 from cgundogan/pr/packer_libudev
dist: packer: update and add libudev-dev
2017-05-30 14:06:33 +02:00
Cenk Gündoğan
044fac8d17 native: add break to satisfy compiler gcc-7.1.1
Building any application with gcc 7.1.1 fails with the following error:

```
~/RIOT % make -C examples/hello-world
make: Entering directory 'RIOT/examples/hello-world'
Building application "hello-world" for "native" with MCU "native".

"make" -C RIOT/boards/native
"make" -C RIOT/boards/native/drivers
"make" -C RIOT/core
"make" -C RIOT/cpu/native
RIOT/cpu/native/startup.c: In function ‘startup’:
RIOT/cpu/native/startup.c:292:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
       usage_exit(EXIT_SUCCESS);
       ^~~~~~~~~~~~~~~~~~~~~~~~
RIOT/cpu/native/startup.c:293:13: note: here
   case 'i':
   ^~~~
cc1: all warnings being treated as errors
make[2]: *** [RIOT/Makefile.base:81: RIOT/examples/hello-world/bin/native/cpu/startup.o] Error 1
make[1]: *** [RIOT/Makefile.base:20: ALL--RIOT/cpu/native] Error 2
make: *** [RIOT/examples/hello-world/../../Makefile.include:297: all] Error 2
make: Leaving directory 'RIOT/examples/hello-world'
```

```
% gcc --version
gcc (GCC) 7.1.1 20170528
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

fixed by adding a `break` statement after `usage_exit()`
2017-05-30 13:56:17 +02:00
Martine Lenders
9a16dab681 Merge pull request #7106 from BytesGalore/adjust_edbg_commit_hash
dist/edbg: forward commit hash to added samr21-xpro (rev D)
2017-05-30 10:18:07 +02:00
Cenk Gündoğan
6d0fa42d07 kw2xrf: use static inline 2017-05-30 09:51:30 +02:00
BytesGalore
eac2b0c761 dist/edbg: forward commit hash to added samr21-xpro (rev D) 2017-05-30 08:59:11 +02:00
Joakim Nohlgård
8efb714edd kinetis/mcg: Use {} for empty while loops 2017-05-30 08:50:30 +02:00
Joakim Nohlgård
5c34eb4e2c kinetis: Add support for low-end MCG without PLL
Found in Kinetis L series, among others
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
a8450f2952 kinetis: Simplify MCG state traversal algorithm
The new implementation uses a precalculated map of which mode to switch
to next if going from mode A to mode B. This simplifies the
implementation for moving between modes which are not direct neighbors.
See mcg.h documentation for a diagram of the state machine for the
clocking modes. Also found in the CPU reference manual of all Kinetis
CPUs, MCG chapter, MCG mode state diagram.
2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f9ed160fe2 cpu/kinetis_common: Add state graph to MCG documentation 2017-05-30 08:50:30 +02:00
Joakim Nohlgård
f6073c0aa4 Merge pull request #6993 from gebart/pr/kinetis-isr
kinetis: Unify default ISR definitions
2017-05-30 08:48:50 +02:00
Cenk Gündoğan
f18936a7d9 dist: packer: update and add libudev-dev 2017-05-29 19:26:55 +02:00
Martine Lenders
19d485d1b1 Merge pull request #7102 from haukepetersen/opt_gcoap_const
net/gcoap: make input parameters const
2017-05-29 11:57:28 +02:00
24779bc738 tests/driver_dsp0401: add simple test application 2017-05-29 11:11:04 +02:00
Hauke Petersen
bb90e293a2 net/gcoap: make input parameters const 2017-05-26 16:34:40 +02:00
Hauke Petersen
9b7ece6827 cpu/kinetis: prevent use of symlinks for ld-scripts
The use of symbolic links leads to trouble in certain environments
(e.g. vagrant under Win). This PR gets rid of symlinks and uses
variables in the Makefiles to map to the correct linkerscripts
instead.
2017-05-26 16:07:48 +02:00
a4e16cd7e9 drivers/dsp0401: initial implementation 2017-05-26 15:24:51 +02:00
3b7252c7de Merge pull request #7099 from miri64/doc/fix/application
doc: fix "Creating an application" page
2017-05-24 18:40:28 +02:00
Martine Lenders
cac6da3fb7 doc: fix "Creating an application" page 2017-05-24 18:23:30 +02:00
Martine Lenders
d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
Vincent Dupont
ee7a776a9f Merge pull request #7059 from OTAkeys/pr/fix_ls_handler
sc_vfs: fix _ls_handler
2017-05-24 17:55:52 +02:00
60fb6d2d50 dist: tools: changed_files.sh: add msba2 tools to exclude list 2017-05-24 17:54:02 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
a65931c04a add some missing header guards 2017-05-24 17:54:01 +02:00
ed31db4702 dist: tools: build_and_test.sh: add header guard check 2017-05-24 17:54:01 +02:00
de07fe07e5 dist: tools: headerguard: initial commit 2017-05-24 17:54:01 +02:00
Hauke Petersen
c57d67fab8 Merge pull request #7073 from kaspar030/add_edbg_support
tools: add edbg support
2017-05-24 17:35:42 +02:00
Hauke Petersen
71ff62011b Merge pull request #7098 from haukepetersen/add_kinetis_uartmodeconf
cpu/kinetis: make UART mode configurable per board
2017-05-24 15:58:32 +02:00