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

24068 Commits

Author SHA1 Message Date
Martine Lenders
45f7966364 gnrc_sixlowpan_frag_vrb: fix for draft update
Due to some changes to the minimal forwarding draft and in preparation
for Selective Fragment Recovery some changes to the VRB API were
needed. Now the index of a VRB entry is only (L2 src, tag) not as
before (L2 src, L2 dst, length, tag).

I know that the current `rbuf_base` causes waste, as all the fields not
used by the new index are effectively not used by the VRB. I'd like to
fix that however in a later change, since that also requires some
modifications of the classic reassembly buffer, and thus would
complicate the review and testing of the change.

Sources for the index change:
- https://tools.ietf.org/html/draft-ietf-6lo-minimal-fragment-04#section-1
- https://mailarchive.ietf.org/arch/browse/6lo/?gbt=1&index=DLCTxC2X4bRNtYPHhtEkavMWlz4
2019-09-29 18:31:43 +02:00
Martine Lenders
fb8b8ad8dc
Merge pull request #12324 from miri64/gnrc_sixlowpan_frag/enh/rbuf-rework202
gnrc_sixlowpan_frag_rb: migrate more functions from gnrc_sixlowpan_frag
2019-09-29 18:30:12 +02:00
23b40d8b8b
Merge pull request #12331 from aabadie/pr/boards/pic32-wifire-no-export-cpu
boards/pic32-wifire: remove export of CPU/CPU_MODEL
2019-09-29 17:12:23 +02:00
93dff4cd74
Merge pull request #12330 from aabadie/pr/boards/cleanup_makefile_features
boards: don't export CPU/CPU_MODEL for stm32f723i-disco and p-l496g-cell02
2019-09-29 16:40:20 +02:00
9b1115583e
boards/pic32-wifire: remove export of CPU/CPU_MODEL
These values are already defined in Makefile.features
2019-09-29 16:35:45 +02:00
c1d5286516
Merge pull request #12329 from aabadie/pr/boards/samr34-xpro_features_cpu
boards/samr34-xpro: move cpu definitions to Makefile.features
2019-09-29 16:14:18 +02:00
b1c8f85873
boards/stm32f723e-disco: don't export CPU/CPU_MODEL variables 2019-09-29 15:54:21 +02:00
f83e9788a6
boards/p-l496g-cell02: don't export CPU/CPU_MODEL variables 2019-09-29 15:54:11 +02:00
e89693b6fc
boards/samr34-xpro: move cpu definitions to Makefile.features 2019-09-29 15:52:35 +02:00
benpicco
1543a8c438
Merge pull request #12276 from kenrabold/pr-fe310_intr_cleanup
cpu/fe310: interrupt handling cleanup
2019-09-28 19:14:07 +02:00
Martine Lenders
698d46eabe gnrc_sixlowpan_frag_rb: make NOPs dependent on RB 2019-09-28 13:36:39 +02:00
Martine Lenders
e9ff46b2ea gnrc_sixlowpan_frag_rb: unify naming scheme 2019-09-28 12:11:54 +02:00
Martine Lenders
178f4af108 gnrc_sixlowpan_frag_rb: remove legacy defines 2019-09-28 12:07:24 +02:00
Martine Lenders
972e4938bc gnrc_sixlowpan_frag_rb: use existing name scheme for private functions 2019-09-28 11:51:18 +02:00
Martine S. Lenders
49bd8678ed gnrc_sixlowpan_frag_rb: remove public around former private functions 2019-09-28 11:51:18 +02:00
Martine S. Lenders
ec495528fe gnrc_sixlowpan_frag: move private RB functions to RB module 2019-09-28 11:51:18 +02:00
68aae9c848
Merge pull request #12262 from cladmi/pr/cflags/fix_spaces_and_rebuild
makefiles: do not remove defines from CFLAGS
2019-09-28 09:42:56 +02:00
benpicco
567e6e8d69
Merge pull request #12321 from kb2ma/coap/remove_deprecated_defines
net/coap: remove deprecated COAP_CT_... defines
2019-09-28 03:33:37 +02:00
Ken Bannister
859dab585f net/coap: remove deprecated COAP_CT_... defines 2019-09-27 20:57:42 -04:00
Martine Lenders
8de39d80b7
Merge pull request #12316 from benpicco/pyterm-loglevel
dist/tools/pyterm: drop loglevel from output
2019-09-27 22:48:10 +02:00
kenrabold
1d6e37a7f7 cpu/fe310: interrupt handling cleanup
Cleanup of FE310 interrupt handler code
Optimization of intr context frame
Reduce size of intr stack
Added unhandled trap output
Fix PR #12237
2019-09-27 13:32:43 -07:00
Martine Lenders
5aae638bfd
Merge pull request #12318 from miri64/gnrc_sixlowpan_frag/enh/rbuf-rework201
gnrc_sixlowpan_frag: move public rbuf functions to their own module
2019-09-27 21:49:16 +02:00
Martine S. Lenders
b5545fe334 gnrc_sixlowpan: include reassembly buffer only where needed 2019-09-27 21:11:36 +02:00
benpicco
922816c151
Merge pull request #12319 from miri64/gnrc_sixlowpan_frag_vrb/cleanup/xtimer-dep
gnrc_sixlowpan_frag_vrb: add xtimer dependency
2019-09-27 19:55:13 +02:00
Gaëtan Harter
d6b109f720
tests/build_system_cflags_spaces: test CFLAGS macros handling
This tests passing CFLAGS with spaces to an application and also that
even if the CFLAGS are defined after Makefile.include, they trigger
a rebuild when modified.

This includes an example how to pass macros with spaces to a docker
build.

The test as both an automated part for the CFLAGS with spaces, and a
manual part for the two other features.
2019-09-27 19:29:07 +02:00
Gaëtan Harter
41d10cf005
makefiles: do not remove defines from CFLAGS
Do not remove the '-D' and '-U' values from CFLAGS.
This prevents issues where a '-D' could contain a space.

Some values way be duplicated from the 'riotbuild.h' header and the
command line but with the same value so without conflict.

To not put too many things in the command line, the -DMODULE_NAME are
only put in CFLAGS_WITH_MACROS.

Also, as now, the deferred value of CFLAGS is used for 'riotbuild.h',
macros set after the inclusion of `Makefile.include` will be taken into
account.
2019-09-27 19:29:06 +02:00
cladmi
da59fb0eda
pkg/relic: pass COMP through environment
export COMP by using the environment insteal of through the shell to
prevnet issues with `\"` being defined when keeping macros in CFLAGS.

Another solution was to use COMP='...' but could there could still have
issues with single quotes in CFLAGS.
2019-09-27 19:28:33 +02:00
cladmi
e42b4cc75f
dist/tools/cmake: handle strings with \"
CMake quoted strings do not accept having \ or " inside. So use the
"bracket argument" format.
I migrated all variables to use this format.

Migrate to 'printf' to not rely on having \" inside the string everywhere.

This prepares for having macros defined in the CFLAGS again.
2019-09-27 19:28:32 +02:00
Martine S. Lenders
1f7770da5c gnrc_sixlowpan_frag: move public rbuf functions to their own module 2019-09-27 19:09:52 +02:00
Martine S. Lenders
395987a7ea gnrc_sixlowpan_frag_vrb: add xtimer dependency
The VRB uses xtimer for its garbage collection but doesn't list it as a
dependency. The only reason it worked so far is because it was always
compiled with `gnrc_sixlowpan_frag` and other modules that pull in
`xtimer` as a dependency on their own.
2019-09-27 19:04:58 +02:00
Martine S. Lenders
2d9ba56c2c gnrc_sixlowpan_frag: move reassembly buffer to its own header 2019-09-27 18:34:02 +02:00
Benjamin Valentin
6a08a78d77 dist/tools/pyterm: drop loglevel from putput
The loglevel on pyterm is always INFO.
Drop it to remove clutter from the output.
2019-09-27 15:16:06 +02:00
Martine Lenders
aa84406ac1
Merge pull request #9940 from miri64/tests/enh/rgb2hsv-black
tests/unittests: test black corner case for color_rgb2hsv()
2019-09-27 15:02:10 +02:00
Martine Lenders
aa7f23dbbd
Merge pull request #12314 from haukepetersen/add_test_nrfmin
tests: add distinct test app for nrfmin driver
2019-09-27 13:22:25 +02:00
Martine Lenders
26d8650027
Merge pull request #12174 from haukepetersen/opt_nimble_scannerusetype
pkg/nimble/scanner: pass adv pkt type to callback
2019-09-27 12:14:34 +02:00
Hauke Petersen
09faa328f9 tests: add distinct test app for nrfmin driver 2019-09-27 11:49:43 +02:00
benpicco
3a3267916e
Merge pull request #12313 from haukepetersen/fix_nrfble_featuredecl
cpu/nrf5x: decelare radio_nrfble feat for all nrfs
2019-09-27 11:17:36 +02:00
benpicco
efa41ad094
Merge pull request #12222 from benpicco/samd5x-clock
cpu/samd5x: allow more flexible selection of CLOCK_CORECLOCK
2019-09-27 11:07:54 +02:00
benpicco
3e538c042d
Merge pull request #12292 from benpicco/esp_wifi-workaround
cpu/esp32: disable thin archives if esp_wifi is used
2019-09-27 10:50:35 +02:00
Benjamin Valentin
7e5aa7e775 cpu/sam0_common: uart: fix baud rate calculation
In fractional mode, 3 bits are used to store the fractional part.
Therefore we must multiply / divide by 8 instead of 10 in order to
get the correct values.
2019-09-27 10:49:43 +02:00
Benjamin Valentin
736e5e5a35 cpu/samd5x: allow more flexible selection of CLOCK_CORECLOCK
There are some constraints to the oscillators on the samd5x.

 - DFLL is fixed to run at 48 MHz
 - DPLL can run at 96 to 200 MHz

Always use DFLL for frequencies <= 48 MHz.
For frequencies >= 96 MHz, use DPLL directly.
For frequencies < 96 MHz, clock DPLL at twice the desired frequency
and use a divider.
2019-09-27 10:49:43 +02:00
Hauke Petersen
982d730adf cpu/nrf5x: decelare radio_nrfble feat for all nrfs 2019-09-27 10:00:06 +02:00
Martine Lenders
2c9ac91903 tests/unittests: test black corner case for color_rgb2hsv()
Tests a (currently undocumented) behavior of `color_rgb2hsv()`, that a
black RGB value (all zero) causes the HSV value to be all zero.
2019-09-27 09:35:39 +02:00
benpicco
37796355fd
Merge pull request #12310 from haukepetersen/fix_skald_moduledep
ble/skald: cleanup dependency to nrfble
2019-09-26 23:04:36 +02:00
9e65405a68
Merge pull request #12309 from haukepetersen/fix_skald_develhelpbuild
ble/skald: remove broken assert in init()
2019-09-26 22:44:55 +02:00
Martine Lenders
062bc732ea
Merge pull request #11299 from llueder/ndp_cpp_compliant
net/ndp: make addr array ptr c++ compliant
2019-09-26 22:34:45 +02:00
Hauke Petersen
df15033148 ble/skald: cleanup dependency to nrfble 2019-09-26 22:15:15 +02:00
Lasse Lueder
1b0fdf5a6f net/ndp: remove convenience pointer in ndp_opt_rdnss_t 2019-09-26 22:09:02 +02:00
Lasse Lueder
8a86ea4a4b use ndp_opt_rdnss_impl_t to access addresses 2019-09-26 22:08:49 +02:00
Lasse Lueder
93fd8b707c net/ndp define ndp_opt_rdnss_impl_t
The auxiliary struct internalizes the handy but non ISO-C++ compliant pointer to the payload in the packet struct. See PR #11299.
2019-09-26 22:08:28 +02:00