[riot-commits] [RIOT-OS/RIOT] 01c573: cpu/samd21: pwm: allow to use channels > 3

Dylan Laduranty noreply at github.com
Wed Apr 8 15:45:24 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 01c573c61256127ceca4e24a5dd6a87c3b612e86
      https://github.com/RIOT-OS/RIOT/commit/01c573c61256127ceca4e24a5dd6a87c3b612e86
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M cpu/samd21/periph/pwm.c

  Log Message:
  -----------
  cpu/samd21: pwm: allow to use channels > 3

Channels 4…7 are on the CCB register.


  Commit: 4d90a9c6b5f3293d6d3bb488f99aa44a476d80d6
      https://github.com/RIOT-OS/RIOT/commit/4d90a9c6b5f3293d6d3bb488f99aa44a476d80d6
  Author: Benjamin Valentin <benpicco at beuth-hochschule.de>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M cpu/samd21/periph/pwm.c

  Log Message:
  -----------
  cpu/samd21: pwm: fix GCLK_ID & APBCMASK calculation

GCLK_ID and APBCMASK entries are not always uniform.
The previous hack would already break for TCC3.

Just explosively write down the cases, there are only 5 at most.


  Commit: f9a4c509b19a4ca234a86ce0a6687f4b7a543e77
      https://github.com/RIOT-OS/RIOT/commit/f9a4c509b19a4ca234a86ce0a6687f4b7a543e77
  Author: Dylan Laduranty <dylan.laduranty at mesotic.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M cpu/samd21/periph/pwm.c

  Log Message:
  -----------
  Merge pull request #13797 from benpicco/cpu/samd21-pwm

cpu/samd21: pwm: allow to use channels > 3


Compare: https://github.com/RIOT-OS/RIOT/compare/ecd266f3d33b...f9a4c509b19a


More information about the commits mailing list