samd_sercom: Specify the sercom explicitly in a config option
Do not infer the sercom from the config section name, as that prevents one from using SPI buses on multiple samd mcus. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -6,6 +6,9 @@ All dates in this document are approximate.
|
||||
|
||||
# Changes
|
||||
|
||||
20210703: A `samd_sercom` config section must now specify the sercom
|
||||
bus it is configuring via the `sercom` option.
|
||||
|
||||
20210612: The `pid_integral_max` config option in heater and
|
||||
temperature_fan sections is deprecated. The option will be removed in
|
||||
the near future.
|
||||
|
||||
@@ -3793,13 +3793,17 @@ i2c_address:
|
||||
## [samd_sercom]
|
||||
|
||||
SAMD SERCOM configuration to specify which pins to use on a given
|
||||
SERCOM. One may define one section with the "samd_sercom" prefix per
|
||||
SERCOM available. Each SERCOM must be configured prior to using it as
|
||||
SPI or I2C peripheral. Place this config section above any other
|
||||
section that makes use of SPI or I2C buses.
|
||||
SERCOM. One may define any number of sections with a "samd_sercom"
|
||||
prefix. Each SERCOM must be configured prior to using it as SPI or I2C
|
||||
peripheral. Place this config section above any other section that
|
||||
makes use of SPI or I2C buses.
|
||||
|
||||
```
|
||||
[samd_sercom sercom0]
|
||||
[samd_sercom my_sercom]
|
||||
sercom:
|
||||
# The name of the sercom bus to configure in the micro-controller.
|
||||
# Available names are "sercom0", "sercom1", etc.. This parameter
|
||||
# must be provided.
|
||||
tx_pin:
|
||||
# MOSI pin for SPI communication, or SDA (data) pin for I2C
|
||||
# communication. The pin must have a valid pinmux configuration
|
||||
|
||||
Reference in New Issue
Block a user