Benjamin Valentin
895eb943d8
cpu/sam0_common: add cpu_pm_cb_enter()/leave()
...
This allows to implement needed work-arounds surrounding sleep on
a per-MCU basis.
2020-03-31 17:18:58 +02:00
dylad
f2afcd171b
cpu/saml21: add DFLL48M support
2020-03-26 18:03:02 +01:00
Juergen Fitschen
ac8a81b8f3
cpu/saml21: disable fast clock if it is not requested
2020-02-24 11:48:13 +01:00
Benjamin Valentin
38b6ee56f3
cpu/sam0: use defines for GCLK IDs
...
Give the clocks explicit names to better identify their meaning.
2020-02-04 21:16:54 +01:00
Benjamin Valentin
1496149bba
cpu/sam0: don't hard-code peripheral clocks
...
Instead of hard-coding the peripheral clocks to CLOCK_CORECLOCK
introduce helper functions to return the frequency of the individual
GCLKs and use those for baud-rate calculations.
This requires the GCLK to be part of the peripheral's config struct.
While this is already the case for most peripherals, this also adds
it for those where it wasn't used before.
As it defaults to 0 (CLOCK_CORECLOCK) no change is to be expected.
2020-02-04 21:06:21 +01:00
Marian Buschsieweke
df27dbef7a
cpu: Moved stdio_init() into cpu_init()
...
- Removed stdio_init() from newlib's _init(), as this is too late in the boot
process to allow DEBUG()ing during periph_init()
- Added stdio_init() to the various cpu_init() routines of the ARM CPUs just
before periph_init()
2019-09-06 16:54:23 +02:00
Benjamin Valentin
c9c3cb84bf
cpu: saml1x/saml21: setup 32kHz Oscilator in cpu.c
...
Clock setup does not belong in the peripheral driver.
2019-06-18 13:20:04 +02:00
Benjamin Valentin
46565ad339
cpu: saml1x/saml21: reduce differences in cpu.c
...
The init code for both MCUs is so alike, but it diverged over time.
Re-order the code, so that it's the same on both families again.
2019-06-18 13:20:04 +02:00
dylad
f7ee2d2e15
cpu/saml21: set PL2 by default
2019-05-30 21:51:13 +02:00
Joakim Nohlgård
3a9cd9653f
saml21: Update FEATURE_PERIPH_PM -> MODULE_PERIPH_PM
2017-12-08 05:22:09 +01:00
Hauke Petersen
4bfce892d3
drivers/periph&cpu: add and use common periph_init()
2017-01-25 16:46:46 +01:00
389870e181
cpu: saml21: re-add periph/pm initialization
2017-01-12 17:48:11 +01:00
0194091673
remove obsolete lpm code
2017-01-12 11:24:15 +01:00
Joakim Nohlgård
e607de5b95
cpu/saml21: Use {} notation for empty while loops
2016-03-03 16:31:29 +01:00
6dec2efdd6
saml21: add lpm support
2015-09-02 16:46:42 +02:00
Hauke Petersen
3c48722e0f
cpu/saml21: adapted to centralized cpu conf
2015-05-29 16:44:52 +02:00
af63254f4e
cpu: saml21 initial commit
...
basic port, uart, one timer, gpio, spi working.
2015-05-22 11:47:51 +02:00