Commit Graph

17 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
George Oikonomou 057dbebb24 Remove redundant code: prefix is always NULL 2018-11-11 18:24:33 +00:00
Simon Duquennoy 3889ffe750 Simplify and homogenize node-id across all platforms 2018-05-18 14:08:24 -07:00
George Oikonomou 7872da3c9b Transition platform native to the new LED HAL 2018-04-02 22:14:55 +01:00
George Oikonomou 6857d2fe20 Implement the GPIO HAL for platform native 2018-04-02 22:14:55 +01:00
George Oikonomou b8a43e8bf9 Implement the button HAL for platform native 2018-04-02 22:14:55 +01:00
Simon Duquennoy 38caaeb9d1 Platform native: make MAC address configurable 2018-02-23 04:22:01 -08:00
Niclas Finne 21a1a2e220 Platform: native: initialize serial line 2018-01-26 23:19:15 +01:00
Laurent Deru d0ca150a38 Document new native platform defines 2017-12-22 11:23:04 +01:00
Laurent Deru 9fe252d107 Make stdin select callback configurable 2017-12-20 14:15:29 +01:00
Laurent Deru ca16bf1bd2 Make select timeout user configurable for native platform 2017-12-20 14:15:29 +01:00
George Oikonomou d780719530 Compile platform native with NULLNET 2017-12-13 09:40:02 +00:00
George Oikonomou 6212359628 Remove obsolete sensors from the native platform
The native platform code has a number of sensor drivers, all of which appear to be stubs and/or unused. This commit removes them.

Even though the platform doesn't have LEDs, we leave this one intact so that LED-using examples can still build.
2017-11-10 15:11:18 +00:00
Simon Duquennoy 646764b128 Platform native: print global IPv6 at init 2017-10-31 18:59:53 +01:00
George Oikonomou edaa0c29cd Use the logging module (Native) 2017-10-29 23:18:38 +00:00
George Oikonomou 7b3f77ac2e Remove leftover includes 2017-10-29 23:18:37 +00:00
George Oikonomou 3a1d362549 Provide boot sequence hooks (Native) 2017-10-29 23:18:36 +00:00