[riot-commits] [RIOT-OS/RIOT] 19bf23: auto_init: use full hash to configure radio addres...

Martine Lenders authmillenon at gmail.com
Thu Oct 16 16:08:25 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 19bf230de20a77a12fc1829a63e5ec3cb421d3a1
      https://github.com/RIOT-OS/RIOT/commit/19bf230de20a77a12fc1829a63e5ec3cb421d3a1
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2014-10-16 (Thu, 16 Oct 2014)

  Changed paths:
    M sys/auto_init/auto_init.c

  Log Message:
  -----------
  auto_init: use full hash to configure radio address

Since the 4-byte CPU ID on native is in most cases generated from the 2-byte
PID of the native process, choosing the lower half of the hash of the CPU ID to
set the radio address led to always setting it to the hash of 0 in this
cases. This changes it to use both halves of the hash and taking the
modulus so this corner cases can be avoided.


  Commit: b9054e825aee51932f9751fb098c4fdda0c05440
      https://github.com/RIOT-OS/RIOT/commit/b9054e825aee51932f9751fb098c4fdda0c05440
  Author: Martine Lenders <mail at martine-lenders.eu>
  Date:   2014-10-16 (Thu, 16 Oct 2014)

  Changed paths:
    M sys/auto_init/auto_init.c

  Log Message:
  -----------
  auto_init: reduce scope of iface


  Commit: 1a7aee711a628561a70a7e206d3a943026db8fa3
      https://github.com/RIOT-OS/RIOT/commit/1a7aee711a628561a70a7e206d3a943026db8fa3
  Author: Martine Lenders <authmillenon at gmail.com>
  Date:   2014-10-16 (Thu, 16 Oct 2014)

  Changed paths:
    M sys/auto_init/auto_init.c

  Log Message:
  -----------
  Merge pull request #1814 from authmillenon/auto-init-addr-fix

auto_init: use full hash to configure radio address


Compare: https://github.com/RIOT-OS/RIOT/compare/0812d4789a92...1a7aee711a62


More information about the commits mailing list