How to use the platformio.platforms.base.BasePlatform function in platformio

To help you get started, we’ve selected a few platformio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github platformio / platformio-core / platformio / platforms / lattice_ice40.py View on Github external
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform


class Lattice_ice40Platform(BasePlatform):

    """
    The iCE40 family of ultra-low power, non-volatile FPGAs has five devices
    with densities ranging from 384 to 7680 Look-Up Tables (LUTs). In addition
    to LUT-based,low-cost programmable logic, these devices feature Embedded
    Block RAM (EBR), Non-volatile Configuration Memory (NVCM) and Phase Locked
    Loops (PLLs). These features allow the devices to be used in low-cost,
    high-volume consumer and system applications.

    http://www.latticesemi.com/Products/FPGAandCPLD/iCE40.aspx
    """

    PACKAGES = {

        "toolchain-icestorm": {
            "alias": "toolchain",
github platformio / platformio-core / platformio / platforms / atmelavr.py View on Github external
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform
from platformio.util import get_boards


class AtmelavrPlatform(BasePlatform):

    """
    Atmel AVR 8- and 32-bit MCUs deliver a unique combination of
    performance, power efficiency and design flexibility. Optimized to
    speed time to market-and easily adapt to new ones-they are based on
    the industrys most code-efficient architecture for C and assembly
    programming.

    http://www.atmel.com/products/microcontrollers/avr/default.aspx
    """

    PACKAGES = {

        "toolchain-atmelavr": {
            "alias": "toolchain",
            "default": True
github bq / bitbloq-offline / app / res / web2board / darwin / Web2Board.app / Contents / Resources / platformio / platforms / nordicnrf51.py View on Github external
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform


class Nordicnrf51Platform(BasePlatform):

    """
    The Nordic nRF51 Series is a family of highly flexible,
    multi-protocol, system-on-chip (SoC) devices for ultra-low power
    wireless applications. nRF51 Series devices support a range of
    protocol stacks including Bluetooth Smart (previously called
    Bluetooth low energy), ANT and proprietary 2.4GHz protocols such as
    Gazell.

    https://www.nordicsemi.com/eng/Products/nRF51-Series-SoC
    """

    PACKAGES = {

        "toolchain-gccarmnoneeabi": {
            "alias": "toolchain",
github platformio / platformio-core / platformio / platforms / titiva.py View on Github external
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform


class TitivaPlatform(BasePlatform):

    """
    Texas Instruments TM4C12x MCUs offer the industrys most popular
    ARM Cortex-M4 core with scalable memory and package options, unparalleled
    connectivity peripherals, advanced application functions, industry-leading
    analog integration, and extensive software solutions.

    http://www.ti.com/lsds/ti/microcontrollers_16-bit_32-bit/c2000_performance/control_automation/tm4c12x/overview.page
    """

    PACKAGES = {

        "toolchain-gccarmnoneeabi": {
            "alias": "toolchain",
            "default": True
        },
github platformio / platformio-core / platformio / platforms / freescalekinetis.py View on Github external
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform


class FreescalekinetisPlatform(BasePlatform):

    """
    Freescale Kinetis Microcontrollers is family of multiple hardware- and
    software-compatible ARM Cortex-M0+, Cortex-M4 and Cortex-M7-based MCU
    series. Kinetis MCUs offer exceptional low-power performance,
    scalability and feature integration.

    http://www.freescale.com/webapp/sps/site/homepage.jsp?code=KINETIS
    """

    PACKAGES = {

        "toolchain-gccarmnoneeabi": {
            "alias": "toolchain",
            "default": True
        },
github platformio / platformio-core / platformio / platforms / espressif.py View on Github external
def configure_default_packages(self, envoptions, targets):
        if not envoptions.get("framework"):
            self.PACKAGES['sdk-esp8266']['default'] = True

        return BasePlatform.configure_default_packages(
            self, envoptions, targets)
github bq / bitbloq-offline / app / res / web2board / darwin / Web2Board.app / Contents / Resources / platformio / platforms / teensy.py View on Github external
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform
from platformio.util import get_boards


class TeensyPlatform(BasePlatform):

    """
    Teensy is a complete USB-based microcontroller development system, in
    a very small footprint, capable of implementing many types of projects.
    All programming is done via the USB port. No special programmer is
    needed, only a standard "Mini-B" USB cable and a PC or Macintosh with
    a USB port.

    https://www.pjrc.com/teensy
    """

    PACKAGES = {

        "toolchain-atmelavr": {
        },
github platformio / platformio-core / platformio / platforms / atmelavr.py View on Github external
def configure_default_packages(self, envoptions, targets):
        if envoptions.get("board"):
            board = get_boards(envoptions.get("board"))
            if "digispark" in board['build']['core']:
                self.PACKAGES['tool-micronucleus']['alias'] = "uploader"
            else:
                self.PACKAGES['tool-avrdude']['alias'] = "uploader"

        return BasePlatform.configure_default_packages(
            self, envoptions, targets)
github platformio / platformio-core / platformio / platforms / nordicnrf51.py View on Github external
def configure_default_packages(self, envoptions, targets):
        if envoptions.get("board") == "rfduino":
            self.PACKAGES['tool-rfdloader']['alias'] = "uploader"

        return BasePlatform.configure_default_packages(
            self, envoptions, targets)
github platformio / platformio-core / platformio / platforms / nxplpc.py View on Github external
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from platformio.platforms.base import BasePlatform


class NxplpcPlatform(BasePlatform):

    """
    The NXP LPC is a family of 32-bit microcontroller integrated circuits
    by NXP Semiconductors. The LPC chips are grouped into related series
    that are based around the same 32-bit ARM processor core, such as the
    Cortex-M4F, Cortex-M3, Cortex-M0+, or Cortex-M0. Internally, each
    microcontroller consists of the processor core, static RAM memory,
    flash memory, debugging interface, and various peripherals.

    http://www.nxp.com/products/microcontrollers/
    """

    PACKAGES = {

        "toolchain-gccarmnoneeabi": {
            "alias": "toolchain",