Deprecate support for Simba and Pumbaa frameworks
This commit is contained in:
@@ -29,8 +29,6 @@ jobs:
|
||||
- "examples/espidf-storage-spiffs"
|
||||
- "examples/espidf-ulp-adc"
|
||||
- "examples/espidf-ulp-pulse"
|
||||
- "examples/pumbaa-blink"
|
||||
- "examples/simba-blink"
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
+1
-3
@@ -19,9 +19,7 @@
|
||||
],
|
||||
"frameworks": [
|
||||
"arduino",
|
||||
"espidf",
|
||||
"simba",
|
||||
"pumbaa"
|
||||
"espidf"
|
||||
],
|
||||
"name": "MakerAsia Nano32",
|
||||
"upload": {
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# Copyright 2014-present PlatformIO <contact@platformio.org>
|
||||
#
|
||||
# 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.
|
||||
|
||||
"""Pumbaa
|
||||
|
||||
Pumbaa is Python on top of Simba.
|
||||
|
||||
The implementation is a port of MicroPython, designed for embedded
|
||||
devices with limited amount of RAM and code memory.
|
||||
|
||||
http://pumbaa.readthedocs.org
|
||||
|
||||
"""
|
||||
|
||||
from os.path import join, sep
|
||||
|
||||
from SCons.Script import DefaultEnvironment, SConscript
|
||||
|
||||
from platformio.builder.tools import platformio as platformio_tool
|
||||
|
||||
#
|
||||
# Backward compatibility with PlatformIO 2.0
|
||||
#
|
||||
platformio_tool.SRC_DEFAULT_FILTER = " ".join([
|
||||
"+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep,
|
||||
"-<example%s>" % sep, "-<examples%s>" % sep,
|
||||
"-<test%s>" % sep, "-<tests%s>" % sep
|
||||
])
|
||||
|
||||
|
||||
def LookupSources(env, variant_dir, src_dir, duplicate=True, src_filter=None):
|
||||
return env.CollectBuildFiles(variant_dir, src_dir, src_filter, duplicate)
|
||||
|
||||
|
||||
def VariantDirWrap(env, variant_dir, src_dir, duplicate=False):
|
||||
env.VariantDir(variant_dir, src_dir, duplicate)
|
||||
|
||||
|
||||
env = DefaultEnvironment()
|
||||
|
||||
env.AddMethod(LookupSources)
|
||||
env.AddMethod(VariantDirWrap)
|
||||
|
||||
env.Replace(
|
||||
PLATFORMFW_DIR=env.PioPlatform().get_package_dir("framework-pumbaa"),
|
||||
UPLOADERFLAGS=[] # Backward compatibility for obsolete build script
|
||||
)
|
||||
|
||||
SConscript(
|
||||
[env.subst(join("$PLATFORMFW_DIR", "make", "platformio.sconscript"))])
|
||||
|
||||
env.Replace(
|
||||
FLASH_EXTRA_IMAGES=[
|
||||
("0x1000", join("$PLATFORMFW_DIR", "simba", "3pp", "esp32",
|
||||
"bin", "bootloader.bin")),
|
||||
("0x8000", join("$PLATFORMFW_DIR", "simba", "3pp", "esp32",
|
||||
"bin", "partitions_singleapp.bin"))
|
||||
]
|
||||
)
|
||||
@@ -1,68 +0,0 @@
|
||||
# Copyright 2014-present PlatformIO <contact@platformio.org>
|
||||
#
|
||||
# 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.
|
||||
|
||||
"""Simba
|
||||
|
||||
Simba is an RTOS and build framework. It aims to make embedded
|
||||
programming easy and portable.
|
||||
|
||||
http://simba-os.readthedocs.org
|
||||
|
||||
"""
|
||||
|
||||
from os.path import join, sep
|
||||
|
||||
from SCons.Script import DefaultEnvironment, SConscript
|
||||
|
||||
from platformio.builder.tools import platformio as platformio_tool
|
||||
|
||||
#
|
||||
# Backward compatibility with PlatformIO 2.0
|
||||
#
|
||||
platformio_tool.SRC_DEFAULT_FILTER = " ".join([
|
||||
"+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep,
|
||||
"-<example%s>" % sep, "-<examples%s>" % sep,
|
||||
"-<test%s>" % sep, "-<tests%s>" % sep
|
||||
])
|
||||
|
||||
|
||||
def LookupSources(env, variant_dir, src_dir, duplicate=True, src_filter=None):
|
||||
return env.CollectBuildFiles(variant_dir, src_dir, src_filter, duplicate)
|
||||
|
||||
|
||||
def VariantDirWrap(env, variant_dir, src_dir, duplicate=False):
|
||||
env.VariantDir(variant_dir, src_dir, duplicate)
|
||||
|
||||
|
||||
env = DefaultEnvironment()
|
||||
|
||||
env.AddMethod(LookupSources)
|
||||
env.AddMethod(VariantDirWrap)
|
||||
|
||||
env.Replace(
|
||||
PLATFORMFW_DIR=env.PioPlatform().get_package_dir("framework-simba"),
|
||||
UPLOADERFLAGS=[] # Backward compatibility for obsolete build script
|
||||
)
|
||||
|
||||
SConscript(
|
||||
[env.subst(join("$PLATFORMFW_DIR", "make", "platformio.sconscript"))])
|
||||
|
||||
env.Replace(
|
||||
FLASH_EXTRA_IMAGES=[
|
||||
("0x1000", join("$PLATFORMFW_DIR", "3pp", "esp32",
|
||||
"bin", "bootloader.bin")),
|
||||
("0x8000", join("$PLATFORMFW_DIR", "3pp", "esp32",
|
||||
"bin", "partitions_singleapp.bin"))
|
||||
]
|
||||
)
|
||||
@@ -1 +0,0 @@
|
||||
.pio
|
||||
@@ -1 +0,0 @@
|
||||
.skiptest
|
||||
@@ -1,67 +0,0 @@
|
||||
# Continuous Integration (CI) is the practice, in software
|
||||
# engineering, of merging all developer working copies with a shared mainline
|
||||
# several times a day < https://docs.platformio.org/page/ci/index.html >
|
||||
#
|
||||
# Documentation:
|
||||
#
|
||||
# * Travis CI Embedded Builds with PlatformIO
|
||||
# < https://docs.travis-ci.com/user/integration/platformio/ >
|
||||
#
|
||||
# * PlatformIO integration with Travis CI
|
||||
# < https://docs.platformio.org/page/ci/travis.html >
|
||||
#
|
||||
# * User Guide for `platformio ci` command
|
||||
# < https://docs.platformio.org/page/userguide/cmd_ci.html >
|
||||
#
|
||||
#
|
||||
# Please choose one of the following templates (proposed below) and uncomment
|
||||
# it (remove "# " before each line) or use own configuration according to the
|
||||
# Travis CI documentation (see above).
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Template #1: General project. Test it using existing `platformio.ini`.
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio run
|
||||
|
||||
|
||||
#
|
||||
# Template #2: The project is intended to be used as a library with examples.
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# env:
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/file.c
|
||||
# - PLATFORMIO_CI_SRC=examples/file.ino
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/directory
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N
|
||||
@@ -1,18 +0,0 @@
|
||||
How to build PlatformIO based project
|
||||
=====================================
|
||||
|
||||
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
|
||||
2. Download [development platform with examples](https://github.com/platformio/platform-espressif32/archive/develop.zip)
|
||||
3. Extract ZIP archive
|
||||
4. Run these commands:
|
||||
|
||||
```shell
|
||||
# Change directory to example
|
||||
$ cd platform-espressif32/examples/pumbaa-blink
|
||||
|
||||
# Process example project
|
||||
$ pio run
|
||||
|
||||
# Upload firmware
|
||||
$ pio run --target upload
|
||||
```
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
This directory is intended for project header files.
|
||||
|
||||
A header file is a file containing C declarations and macro definitions
|
||||
to be shared between several project source files. You request the use of a
|
||||
header file in your project source file (C, C++, etc) located in `src` folder
|
||||
by including it, with the C preprocessing directive `#include'.
|
||||
|
||||
```src/main.c
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Including a header file produces the same results as copying the header file
|
||||
into each source file that needs it. Such copying would be time-consuming
|
||||
and error-prone. With a header file, the related declarations appear
|
||||
in only one place. If they need to be changed, they can be changed in one
|
||||
place, and programs that include the header file will automatically use the
|
||||
new version when next recompiled. The header file eliminates the labor of
|
||||
finding and changing all the copies as well as the risk that a failure to
|
||||
find one copy will result in inconsistencies within a program.
|
||||
|
||||
In C, the usual convention is to give header files names that end with `.h'.
|
||||
It is most portable to use only letters, digits, dashes, and underscores in
|
||||
header file names, and at most one dot.
|
||||
|
||||
Read more about using header files in official GCC documentation:
|
||||
|
||||
* Include Syntax
|
||||
* Include Operation
|
||||
* Once-Only Headers
|
||||
* Computed Includes
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
||||
@@ -1,46 +0,0 @@
|
||||
|
||||
This directory is intended for project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link into executable file.
|
||||
|
||||
The source code of each library should be placed in a an own separate directory
|
||||
("lib/your_library_name/[here are source files]").
|
||||
|
||||
For example, see a structure of the following two libraries `Foo` and `Bar`:
|
||||
|
||||
|--lib
|
||||
| |
|
||||
| |--Bar
|
||||
| | |--docs
|
||||
| | |--examples
|
||||
| | |--src
|
||||
| | |- Bar.c
|
||||
| | |- Bar.h
|
||||
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
|
||||
| |
|
||||
| |--Foo
|
||||
| | |- Foo.c
|
||||
| | |- Foo.h
|
||||
| |
|
||||
| |- README --> THIS FILE
|
||||
|
|
||||
|- platformio.ini
|
||||
|--src
|
||||
|- main.c
|
||||
|
||||
and a contents of `src/main.c`:
|
||||
```
|
||||
#include <Foo.h>
|
||||
#include <Bar.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
PlatformIO Library Dependency Finder will find automatically dependent
|
||||
libraries scanning project source files.
|
||||
|
||||
More information about PlatformIO Library Dependency Finder
|
||||
- https://docs.platformio.org/page/librarymanager/ldf.html
|
||||
@@ -1,13 +0,0 @@
|
||||
; PlatformIO Project Configuration File
|
||||
;
|
||||
; Build options: build flags, source filter, extra scripting
|
||||
; Upload options: custom port, speed and extra flags
|
||||
; Library options: dependencies, extra library storages
|
||||
;
|
||||
; Please visit documentation for the other options and examples
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[env:nano32]
|
||||
platform = espressif32
|
||||
framework = pumbaa
|
||||
board = nano32
|
||||
@@ -1,22 +0,0 @@
|
||||
/**
|
||||
* @file main.c
|
||||
*
|
||||
* @section License
|
||||
* Copyright (C) 2015-2016, Erik Moqvist
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* This file is part of the Pumbaa project.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file is required by PlatformIO, but is unused in Pumbaa.
|
||||
*/
|
||||
@@ -1,40 +0,0 @@
|
||||
#
|
||||
# @section License
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2016, Erik Moqvist
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person
|
||||
# obtaining a copy of this software and associated documentation
|
||||
# files (the "Software"), to deal in the Software without
|
||||
# restriction, including without limitation the rights to use, copy,
|
||||
# modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
# of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be
|
||||
# included in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
#
|
||||
# This file is part of the Pumbaa project.
|
||||
#
|
||||
|
||||
|
||||
import time
|
||||
import board
|
||||
from drivers import Pin
|
||||
|
||||
LED = Pin(board.PIN_LED, Pin.OUTPUT)
|
||||
|
||||
while True:
|
||||
LED.toggle()
|
||||
time.sleep(0.5)
|
||||
@@ -1,11 +0,0 @@
|
||||
|
||||
This directory is intended for PIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
||||
@@ -1 +0,0 @@
|
||||
.pio
|
||||
@@ -1,67 +0,0 @@
|
||||
# Continuous Integration (CI) is the practice, in software
|
||||
# engineering, of merging all developer working copies with a shared mainline
|
||||
# several times a day < https://docs.platformio.org/page/ci/index.html >
|
||||
#
|
||||
# Documentation:
|
||||
#
|
||||
# * Travis CI Embedded Builds with PlatformIO
|
||||
# < https://docs.travis-ci.com/user/integration/platformio/ >
|
||||
#
|
||||
# * PlatformIO integration with Travis CI
|
||||
# < https://docs.platformio.org/page/ci/travis.html >
|
||||
#
|
||||
# * User Guide for `platformio ci` command
|
||||
# < https://docs.platformio.org/page/userguide/cmd_ci.html >
|
||||
#
|
||||
#
|
||||
# Please choose one of the following templates (proposed below) and uncomment
|
||||
# it (remove "# " before each line) or use own configuration according to the
|
||||
# Travis CI documentation (see above).
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Template #1: General project. Test it using existing `platformio.ini`.
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio run
|
||||
|
||||
|
||||
#
|
||||
# Template #2: The project is intended to be used as a library with examples.
|
||||
#
|
||||
|
||||
# language: python
|
||||
# python:
|
||||
# - "2.7"
|
||||
#
|
||||
# sudo: false
|
||||
# cache:
|
||||
# directories:
|
||||
# - "~/.platformio"
|
||||
#
|
||||
# env:
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/file.c
|
||||
# - PLATFORMIO_CI_SRC=examples/file.ino
|
||||
# - PLATFORMIO_CI_SRC=path/to/test/directory
|
||||
#
|
||||
# install:
|
||||
# - pip install -U platformio
|
||||
# - platformio update
|
||||
#
|
||||
# script:
|
||||
# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N
|
||||
@@ -1,18 +0,0 @@
|
||||
How to build PlatformIO based project
|
||||
=====================================
|
||||
|
||||
1. [Install PlatformIO Core](https://docs.platformio.org/page/core.html)
|
||||
2. Download [development platform with examples](https://github.com/platformio/platform-espressif32/archive/develop.zip)
|
||||
3. Extract ZIP archive
|
||||
4. Run these commands:
|
||||
|
||||
```shell
|
||||
# Change directory to example
|
||||
$ cd platform-espressif32/examples/simba-blink
|
||||
|
||||
# Process example project
|
||||
$ pio run
|
||||
|
||||
# Upload firmware
|
||||
$ pio run --target upload
|
||||
```
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
This directory is intended for project header files.
|
||||
|
||||
A header file is a file containing C declarations and macro definitions
|
||||
to be shared between several project source files. You request the use of a
|
||||
header file in your project source file (C, C++, etc) located in `src` folder
|
||||
by including it, with the C preprocessing directive `#include'.
|
||||
|
||||
```src/main.c
|
||||
|
||||
#include "header.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Including a header file produces the same results as copying the header file
|
||||
into each source file that needs it. Such copying would be time-consuming
|
||||
and error-prone. With a header file, the related declarations appear
|
||||
in only one place. If they need to be changed, they can be changed in one
|
||||
place, and programs that include the header file will automatically use the
|
||||
new version when next recompiled. The header file eliminates the labor of
|
||||
finding and changing all the copies as well as the risk that a failure to
|
||||
find one copy will result in inconsistencies within a program.
|
||||
|
||||
In C, the usual convention is to give header files names that end with `.h'.
|
||||
It is most portable to use only letters, digits, dashes, and underscores in
|
||||
header file names, and at most one dot.
|
||||
|
||||
Read more about using header files in official GCC documentation:
|
||||
|
||||
* Include Syntax
|
||||
* Include Operation
|
||||
* Once-Only Headers
|
||||
* Computed Includes
|
||||
|
||||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
||||
@@ -1,46 +0,0 @@
|
||||
|
||||
This directory is intended for project specific (private) libraries.
|
||||
PlatformIO will compile them to static libraries and link into executable file.
|
||||
|
||||
The source code of each library should be placed in a an own separate directory
|
||||
("lib/your_library_name/[here are source files]").
|
||||
|
||||
For example, see a structure of the following two libraries `Foo` and `Bar`:
|
||||
|
||||
|--lib
|
||||
| |
|
||||
| |--Bar
|
||||
| | |--docs
|
||||
| | |--examples
|
||||
| | |--src
|
||||
| | |- Bar.c
|
||||
| | |- Bar.h
|
||||
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
|
||||
| |
|
||||
| |--Foo
|
||||
| | |- Foo.c
|
||||
| | |- Foo.h
|
||||
| |
|
||||
| |- README --> THIS FILE
|
||||
|
|
||||
|- platformio.ini
|
||||
|--src
|
||||
|- main.c
|
||||
|
||||
and a contents of `src/main.c`:
|
||||
```
|
||||
#include <Foo.h>
|
||||
#include <Bar.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
...
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
PlatformIO Library Dependency Finder will find automatically dependent
|
||||
libraries scanning project source files.
|
||||
|
||||
More information about PlatformIO Library Dependency Finder
|
||||
- https://docs.platformio.org/page/librarymanager/ldf.html
|
||||
@@ -1,13 +0,0 @@
|
||||
; PlatformIO Project Configuration File
|
||||
;
|
||||
; Build options: build flags, source filter, extra scripting
|
||||
; Upload options: custom port, speed and extra flags
|
||||
; Library options: dependencies, extra library storages
|
||||
;
|
||||
; Please visit documentation for the other options and examples
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[env:nano32]
|
||||
platform = espressif32
|
||||
framework = simba
|
||||
board = nano32
|
||||
@@ -1,43 +0,0 @@
|
||||
/**
|
||||
* @file main.c
|
||||
* @version 4.1.0
|
||||
*
|
||||
* @section License
|
||||
* Copyright (C) 2015-2016, Erik Moqvist
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* This file is part of the Simba project.
|
||||
*/
|
||||
|
||||
#include "simba.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
struct pin_driver_t led;
|
||||
|
||||
/* Start the system. */
|
||||
sys_start();
|
||||
|
||||
/* Initialize the LED pin as output and set its value to 1. */
|
||||
pin_init(&led, &pin_led_dev, PIN_OUTPUT);
|
||||
pin_write(&led, 1);
|
||||
|
||||
while (1) {
|
||||
/* Wait half a second. */
|
||||
thrd_sleep_us(500000);
|
||||
|
||||
/* Toggle the LED on/off. */
|
||||
pin_toggle(&led);
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
|
||||
This directory is intended for PIO Unit Testing and project tests.
|
||||
|
||||
Unit Testing is a software testing method by which individual units of
|
||||
source code, sets of one or more MCU program modules together with associated
|
||||
control data, usage procedures, and operating procedures, are tested to
|
||||
determine whether they are fit for use. Unit testing finds problems early
|
||||
in the development cycle.
|
||||
|
||||
More information about PIO Unit Testing:
|
||||
- https://docs.platformio.org/page/plus/unit-testing.html
|
||||
@@ -30,20 +30,6 @@
|
||||
"description": "ESP-IDF is the official development framework for the ESP32 and ESP32-S Series SoCs.",
|
||||
"homepage": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32/",
|
||||
"title": "Espressif IoT Development Framework"
|
||||
},
|
||||
"simba": {
|
||||
"package": "framework-simba",
|
||||
"script": "builder/frameworks/simba.py",
|
||||
"description": "Simba is an RTOS and build framework with aims to make embedded programming easy and portable",
|
||||
"homepage": "http://simba-os.readthedocs.org",
|
||||
"title": "Simba"
|
||||
},
|
||||
"pumbaa": {
|
||||
"package": "framework-pumbaa",
|
||||
"script": "builder/frameworks/pumbaa.py",
|
||||
"description": "Pumbaa is Python on top of Simba. The implementation is a port of MicroPython, designed for embedded devices with limited amount of RAM and code memory",
|
||||
"homepage": "http://pumbaa.readthedocs.org/",
|
||||
"title": "Pumbaa"
|
||||
}
|
||||
},
|
||||
"packages": {
|
||||
@@ -104,18 +90,6 @@
|
||||
"version": "~3.40302.0",
|
||||
"optionalVersions": ["~3.40001.0"]
|
||||
},
|
||||
"framework-simba": {
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"owner": "platformio",
|
||||
"version": ">=12.2.0"
|
||||
},
|
||||
"framework-pumbaa": {
|
||||
"type": "framework",
|
||||
"optional": true,
|
||||
"owner": "platformio",
|
||||
"version": ">=2.3.0"
|
||||
},
|
||||
"tool-esptoolpy": {
|
||||
"type": "uploader",
|
||||
"owner": "platformio",
|
||||
|
||||
@@ -114,7 +114,6 @@ class Espressif32Platform(PlatformBase):
|
||||
|
||||
is_legacy_project = (
|
||||
build_core == "mbcwb"
|
||||
or set(("simba", "pumbaa")) & set(frameworks)
|
||||
or set(("arduino", "espidf")) == set(frameworks)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user