[riot-commits] [RIOT-OS/RIOT] acd9f4: drivers/periph_ptp: fix adjustment API

Marian Buschsieweke noreply at github.com
Thu Feb 11 17:28:25 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: acd9f4cc1acf28b06d6c7cd15ff92e7acd43fa0d
      https://github.com/RIOT-OS/RIOT/commit/acd9f4cc1acf28b06d6c7cd15ff92e7acd43fa0d
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M drivers/include/periph/ptp.h

  Log Message:
  -----------
  drivers/periph_ptp: fix adjustment API

The clock adjustment API only used a 16 bit integer for speed correction. This
is to course grained to allow compensating clock drifts at high accuracy.
Using a 32 bit integer instead would allow to fix for a drift of up to
about 1 nanosecond drift per each 5 seconds.

That ought to be enough for anyone! (*cough* *cough*)


  Commit: dbd241ef2680c0104ff7404d45706ed87320b1fc
      https://github.com/RIOT-OS/RIOT/commit/dbd241ef2680c0104ff7404d45706ed87320b1fc
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M cpu/stm32/periph/ptp.c

  Log Message:
  -----------
  cpu/stm32/periph_ptp: update to new API


  Commit: f95f3bf99aeeb3de6d623f20a1810f9fa3a4d585
      https://github.com/RIOT-OS/RIOT/commit/f95f3bf99aeeb3de6d623f20a1810f9fa3a4d585
  Author: Marian Buschsieweke <marian.buschsieweke at ovgu.de>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M tests/periph_ptp_clock/main.c

  Log Message:
  -----------
  tests/periph_ptp_clock: update to new API


  Commit: efb2adf27ab6e5f420450c769665874858ad658b
      https://github.com/RIOT-OS/RIOT/commit/efb2adf27ab6e5f420450c769665874858ad658b
  Author: Marian Buschsieweke <maribu at users.noreply.github.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M cpu/stm32/periph/ptp.c
    M drivers/include/periph/ptp.h
    M tests/periph_ptp_clock/main.c

  Log Message:
  -----------
  Merge pull request #15977 from maribu/ptp-api-fix-adjust

drivers/periph_ptp: fix clock adjustment API


Compare: https://github.com/RIOT-OS/RIOT/compare/e8cca1e07942...efb2adf27ab6


More information about the commits mailing list