1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

87 Commits

Author SHA1 Message Date
Benjamin Valentin
9c20540e3d boards/same54-xpro: move EUI provider config to eui_provider_params.h 2020-12-14 00:22:42 +01:00
Benjamin Valentin
fe9ae5bc80 net/eui_provider: provide index to the callback function
If the same callback function is used for multiple interfaces
(`NETDEV_INDEX_ANY`), it is necessary to also provide the index of
the interface to hand out and address.
2020-12-14 00:22:18 +01:00
dylad
3937aff923 board/same54-xpro: add Ethernet configuration 2020-12-13 22:01:50 +01:00
Benjamin Valentin
09c6d2c4db boards/same54-xpro: add configuration for SPI flash 2020-12-12 18:36:16 +01:00
Benjamin Valentin
182cb9d44b boards/same54-xpro: add EUI-48 provider
Use the on-board AT24MAC chip as an EUI-48 provider.
2020-09-04 13:36:21 +02:00
János Brodbeck
96fd915b76
boards/same54-xpro: add ADC periph_conf 2020-08-19 18:00:30 +02:00
Leandro Lanzieri
8dc7a6bc39
boards/same54-xpro: Add Kconfig symbols 2020-07-16 15:33:33 +02:00
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
9500b651dc boards/same54-xpro: configure LED0 as PWM output 2020-07-08 21:51:12 +02:00
Benjamin Valentin
cd76c95560 boards/same54-xpro: use new GCLK names 2020-06-20 00:25:54 +02:00
Benjamin Valentin
1ad56364cc boards/same54-xpro: enable buck converter 2020-06-20 00:25:53 +02:00
Benjamin Valentin
7242835905 boards/same54-xpro: provide config to run off XOSC
The board provides a 12 MHz oscillator that can be used to source
the CPU and peripheral clocks.
When doing so we don't have to rely on the internal fast oscillators.
This allows us to enable the buck regulator for maximum power savings.

With this same54-xpro reaches 0.8 mA in IDLE.
2020-06-20 00:25:53 +02:00
Francisco Molina
36baec4512
cpu/samd5x: add unified rtt configuration 2020-06-19 09:16:23 +02:00
35bf7d5b41
same54-xpro: add DMA triggers to spi config 2020-06-14 14:56:21 +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
Benjamin Valentin
d4b601327b boards/same54-xpro: enable DAC
Both PA2 and PA5 are exposed on the board, so we can enable the DAC
feature.
2020-05-02 18:31:55 +02:00
Benjamin Valentin
9ca480abf1 boards/same54-xpro: configure remaining EXT connectors
Add configuration for all UARTs, SPI and I2C buses available on EXT
connectors.
2020-03-24 01:16:47 +01:00
Dylan Laduranty
88bb019438 boards/sam0: update to use generic uart_hw_fc module 2020-03-10 14:22:34 +01:00
benpicco
aa1c23d4bd
Merge pull request #11929 from fabian18/driver-at24cxxx-eeprom
Driver for AT24CXXX EEPROM
2020-02-25 18:16:45 +01:00
benpicco
77d6eaaf19
Merge pull request #13461 from benpicco/sam_xpro-led-fix
boards/samXXX-xpro: clear LED on init
2020-02-24 21:56:36 +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
fabian18
07f7d818bd boards/same54-xpro: use at24cxxx EEPROM 2020-02-24 14:00:25 +01:00
Benjamin Valentin
3ee7b72431 boards/same54-xpro: don't source peripheral clocks from main clock
Use the dedicated 48 MHz clock as a source for the peripheral clocks.
This was already done for I2C to allow it to work despite the 120 MHz
main clock.

Not running the peripherals off the main clock will allow for dynamic
re-clocking of the main clock in the future, without affecting the
operation of the peripherals.

It also gives more flexibility to the main clock selection in general.
2020-02-19 17:52:12 +01:00
Benjamin Valentin
02e1c0a4ed boards/same54-xpro: add configuration for AT24MAC402 2020-02-13 15:58:43 +01:00
Benjamin Valentin
c4e0ed4b79 boards: use explicit GCLK_SRC defines 2020-02-04 21:17:00 +01:00
Benjamin Valentin
4fbca251bc boards/same54-xpro: use 48 MHz GCLK6 for I2C
We can't run I2C off the 120 MHz main clock as the availiable dividers are too small.
Use the 48 MHz GCLK 6 instead which offers an appropriate frequency.

fixes #12037
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
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
0d977b3b3c cpu/sam0_common/periph/uart: implement buffered write
Implement interrupt based uart_write() using a tsrb for the TX buffer.

To enable it, add

    USEMODULE += periph_uart_nonblocking

to your Makefile.
2019-11-27 19:01:00 +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
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
Benjamin Valentin
ba7841d7b4 boards/same54-xpro: add riotboot support 2019-06-21 09:47:04 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable 2019-06-14 11:32:15 +02:00
Benjamin Valentin
ddbeccb195 boards/same54-xpro: add support for SAME54-XPRO board
This adds support for the Atmel SAM E54 Xplained Pro Evaluation Kit.

Only basic functionality has been enabled.
2019-06-06 16:47:11 +02:00