mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Docs: Add support for Teensy 4.0
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 30ffe43023...29f80d45f2
@ -20,7 +20,7 @@ from sys import path
|
|||||||
|
|
||||||
path.append("..")
|
path.append("..")
|
||||||
|
|
||||||
from platformio import util
|
from platformio import fs, util
|
||||||
from platformio.managers.platform import PlatformFactory, PlatformManager
|
from platformio.managers.platform import PlatformFactory, PlatformManager
|
||||||
|
|
||||||
RST_COPYRIGHT = """.. Copyright (c) 2014-present PlatformIO <contact@platformio.org>
|
RST_COPYRIGHT = """.. Copyright (c) 2014-present PlatformIO <contact@platformio.org>
|
||||||
@ -97,8 +97,8 @@ def generate_boards_table(boards, skip_columns=None):
|
|||||||
debug=debug,
|
debug=debug,
|
||||||
mcu=data['mcu'].upper(),
|
mcu=data['mcu'].upper(),
|
||||||
f_cpu=int(data['fcpu']) / 1000000,
|
f_cpu=int(data['fcpu']) / 1000000,
|
||||||
ram=util.format_filesize(data['ram']),
|
ram=fs.format_filesize(data['ram']),
|
||||||
rom=util.format_filesize(data['rom']))
|
rom=fs.format_filesize(data['rom']))
|
||||||
|
|
||||||
for (name, template) in columns:
|
for (name, template) in columns:
|
||||||
if skip_columns and name in skip_columns:
|
if skip_columns and name in skip_columns:
|
||||||
@ -614,8 +614,8 @@ def update_embedded_board(rst_path, board):
|
|||||||
mcu_upper=board['mcu'].upper(),
|
mcu_upper=board['mcu'].upper(),
|
||||||
f_cpu=board['fcpu'],
|
f_cpu=board['fcpu'],
|
||||||
f_cpu_mhz=int(board['fcpu']) / 1000000,
|
f_cpu_mhz=int(board['fcpu']) / 1000000,
|
||||||
ram=util.format_filesize(board['ram']),
|
ram=fs.format_filesize(board['ram']),
|
||||||
rom=util.format_filesize(board['rom']),
|
rom=fs.format_filesize(board['rom']),
|
||||||
vendor=board['vendor'],
|
vendor=board['vendor'],
|
||||||
board_manifest_url=board_manifest_url,
|
board_manifest_url=board_manifest_url,
|
||||||
upload_protocol=board_config.get("upload.protocol", ""))
|
upload_protocol=board_config.get("upload.protocol", ""))
|
||||||
@ -811,7 +811,7 @@ Boards
|
|||||||
|
|
||||||
# save
|
# save
|
||||||
with open(
|
with open(
|
||||||
join(util.get_source_dir(), "..", "docs", "plus", "debugging.rst"),
|
join(fs.get_source_dir(), "..", "docs", "plus", "debugging.rst"),
|
||||||
"r+") as fp:
|
"r+") as fp:
|
||||||
content = fp.read()
|
content = fp.read()
|
||||||
fp.seek(0)
|
fp.seek(0)
|
||||||
@ -880,7 +880,7 @@ def update_project_examples():
|
|||||||
{examples}
|
{examples}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
project_examples_dir = join(util.get_source_dir(), "..", "examples")
|
project_examples_dir = join(fs.get_source_dir(), "..", "examples")
|
||||||
framework_examples_md_lines = {}
|
framework_examples_md_lines = {}
|
||||||
embedded = []
|
embedded = []
|
||||||
desktop = []
|
desktop = []
|
||||||
|
Reference in New Issue
Block a user