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

6 Commits

Author SHA1 Message Date
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Marian Buschsieweke
42df56ff08
tests/periph_ptp_clock: fix bug in debug print
The API doc of ptp_clock_adjust_speed says regarding the correction
parameter:

    1. A call with @p correction set to `0` restores the nominal clock speed.
    2. A call with a positive value for @p correction speeds the clock up
       by `correction / (1 << 32)` (so up to ~50% for `INT32_MAX`).
    3. A call with a negative value for @p correction slows the clock down by
       `-correction / (1 << 32)` (so up to 50% for `INT32_MIN`).

So we need to divide by 2^32, not 2^32 - 1 (or `UINT32_MAX`).
2021-03-12 20:43:01 +01:00
Marian Buschsieweke
efb2adf27a
Merge pull request #15977 from maribu/ptp-api-fix-adjust
drivers/periph_ptp: fix clock adjustment API
2021-02-11 17:28:02 +01:00
MrKevinWeiss
f22dede3ce test/periph_ptp_clock: Remove redundant function 2021-02-11 09:30:58 +01:00
Marian Buschsieweke
f95f3bf99a
tests/periph_ptp_clock: update to new API 2021-02-10 10:13:47 +01:00
Marian Buschsieweke
2e529e92a4
tests: Added test for PTP clock 2020-12-02 17:53:01 +01:00