board_pins: Use an explicit parameter to specify mcu name(s)
Add an 'mcu' option to the board_pins config and use that to specify the name of the mcu to apply the aliases to. Support applying the aliases to multiple mcus. Add support for any number of options starting with an "aliases_" prefix. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -6,6 +6,12 @@ All dates in this document are approximate.
|
||||
|
||||
# Changes
|
||||
|
||||
20201120: The `[board_pins]` config section now specifies the mcu name
|
||||
in an explicit `mcu:` parameter. If using board_pins for a secondary
|
||||
mcu, then the config must be updated to specify that name. See the
|
||||
[config reference](Config_Reference.md#[board_pins]) for further
|
||||
details.
|
||||
|
||||
20201112: The time reported by `print_stats.print_duration` has
|
||||
changed. The duration prior to the first detected extrusion is
|
||||
now excluded.
|
||||
|
||||
@@ -1396,19 +1396,23 @@ software dependencies must be installed; refer to
|
||||
|
||||
## [board_pins]
|
||||
|
||||
Board pin aliases. One may define aliases for the pins on a
|
||||
micro-controller. (If a micro-controller name is omitted in the
|
||||
board_pins config section name then it defaults to "mcu".)
|
||||
Board pin aliases (one may define any number of sections with a
|
||||
"board_pins" prefix). Use this to define aliases for the pins on a
|
||||
micro-controller.
|
||||
|
||||
```
|
||||
[board_pins mcu]
|
||||
[board_pins my_aliases]
|
||||
mcu: mcu
|
||||
# A comma separated list of micro-controllers that may use the
|
||||
# aliases. The default is to apply the aliases to the main "mcu".
|
||||
aliases:
|
||||
aliases_<name>:
|
||||
# A comma separated list of "name=value" aliases to create for the
|
||||
# given micro-controller. For example, "EXP1_1=PE6" would create an
|
||||
# "EXP1_1" alias for the "PE6" pin. However, if "value" is enclosed
|
||||
# in "<>" then "name" is created as a reserved pin (for example,
|
||||
# "EXP1_9=<GND>" would reserve "EXP1_9"). This parameter must be
|
||||
# provided.
|
||||
# "EXP1_9=<GND>" would reserve "EXP1_9"). Any number of options
|
||||
# starting with "aliases_" may be specified.
|
||||
```
|
||||
|
||||
## [include]
|
||||
|
||||
Reference in New Issue
Block a user