mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Rename "System" to "Hardware" for board spec
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 3ad9278c9a...f2d4816cae
@ -124,15 +124,15 @@ def LoadPioPlatform(env, variables):
|
||||
def PrintConfiguration(env):
|
||||
platform = env.PioPlatform()
|
||||
platform_data = ["PLATFORM: %s >" % platform.title]
|
||||
system_data = ["SYSTEM:"]
|
||||
hardware_data = ["HARDWARE:"]
|
||||
configuration_data = ["CONFIGURATION:"]
|
||||
mcu = env.subst("$BOARD_MCU")
|
||||
f_cpu = env.subst("$BOARD_F_CPU")
|
||||
if mcu:
|
||||
system_data.append(mcu.upper())
|
||||
hardware_data.append(mcu.upper())
|
||||
if f_cpu:
|
||||
f_cpu = int("".join([c for c in str(f_cpu) if c.isdigit()]))
|
||||
system_data.append("%dMHz" % (f_cpu / 1000000))
|
||||
hardware_data.append("%dMHz" % (f_cpu / 1000000))
|
||||
|
||||
debug_tools = None
|
||||
if "BOARD" in env:
|
||||
@ -142,13 +142,14 @@ def PrintConfiguration(env):
|
||||
debug_tools = board_config.get("debug", {}).get("tools")
|
||||
ram = board_config.get("upload", {}).get("maximum_ram_size")
|
||||
flash = board_config.get("upload", {}).get("maximum_size")
|
||||
system_data.append("%s RAM (%s Flash)" % (util.format_filesize(ram),
|
||||
util.format_filesize(flash)))
|
||||
hardware_data.append(
|
||||
"%s RAM (%s Flash)" % (util.format_filesize(ram),
|
||||
util.format_filesize(flash)))
|
||||
configuration_data.append(
|
||||
"https://docs.platformio.org/page/boards/%s/%s.html" %
|
||||
(platform.name, board_config.id))
|
||||
|
||||
for data in (configuration_data, platform_data, system_data):
|
||||
for data in (configuration_data, platform_data, hardware_data):
|
||||
if len(data) > 1:
|
||||
print(" ".join(data))
|
||||
|
||||
|
@ -628,8 +628,8 @@ def update_embedded_board(rst_path, board):
|
||||
lines.append("""
|
||||
.. contents::
|
||||
|
||||
System
|
||||
------
|
||||
Hardware
|
||||
--------
|
||||
|
||||
Platform :ref:`platform_{platform}`: {platform_description}
|
||||
|
||||
|
Reference in New Issue
Block a user