diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-11-20 11:36:36 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-11-20 12:00:36 -0500 |
commit | bdd938b5787c03c417cb093837dbc86f39a2af58 (patch) | |
tree | 37c44a0c04c0d4d6aae8c63ed5e552b7be241b3c /docs/Config_Reference.md | |
parent | 37b475815e07a6877ff2f99aa559a593fd050915 (diff) | |
download | kutter-bdd938b5787c03c417cb093837dbc86f39a2af58.tar.gz kutter-bdd938b5787c03c417cb093837dbc86f39a2af58.tar.xz kutter-bdd938b5787c03c417cb093837dbc86f39a2af58.zip |
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>
Diffstat (limited to 'docs/Config_Reference.md')
-rw-r--r-- | docs/Config_Reference.md | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index d507d81a..dbc8d7d2 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -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] |