Commit Graph

1795 Commits

Author SHA1 Message Date
George Oikonomou
15f6e1d7a3 Change the way of accessing the default v6 prefix
This commit changes the method of accessing the default v6 prefix. Instead of always using `UIP_DS6_DEFAULT_PREFIX`, we store the default prefix in a variable. We subsequently retrieve the prefix by calling `uip_ds6_default_prefix()`.

`uip_ds6_init()` will set this variable to the value of `UIP_DS6_DEFAULT_PREFIX`, but only if the startup code has not set a different default prefix before `uip_ds6_init()` gets called.

This approach has the following benefits:

* It allows us to change the default prefix at run time.
* It allows the startup code to set a prefix different than the one specified by `UIP_DS6_DEFAULT_PREFIX`, which can be useful if the default prefix comes from a different source (e.g. the command line for native, or a configuration stored on a node's flash)
* In many places the current code assumes that the prefix contains 6 bytes of zeros (e.g. `FDxx::/64`). Changing to a different prefix (e.g. `FD00:ABCD::`) would need extensive code changes. This change here makes it easy to use a prefix of any length.
2018-11-11 18:30:54 +00:00
Simon Duquennoy
4ea5d41d52 Merge branch release-4.2 back into develop 2018-11-09 17:04:31 +01:00
Simon Duquennoy
bda7c329ba
Merge branch 'develop' into contrib/csma-llsec 2018-11-02 01:13:14 +01:00
Joakim Eriksson
16ac869645 removed some no longer needed hard-coded calculations in the sicslowpan code 2018-10-31 23:02:14 +01:00
Joakim Eriksson
42dfc81af2 added LLSEC attributes form packetbuf to uipbuf when receiving IP packet, and a few other minor fixes 2018-10-30 16:06:11 +01:00
Simon Duquennoy
a2b7b996e4
Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
Yasuyuki Tanaka
8ef5c8b8c6 uip-ds6-nbr: make ds6_neighbors a local variable
All the nbr_table API calls with ds6_neighbors are replaced with
uip_ds6_nbr APIs accordingly.
2018-10-24 07:01:57 -07:00
Yasuyuki Tanaka
0bcdd39cc6 Rename 'arch/cpu/cc26xx-cc13xx' to 'arch/cpu/cc26x0-cc13x0' 2018-10-23 13:32:03 -07:00
Yasuyuki Tanaka
7a6cbff5f6 Rename srf06/{cc26xx,cc13xx} to srf06/{cc26x0,cc13x0} 2018-10-23 13:09:02 -07:00
Yasuyuki Tanaka
61fba4dcde Rename srf06-cc26xx to cc26x0-cc13x0 2018-10-23 13:04:32 -07:00
Joakim Eriksson
0a3b890080 fixed rpl-udp example 2018-10-23 07:50:15 +02:00
George Oikonomou
6d4cddeec1 Make the MQTT client example a little more configurable and verbose
Suitable for native run testing
2018-10-21 17:13:17 +01:00
Joakim Eriksson
3542fa8d85 added back more textual representation of messages in rpl-udp example - good for debugging LLSEC encryption 2018-10-20 22:27:02 +02:00
Simon Duquennoy
1df85a12a4
Merge branch 'develop' into bugfix/gpio/64bit 2018-10-19 14:08:05 +02:00
Alex Raimondi
9bb648f922 Fixed all-timers example application 2018-10-19 12:15:51 +01:00
Simon Duquennoy
ff825daaea Merge remote-tracking branch 'origin/develop' into wip/uip6-cleanup 2018-10-18 20:28:00 +02:00
Simon Duquennoy
ea32ab0f12 Removed UIP_LLH_LEN 2018-10-18 20:26:12 +02:00
Simon Duquennoy
d4bc09e002 Move function for clearing uip_buf to uipbuf module 2018-10-18 15:50:54 +02:00
Simon Duquennoy
caa02ae51e Define UIP_IP_BUF globally in uip.h 2018-10-17 11:18:32 +02:00
Atis Elsts
cb65f31d48 Remove BOARDS_EXCLUDE for TSCH examples: now they can be built for CC13xx boards 2018-10-13 14:07:10 +01:00
George Oikonomou
4a0c9d8894 Change define to reflect current chip family name 2018-10-12 13:47:01 +01:00
George Oikonomou
d5f1bd2d4c
Merge branch 'develop' into bugfix/gpio/64bit 2018-10-11 16:44:22 +01:00
Simon Duquennoy
b7c9cae60c Platform Zoul: move generic cc2538 defines from contiki-conf.h to cc2538-def.h 2018-10-10 17:01:11 +02:00
Simon Duquennoy
ddde2aebdc jn516x example: compute sample_count on current timeslot timings rather than defaults 2018-10-04 10:50:09 +02:00
Simon Duquennoy
cad068d5e8 sixtop example: remove obsolete z1 configuration 2018-10-03 12:27:01 +02:00
George Oikonomou
b4db7aa4e7 GPIO HAL example fix 64-bit support 2018-09-30 20:21:17 +01:00
Atis Elsts
3ccf4c78bb Add TSCH stats example 2018-09-27 16:00:36 +01:00
Atis Elsts
df733e409a add TSCH channel selection example 2018-09-27 16:00:36 +01:00
Atis Elsts
ad577cf77f Add TSCH stats 2018-09-27 16:00:36 +01:00
George Oikonomou
36e1a8f82d
Merge branch 'develop' into missing-header 2018-09-23 13:49:17 +03:00
Rehan MALAK
75d372cde4 minor refactoring of hdc-1000-sensor following commit f4a8cba37 2018-09-21 12:30:53 +02:00
Rehan MALAK
cc7c2312ec missing header inttypes.h 2018-09-21 10:15:43 +02:00
Rehan MALAK
53e4892c1d exclude some platforms from benchmarks 2018-09-20 15:09:30 +02:00
George Oikonomou
9a2a3d50aa
Merge branch 'develop' into contrib/cc26xx/bootloader-config 2018-09-17 13:26:01 +01:00
George Oikonomou
06bbb65bdb Simplify configuration of the CC13xx/CC26xx ROM bootloader
Currently board.h does all the work, but it does not really need to. This commit moves most of the ccfg defines to ccxxware-conf.h and now board.h only needs to specify the bootloader enable pin and corresponding level.
2018-09-17 13:15:58 +03:00
George Oikonomou
c29cfc256e
Merge branch 'develop' into null-character 2018-09-17 11:13:22 +01:00
Atis Elsts
8f27179782 remove BUTTON_SENSOR_CONF_ENABLE_SHUTDOWN and button_sensor definitions for cc26xx: dead code since changing to the button HAL 2018-09-15 14:23:39 +01:00
Rehan MALAK
163f455fc7 add '\0' terminal character 2018-09-13 10:02:36 +02:00
Edvard Pettersen
5ea0c80ae1
Merge branch 'develop' into contrib/ti-simplelink 2018-09-12 09:27:43 +02:00
Edvard Pettersen
86232c86f9 Expanded travis builds with SimpleLink platform
In addition, some small grammar fixes and slight bugfix in
Makefile.simplelink
2018-09-11 13:17:21 +02:00
George Oikonomou
83dd2ff10e
Merge branch 'develop' into contrib/nightly-runs 2018-09-10 09:10:02 +01:00
Edvard Pettersen
322b6b26d2 Added simplelink PLATFORMS_ONLY/EXCLUDE to examples 2018-08-31 11:06:32 +02:00
Edvard Pettersen
d0124e3de7 Reverting API change to GPIO HAL 2018-08-31 11:06:32 +02:00
Edvard Pettersen
32d9bb3021 Removed simplelink examples for now 2018-08-31 11:05:34 +02:00
Edvard Pettersen
c53ab05aea Fixed missing changes for GPIO-HAL 2018-08-31 11:05:34 +02:00
Edvard Pettersen
537f9a5baf Minor fixes 2018-08-31 11:05:33 +02:00
Edvard Pettersen
7debfe830f Fixed issue with SPI0 and SPI HAL, and fixed bug in Makefile.cm3 2018-08-31 11:05:33 +02:00
Edvard Pettersen
6b91fa1738 Cleaned up examples Makefile 2018-08-31 11:05:33 +02:00
Edvard Pettersen
588c53b8a9 Added missing img folder for cc13xx-cc26xx/web-demo example 2018-08-31 11:05:33 +02:00
Edvard Pettersen
6df96a7b19 Added missing files for cc26xx examples folder 2018-08-31 11:05:33 +02:00