[riot-commits] [RIOT-OS/RIOT] f29ca1: cpu/samd5x: fix CPU init

Dylan Laduranty noreply at github.com
Fri Jun 21 09:44:56 CEST 2019

  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: f29ca155d82df4caafd8f02ee854376a4a8bf9b0
  Author: Benjamin Valentin <benjamin.valentin at ml-pa.com>
  Date:   2019-06-20 (Thu, 20 Jun 2019)

  Changed paths:
    M cpu/samd5x/cpu.c

  Log Message:
  cpu/samd5x: fix CPU init

There were still some things wrong with samd5x CPU init which only
showed up when used in conjunction with RIOTBOOT, that is cpu_init()
was called twice.

 - gclk_connect() should block until the GCLK is ready.
 - DPLL should be disabled dring configuration.
 - make sure not to use DPLL for MCLK when re-configuring DPLL
 - All APBxMASK bits should be in a defined state.
 - always enable 1kHz oscilator output.

  Commit: c3c810b36ee4e9225bc41b03e677af24e4e0955a
  Author: Dylan Laduranty <dylan.laduranty at mesotic.com>
  Date:   2019-06-21 (Fri, 21 Jun 2019)

  Changed paths:
    M cpu/samd5x/cpu.c

  Log Message:
  Merge pull request #11655 from benpicco/same5x-fix_clock

cpu/samd5x: CPU init fixes

Compare: https://github.com/RIOT-OS/RIOT/compare/968e53b74f51...c3c810b36ee4

More information about the commits mailing list