Commit Graph

14311 Commits (9d286240be5f8aa95ce6701de35d9492396ebc91)
 

Author SHA1 Message Date
Cenk Gündoğan 9d286240be Merge pull request #6736 from smlng/tests/xtimer_msg_receive_timeout
tests: enhance xtimer_msg_receive_timeout
6 years ago
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
6 years ago
Emmanuel Baccelli cdaccf4e8c Merge pull request #7056 from kaspar030/add_coccinelle_readme
dist: tools: coccinelle: add documentation
6 years ago
Kaspar Schleiser e99a834487 dist: tools: coccinelle: add documentation 6 years ago
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
6 years ago
Sebastian Meiling efffddd0ba Merge pull request #6768 from aabadie/driver_dsp0401
drivers/dsp0401: add implementation for 4 digits alphanumeric display
6 years ago
Martine Lenders 229ad28751 Merge pull request #7112 from rfuentess/doxygen_fixes
Doxygen:  Minor series of fixes for the documentation
6 years ago
Raul Fuentes 1c0653f383 Doxygen: Completed line for Makefile.base 6 years ago
Raul Fuentes f21d497be4 tread.h: Minor examples compile 6 years ago
Raul Fuentes 808b56c07f sock/udp.h: Changed wiki syntax to doxygen 6 years ago
Cenk Gündoğan fd7f8a5209 Merge pull request #7108 from cgundogan/pr/kw2xrf_inline
kw2xrf: use static inline
6 years ago
BytesGalore da38b77ba4 rpl: drop DAO-ACK when received on multicast 6 years ago
BytesGalore c3843122dd Merge pull request #7111 from cgundogan/pr/ndp_fallthrough
ndp: warn gcc-7 about intentional fall-through
6 years ago
Cenk Gündoğan 3c73d07e04 Merge pull request #7026 from smlng/shell/ccn_lite_cmd_fixup
shell: fix _ccnl_content command
6 years ago
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/
6 years ago
Martine Lenders 2e0133d1df Merge pull request #7110 from cgundogan/pr/native_fallthrough
native: add break to satisfy compiler gcc-7.1.1
6 years ago
Martine Lenders 386be92a66 Merge pull request #7105 from cgundogan/pr/packer_libudev
dist: packer: update and add libudev-dev
6 years ago
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()`
6 years ago
Martine Lenders 9a16dab681 Merge pull request #7106 from BytesGalore/adjust_edbg_commit_hash
dist/edbg: forward commit hash to added samr21-xpro (rev D)
6 years ago
Cenk Gündoğan 6d0fa42d07 kw2xrf: use static inline 6 years ago
BytesGalore eac2b0c761 dist/edbg: forward commit hash to added samr21-xpro (rev D) 6 years ago
Joakim Nohlgård f6073c0aa4 Merge pull request #6993 from gebart/pr/kinetis-isr
kinetis: Unify default ISR definitions
6 years ago
Cenk Gündoğan f18936a7d9 dist: packer: update and add libudev-dev 6 years ago
Martine Lenders 19d485d1b1 Merge pull request #7102 from haukepetersen/opt_gcoap_const
net/gcoap: make input parameters const
6 years ago
Alexandre Abadie 24779bc738 tests/driver_dsp0401: add simple test application 6 years ago
Hauke Petersen bb90e293a2 net/gcoap: make input parameters const 6 years ago
Alexandre Abadie a4e16cd7e9 drivers/dsp0401: initial implementation 6 years ago
Kaspar Schleiser 3b7252c7de Merge pull request #7099 from miri64/doc/fix/application
doc: fix "Creating an application" page
6 years ago
Martine Lenders cac6da3fb7 doc: fix "Creating an application" page 6 years ago
Martine Lenders d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
6 years ago
Vincent Dupont ee7a776a9f Merge pull request #7059 from OTAkeys/pr/fix_ls_handler
sc_vfs: fix _ls_handler
6 years ago
Kaspar Schleiser 60fb6d2d50 dist: tools: changed_files.sh: add msba2 tools to exclude list 6 years ago
Kaspar Schleiser 0fcc7d3834 cleanup: apply headerguard script output 6 years ago
Kaspar Schleiser a65931c04a add some missing header guards 6 years ago
Kaspar Schleiser ed31db4702 dist: tools: build_and_test.sh: add header guard check 6 years ago
Kaspar Schleiser de07fe07e5 dist: tools: headerguard: initial commit 6 years ago
Hauke Petersen c57d67fab8 Merge pull request #7073 from kaspar030/add_edbg_support
tools: add edbg support
6 years ago
Hauke Petersen 71ff62011b Merge pull request #7098 from haukepetersen/add_kinetis_uartmodeconf
cpu/kinetis: make UART mode configurable per board
6 years ago
Kaspar Schleiser 8060c48427 boards: samd21-xpro: enable use of edbg 6 years ago
Kaspar Schleiser f2cc58e8ed boards: samr21-xpro: enable use of edbg 6 years ago
Kaspar Schleiser d7d796b80d makefiles: add edbg tool support 6 years ago
Kaspar Schleiser 6a9175944c dist: tools: add edbg 6 years ago
Hauke Petersen 867b09c224 cpu/kinetis: make UART mode configurable per board 6 years ago
Vincent Dupont 151c469d9e sc_vfs: fix _ls_handler
Calls to vfs_closedir were missing at the end of _ls_handler causing umount
ro return an error.
6 years ago
Hauke Petersen 7a1fcdf0b8 Merge pull request #6469 from kb2ma/gcoap/observe
gcoap: Observe extension server
6 years ago
Ken Bannister 3abff6d140 gcoap: Update example for Observe, including documentation. 6 years ago
Ken Bannister 9d37be2729 gcoap: Add server-side Observe registration and notifications. 6 years ago
Ken Bannister 05fe8527a2 nanocoap: Update pkg for Observe commits. 6 years ago
Martine Lenders 18bad155ad Merge pull request #7074 from haukepetersen/fix_borderrouter_maketargets
examples/gnrc_border_router: remove `make term` warnings
6 years ago
Hauke Petersen 92076cdf50 example/gnrc_border_router: use TERMDEPS 6 years ago