Fix broken "warning" block for Teensy platform

This commit is contained in:
Ivan Kravets
2016-03-16 22:17:14 +02:00
parent 9d50803b0c
commit 1af462ff66
12 changed files with 52 additions and 28 deletions

View File

@ -44,8 +44,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -50,8 +50,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -50,8 +50,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -38,8 +38,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -44,8 +44,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -38,8 +38,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -38,8 +38,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -53,8 +53,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -50,9 +50,13 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Teensy programming uses only Windows built-in HID
drivers. When Teensy is programmed to act as a USB Serial device,
Windows XP, Vista, 7 and 8 require `this serial driver
<http://www.pjrc.com/teensy/serial_install.exe>`_
is needed to access the COM port your program uses. No special driver
installation is necessary on Windows 10.
Frameworks

View File

@ -44,8 +44,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -47,8 +47,9 @@ Packages
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer

View File

@ -77,7 +77,7 @@ def generate_boards(boards):
return "\n".join(lines + [""])
def generate_packages(packages, is_embedded):
def generate_packages(platform, packages, is_embedded):
if not packages:
return
allpackages = get_packages()
@ -108,12 +108,22 @@ Packages
.. warning::
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB driver
from board manufacturer
""")
if platform == "teensy":
lines.append("""
**Windows Users:** Teensy programming uses only Windows built-in HID
drivers. When Teensy is programmed to act as a USB Serial device,
Windows XP, Vista, 7 and 8 require `this serial driver
<http://www.pjrc.com/teensy/serial_install.exe>`_
is needed to access the COM port your program uses. No special driver
installation is necessary on Windows 10.
""")
else:
lines.append("""
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer
""")
return "\n".join(lines)
@ -151,7 +161,7 @@ For more detailed information please visit `vendor site <%s>`_.""" %
#
# Packages
#
_packages_content = generate_packages(p.get_packages(), p.is_embedded())
_packages_content = generate_packages(name, p.get_packages(), p.is_embedded())
if _packages_content:
lines.append(_packages_content)