Browse Source

update repo/package names

main
John Robinson 3 years ago
parent
commit
f09a61ec0f
No known key found for this signature in database
4 changed files with 18 additions and 18 deletions
  1. +3
    -3
      .piopm
  2. +2
    -2
      builder/frameworks/arduino.py
  3. +12
    -12
      platform.json
  4. +1
    -1
      platform.py

+ 3
- 3
.piopm View File

{ {
"type": "platform", "type": "platform",
"name": "teensy-gcc",
"name": "teensy-gcc10",
"version": "0.1.0", "version": "0.1.0",
"spec": { "spec": {
"owner": "skepto",
"owner": "visus",
"id": 8021, "id": 8021,
"name": "teensy-gcc",
"name": "teensy-gcc10",
"requirements": null, "requirements": null,
"url": null "url": null
} }

+ 2
- 2
builder/frameworks/arduino.py View File

env = DefaultEnvironment() env = DefaultEnvironment()
platform = env.PioPlatform() platform = env.PioPlatform()
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoteensy-cxx17")
FRAMEWORK_VERSION = platform.get_package_version("framework-arduinoteensy-cxx17")
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoteensy-cxx20")
FRAMEWORK_VERSION = platform.get_package_version("framework-arduinoteensy-cxx20")
BUILD_CORE = env.BoardConfig().get("build.core") BUILD_CORE = env.BoardConfig().get("build.core")
assert isdir(FRAMEWORK_DIR) assert isdir(FRAMEWORK_DIR)

+ 12
- 12
platform.json View File

{ {
"name": "teensy-gcc",
"name": "teensy-gcc10",
"title": "Teensy", "title": "Teensy",
"description": "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 USB cable and a PC or Macintosh with a USB port.", "description": "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 USB cable and a PC or Macintosh with a USB port.",
"homepage": "https://www.pjrc.com/teensy", "homepage": "https://www.pjrc.com/teensy",
"license": "Apache-2.0", "license": "Apache-2.0",
"keywords": [ "keywords": [
"dev-platform",
"ARM",
"AVR",
"Cortex-M",
"NXP Semiconductors",
"Microchip"
"dev-platform",
"ARM",
"AVR",
"Cortex-M",
"NXP Semiconductors",
"Microchip"
], ],
"engines": { "engines": {
"platformio": "^5" "platformio": "^5"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/platformio/platform-teensy.git"
"url": "https://github.com/visus/platform-teensy-gcc10.git"
}, },
"version": "4.17.0", "version": "4.17.0",
"frameworks": { "frameworks": {
"arduino": { "arduino": {
"package": "framework-arduinoteensy-cxx17",
"package": "framework-arduinoteensy-cxx20",
"script": "builder/frameworks/arduino.py" "script": "builder/frameworks/arduino.py"
}, },
"mbed": { "mbed": {
"toolchain-gcc-arm-embedded": { "toolchain-gcc-arm-embedded": {
"type": "toolchain", "type": "toolchain",
"optional": false, "optional": false,
"owner": "skepto",
"owner": "visus",
"version": "~0.1.0" "version": "~0.1.0"
}, },
"framework-arduinoteensy-cxx17": {
"framework-arduinoteensy-cxx20": {
"type": "framework", "type": "framework",
"optional": true, "optional": true,
"owner": "skepto",
"owner": "visus",
"version": "~0.1.0" "version": "~0.1.0"
}, },
"framework-mbed": { "framework-mbed": {

+ 1
- 1
platform.py View File

from platformio.managers.platform import PlatformBase from platformio.managers.platform import PlatformBase
class TeensygccPlatform(PlatformBase):
class Teensygcc10Platform(PlatformBase):
def configure_default_packages(self, variables, targets): def configure_default_packages(self, variables, targets):
if variables.get("board"): if variables.get("board"):

Loading…
Cancel
Save