Benjamin Valentin
8c502322f4
cpu/sam0_common: i2c: implement the periph_i2c_reconfigure feature
...
This adds sam0 implementations for
- i2c_init_pins()
- i2c_deinit_pins()
- i2c_pin_sda()
- i2c_pin_scl()
2020-05-05 16:12:19 +02: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
Marian Buschsieweke
dd56b3bb71
cpu/sam0_common: Updated i2c_release()
2019-08-22 12:03:08 +02:00
Benjamin Valentin
f375b00ff3
cpu/samd5x: add support for samd5x/same5x MCUs
...
This adds supoprt for the Atmel SAMD51 & SAME54 SoC.
The SAME5x/SAMD5x is a line of Cortex-M4F MCUs that share peripherals
with the samd2x Cortex-M0+ and saml1x Cortex-M23 parts.
2019-06-06 16:47:11 +02:00
Dylan Laduranty
5dd51f2ec5
cpu/sam0_common: remove unneeded GCLK_SLOW setup in i2c driver
2019-01-22 09:29:42 +01:00
Dylan Laduranty
9450fa7dc3
cpu/sam0_common: add support for saml10/saml11
...
Add SAML10/SAML11 support through SAM0 because hardware IP are the same so reuse to avoid duplication
2019-01-21 17:06:58 +01:00
13654a950b
cpu/samr30: add support for samr30g18a
...
Co-authored-by: biboc <bapclenet@gmail.com>
2018-10-01 10:15:08 +02:00
smlng
90f66a1952
cpu/sam0_common/i2c: fix ambiguous reg assignment
...
The value assigned to the register was unclear due to usage
of bit-comparison and ternary operator, added parentheses to
make it explicit.
2018-07-25 12:01:40 +02:00
dylad
e6bd6bfe3b
sam0/i2c: update driver to new API
2018-07-25 12:01:34 +02:00
Hauke Petersen
ec27204408
cpu/sam0: fixed cppcheck issue in i2c driver
2017-11-09 13:53:15 +01:00
Hauke Petersen
b3962f8d2c
cpu/sam0: removed guards form periph drivers
2017-11-09 12:57:02 +01:00
smlng
692cf96297
doc: fix doxygen grouping of cpu periph drivers
2017-06-26 14:42:11 +02:00
Antonio Galea
dae3472d49
cpu/sam0_common: add saml21 i2c driver adaption
2017-06-23 11:19:56 +02:00
biboc
0e41861db0
Change my email address:
...
<baptiste.clenet@xsoen.com>
to
<bapclenet@gmail.com>
2017-06-19 10:38:16 +02:00
Kees Bakker
2cbd3c4819
cpu/sam21:i2c: function _start was declared inline, but definition not
2017-01-18 21:30:13 +01:00
Kees Bakker
d509221e77
cpu/samd21:i2c: increase timeout in _start to facilitate SHT2x hold
2017-01-18 21:30:13 +01:00
Kees Bakker
bf4741d0d7
cpu/sam21_common:i2c: refactor a function to wait for response
2017-01-18 21:30:13 +01:00
Kees Bakker
8ca8640060
cpu/sam21_common:i2c: uncrustify
2017-01-18 21:30:13 +01:00
Hauke Petersen
fcb1e68732
cpu/sam0: renamed sam21_common to sam0_common
2016-12-15 11:47:03 +01:00