Benjamin Valentin
c4e0ed4b79
boards: use explicit GCLK_SRC defines
2020-02-04 21:17:00 +01:00
Benjamin Valentin
a51d167a43
cpu/sam0: use GCLK ID instead of bitmask
...
To simplify board definitions and for unification between samd2x and
newer models, don't use the GCLK bitmask in board definitions.
Instead use the GCLK index and generate the bitmask when needed.
2020-02-04 21:06:21 +01:00
dylad
fc9549b069
boards/sam0: update sam0-based board to use hw fc
2019-12-20 21:26:56 +01:00
Benjamin Valentin
0ea2cbf1eb
boards: remove RTT_NUMOF/RTC_NUMOF
...
Those macros are defined but never used.
2019-11-08 14:20:33 +01:00
Kees Bakker
04c84ed158
cpu/sam0: refactor ADC_0 into plain ADC
...
This change is for all boards with a sam0 cpu. This cpu just has one ADC.
It is unnecessary to have defines with ADC_0_ prefix as if multiple ADCs
are possible.
Some defines were not used, such as ADC_0_EN, ADC_0_CHANNELS,
ADC_MAX_CHANNELS, ADC_0_CLK_SOURCE, ADC_0_CHANNELS
Change all ADC_0_ prefixes to ADC_
2019-10-03 20:45:44 +02:00
Benjamin Valentin
8af04cd939
boards: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
Benjamin Valentin
849dd4cdce
sam0_common: make Timer implementation common across all sam0 MCUs
...
The currently supported SAM0 MCUs (samd21, saml21, saml1x) share the same
Timer peripheral, yet each of them carries it's own copy of the Timer
driver.
This introduces a new timer driver that is common for all sam0 MCUs and
uses structs for configuration instead of defines.
2019-05-21 11:47:59 +02:00
smlng
f727761fa2
boards/saml21-xpro: fix attr order in i2c_config
2018-07-25 15:17:43 +02:00
dylad
93558125b5
sam0/i2c: update sam0 based periph_conf
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2018-07-25 12:01:34 +02:00
Dan Evans
531e6f5008
sam0:usart - wake from sleep on receive line
2017-09-25 12:47:31 -06:00
dylad
c81ae98068
boards: update periph_conf of sam0 based board
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-08-29 21:26:42 +02:00
Antonio Galea
7913d19250
boards/saml21-xpro: add i2c configuration
2017-06-23 11:24:36 +02:00
dylad
44dd56c3e8
sam0/adc: merged samd21 & saml21 adc driver
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-05-12 21:02:17 +02:00
dylad
55de3781ca
saml21/adc: initial support
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2017-05-09 22:14:54 +02:00
882bcff048
boards: replace @brief with @name when necessary
2017-04-13 12:10:30 +02:00
Hauke Petersen
ea07a6817c
cpu/sam0+boards: adapted to new SPI API
...
- adapted the SPI driver
- merged SPI driver for samr21 and saml21
- adapted all boards using the CPU
2017-01-25 16:46:45 +01:00
Baptiste
455555304c
SAML21/RTC: Add RTC driver
2016-03-09 09:28:42 +01:00
Hauke Petersen
fe5023b7d4
boards: adapted to HWRNG changes
2016-02-14 12:59:47 +01:00
Hauke Petersen
78bdec9356
boards/saml21-xpro: fixed include guards
2015-12-02 10:56:28 +01:00
6dec2efdd6
saml21: add lpm support
2015-09-02 16:46:42 +02:00
Hauke Petersen
a174b7644a
boards: adjusted peripheral confs to GPIO changes
2015-06-12 19:12:21 +02:00
4872e7c1ab
saml21: add RTT support
2015-05-26 21:31:45 +02:00
af63254f4e
cpu: saml21 initial commit
...
basic port, uart, one timer, gpio, spi working.
2015-05-22 11:47:51 +02:00