mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
Better explanation about overriding settings for board
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 9c6fe4f18f...c44ec58c6d
@@ -608,6 +608,7 @@ def update_embedded_board(rst_path, board):
|
|||||||
id=board['id'],
|
id=board['id'],
|
||||||
name=board['name'],
|
name=board['name'],
|
||||||
platform=board['platform'],
|
platform=board['platform'],
|
||||||
|
platform_description=platform.description,
|
||||||
url=campaign_url(board['url']),
|
url=campaign_url(board['url']),
|
||||||
mcu=board_config.get("build", {}).get("mcu", ""),
|
mcu=board_config.get("build", {}).get("mcu", ""),
|
||||||
mcu_upper=board['mcu'].upper(),
|
mcu_upper=board['mcu'].upper(),
|
||||||
@@ -627,18 +628,17 @@ def update_embedded_board(rst_path, board):
|
|||||||
lines.append("""
|
lines.append("""
|
||||||
.. contents::
|
.. contents::
|
||||||
|
|
||||||
Platform :ref:`platform_%s`: %s""" % (platform.name, platform.description))
|
|
||||||
|
|
||||||
lines.append("""
|
|
||||||
System
|
System
|
||||||
------
|
------
|
||||||
|
|
||||||
|
Platform :ref:`platform_{platform}`: {platform_description}
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
|
|
||||||
* - **Microcontroller**
|
* - **Microcontroller**
|
||||||
- {mcu_upper}
|
- {mcu_upper}
|
||||||
* - **Frequency**
|
* - **Frequency**
|
||||||
- {f_cpu_mhz}Mhz
|
- {f_cpu_mhz}MHz
|
||||||
* - **Flash**
|
* - **Flash**
|
||||||
- {rom}
|
- {rom}
|
||||||
* - **RAM**
|
* - **RAM**
|
||||||
@@ -663,8 +663,9 @@ Please use ``{id}`` ID for :ref:`projectconf_env_board` option in :ref:`projectc
|
|||||||
board = {id}
|
board = {id}
|
||||||
|
|
||||||
You can override default {name} settings per build environment using
|
You can override default {name} settings per build environment using
|
||||||
``board_{{JSON.PATH}}`` option, where ``{{JSON.PATH}}`` is a path from
|
``board_***`` option, where ``***`` is a JSON object path from
|
||||||
board manifest `{id}.json <{board_manifest_url}>`_. For example,
|
board manifest `{id}.json <{board_manifest_url}>`_. For example,
|
||||||
|
``board_build.mcu``, ``board_build.f_cpu``, etc.
|
||||||
|
|
||||||
.. code-block:: ini
|
.. code-block:: ini
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user