benpicco
30ebabb84e
Merge pull request #14007 from benpicco/cpu/sam0_common-pwm
...
cpu/sam0_common: move PWM to common code, add support for saml21, samd5x
2020-07-09 10:01:08 +02:00
Benjamin Valentin
b97e6c1e1e
boards/samr21-xpro: update PWM config
2020-07-08 21:51:12 +02:00
Francisco Molina
b0c5c3eaca
boards/samr21-xpro: add OpenWSN timing constants
2020-06-30 13:10:56 +02:00
Francisco Molina
eefb3fa555
cpu/samd21: add unified rtt configuration
2020-06-19 09:16:22 +02:00
80023c408a
Merge pull request #14259 from fjmolinas/pr_rtt_min_offset
...
drivers/periph/rtt: introduce RTT_MIN_OFFSET
2020-06-16 16:22:04 +02:00
3758eaf62e
Merge pull request #14275 from fjmolinas/pr_samr21_hw_fc
...
boards/samr21-xpro: add uart hw cts/rts
2020-06-16 12:40:07 +02:00
Francisco Molina
39f073e71f
boards/samr21-xpro: add uart hw cts/rts
2020-06-16 11:41:47 +02:00
5c3dad733d
samr21-xpro: Add DMA config for SPI peripherals
2020-06-14 14:56:20 +02:00
benpicco
8ed8775c8e
Merge pull request #14269 from benpicco/cpu/sam0_common/timer_drop_prescaler
...
cpu/sam0_common: drop prescaler from timer config
2020-06-12 14:16:59 +02:00
Benjamin Valentin
54b57bd97f
cpu/sam0_common: drop prescaler from timer config
...
since c05984b341
the prescaler in the timer
config struct is no longer used.
Let's remove it.
2020-06-11 19:29:43 +02:00
Francisco Molina
d32467bf03
boards/samr21-xpro: increase CONFIG_ZTIMER_USEC_MIN
2020-06-11 15:59:24 +02:00
Francisco Molina
e3469565c8
boards/samr21-xpro: set RTT_MIN_OFFSET
2020-06-11 09:31:17 +02:00
Leandro Lanzieri
4c74881904
boards/samr21-xpro: Add board specific Kconfig symbols
2020-06-02 17:42:16 +02:00
Benjamin Valentin
dc58ef59ae
boards: remove duplicate gnrc_netdev_default from Makefile.dep
...
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both in `Makefile.dep`
2020-05-05 09:58:45 +02:00
Benjamin Valentin
cc3779671e
boards/samr21-xpro: update PWM configuration
2020-04-26 22:33:38 +02:00
Dylan Laduranty
88bb019438
boards/sam0: update to use generic uart_hw_fc module
2020-03-10 14:22:34 +01:00
73adecc02d
boards/samr21-xpro: add ztimer config
2020-03-04 12:44:03 +01:00
Benjamin Valentin
bc5ac92cff
boards/samXXX-xpro: clear LED on init
...
The LED on the sam-xpro boards is active low, so we have
to turn it off manually, otherwise it's always on.
2020-02-24 19:44:36 +01:00
Francisco Molina
c9ff150571
boards/sam%21-xpro: prefer XOSC32K for RTC/RTT (GCLK2)
2020-02-07 15:48:15 +01:00
Benjamin Valentin
c4e0ed4b79
boards: use explicit GCLK_SRC defines
2020-02-04 21:17:00 +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
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
Benjamin Valentin
bd19a55804
boards: remove EDBG_DEVICE_TYPE
...
EDBG_DEVICE_TYPE is a property of the CPU, is should not be set
by every board individually.
2020-01-31 09:35:27 +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
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
...
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Benjamin Valentin
8af04cd939
boards: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable
2019-06-14 11:32:15 +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
99962ffd15
samr21-xpro: add usbdev configuration
2019-03-26 10:26:12 +01:00
Francisco Acosta
3cf33f7b5c
boards: add riotboot feature to tested boards
...
Currently only tested boards provide the feature riotboot.
Potentially all boards embeding a cortex-m0+/3/4/7 are
able to have riotboot as a feature, but other dependencies
need to be met, e.g. usage of cortexm.ld linker script,
double initialisation of cpu_init(), etc. See doc in
bootloaders/riotboot.
2018-12-18 19:31:35 +01:00
d95e19af15
boards*: remove periph_gpio/gpio_irq provided feature
...
It is now provided at cpu level
2018-12-17 20:54:09 +01:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
...
The file always exist so no need to do '-include'.
Replaced using:
sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
$(git grep -l '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
Joakim Nohlgård
8996cbe313
make: Introduce new feature flag periph_gpio_irq
2018-08-29 08:53:20 +02:00
Kevin Weiss
8468fe1c94
Merge pull request #8516 from jia200x/wiki_dox_convertion
...
doc: move wiki to Doxygen documentation (second attempt)
2018-08-07 13:27:04 +02:00
Jose Alamos
7b28fbf110
boards: fix Doxygen group directives
2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af
doc: add wiki documentation to Doxygen files
2018-08-01 15:24:54 +02:00
smlng
a6d4ade2c6
boards/samr21-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
Georg von Zengen
ad78271a51
boards/samr21-xpro: add function to configure antenna switch
2018-06-26 17:59:10 +02:00
ab0d598e60
boards/samr21-xpro: fix driver params usage
2018-02-28 18:30:28 +01:00
Joakim Nohlgård
f4e9cad85a
boards: Separate boards from debug adapter configuration
2017-11-17 10:03:05 +01:00
ae51dc55d0
boards: adapt to reorganized CPU Makefile.features
2017-11-02 12:59:46 +01:00
Gaëtan Harter
05402dea29
samr21-xpro/gpio: set LED/BUTTON gpios as inverted
...
This makes LED go off when set to 0 and button reads 1 when pressed.
2017-10-05 17:19:57 +02:00
Dan Evans
531e6f5008
sam0:usart - wake from sleep on receive line
2017-09-25 12:47:31 -06:00
02e055fc81
make: include cpu Makefile.features from board Makefile.features
2017-09-14 13:15:52 +02: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
Hauke Petersen
38395fa9bb
boards/samd21-based: fix xtimer configuration
2017-08-28 16:38:27 +02:00
Dan Evans
08224bd85a
samd21/clock: add xosc32/DFLL option
2017-06-26 10:42:23 -06:00