[riot-commits] [RIOT-OS/RIOT] 4596f7: tests/dac_dds: Fix sine wave to fit in PCM range

benpicco noreply at github.com
Tue Apr 13 14:58:14 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 4596f79c957078989567e20f16069729b10bc0f3
      https://github.com/RIOT-OS/RIOT/commit/4596f79c957078989567e20f16069729b10bc0f3
  Author: chrysn <chrysn at fsfe.org>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M tests/driver_dac_dds/main.c

  Log Message:
  -----------
  tests/dac_dds: Fix sine wave to fit in PCM range

The previous sine wave cast signed integers into the PCM range, causing
jumps at zero transitions. This shifts everything up by the respective
maximum signed integer, so that the signed idle zero becomes the
unsigned PCM signal's idle half-point and can continuously cover the
whole unsigned range.


  Commit: 0ede8917559a746deaaa11a9e48e05f21a5e878d
      https://github.com/RIOT-OS/RIOT/commit/0ede8917559a746deaaa11a9e48e05f21a5e878d
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M tests/driver_dac_dds/main.c

  Log Message:
  -----------
  Merge pull request #16223 from chrysn-pull-requests/dac-dds-int-range

tests/dac_dds: Fix sine wave to fit in PCM range


Compare: https://github.com/RIOT-OS/RIOT/compare/bd6114ae9d42...0ede8917559a


More information about the commits mailing list