Skip to content

Commit

Permalink
Merge branch 'release/v1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 6, 2016
2 parents d1dcceb + 408ac32 commit 5f30b0b
Show file tree
Hide file tree
Showing 26 changed files with 62 additions and 60 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
Atmel | SMART offers Flash- based ARM products based on the ARM Cortex-M0+, Cortex-M3 and Cortex-M4 architectures, ranging from 8KB to 2MB of Flash including a rich peripheral and feature mix.

* [Home](http://platformio.org/platforms/atmelsam) (home page in PlatformIO Platform Registry)
* [Documentation](http://docs.platformio.org/en/latest/platforms/atmelsam.html) (advanced usage, packages, boards, frameworks, etc.)
* [Documentation](http://docs.platformio.org/en/stable/platforms/atmelsam.html) (advanced usage, packages, boards, frameworks, etc.)

# Usage

1. [Install PlatformIO CLI](http://docs.platformio.org/en/latest/installation.html)
1. [Install PlatformIO CLI](http://docs.platformio.org/en/stable/installation.html)
2. Install Atmel SAM development platform:
```bash
# install the latest stable version
Expand Down
2 changes: 1 addition & 1 deletion builder/frameworks/mbed
Submodule mbed updated 2 files
+2 −2 .travis.yml
+10 −4 mbed.py
37 changes: 17 additions & 20 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
Builder for Atmel SAM series of microcontrollers
"""

from os.path import basename, join

from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild,
Expand Down Expand Up @@ -254,18 +250,19 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
# Target: Build executable and linkable firmware
#

target_elf = env.BuildProgram()

#
# Target: Build the .bin file
#

if "uploadlazy" in COMMAND_LINE_TARGETS:
target_firm = join("$BUILD_DIR", "firmware.bin")
elif upload_protocol == "stk500v2":
target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)
target_elf = None
if "nobuild" in COMMAND_LINE_TARGETS:
target_firm = join("$BUILD_DIR", "firmware.%s" % (
"hex" if upload_protocol == "stk500v2" else "bin"))
else:
target_firm = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)
target_elf = env.BuildProgram()
if upload_protocol == "stk500v2":
target_firm = env.ElfToHex(join("$BUILD_DIR", "firmware"), target_elf)
else:
target_firm = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)

AlwaysBuild(env.Alias("nobuild", target_firm))
target_buildprog = env.Alias("buildprog", target_firm)

#
# Target: Print binary size
Expand All @@ -281,18 +278,18 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
#

if upload_protocol == "openocd":
upload = env.Alias(["upload", "uploadlazy"], target_firm,
target_upload = env.Alias("upload", target_firm,
env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE"))
else:
upload = env.Alias(
["upload", "uploadlazy"], target_firm,
target_upload = env.Alias(
"upload", target_firm,
[env.VerboseAction(BeforeUpload, "Looking for upload port..."),
env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")])

AlwaysBuild(upload)
AlwaysBuild(target_upload)

#
# Setup default targets
#

Default([target_firm, target_size])
Default([target_buildprog, target_size])
6 changes: 3 additions & 3 deletions examples/arduino-blink/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-blink/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-blink/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

5 changes: 5 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ platform = atmelsam
framework = arduino
board = mzeropro

[env:mzeroproUSB]
platform = atmelsam
framework = arduino
board = mzeroproUSB

[env:mzeroUSB]
platform = atmelsam
framework = arduino
Expand Down
6 changes: 3 additions & 3 deletions examples/arduino-external-libs/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-external-libs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-external-libs/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

6 changes: 3 additions & 3 deletions examples/arduino-internal-libs/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-internal-libs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-internal-libs/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

6 changes: 3 additions & 3 deletions examples/mbed-blink/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-blink/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-blink/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

6 changes: 3 additions & 3 deletions examples/mbed-dsp/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-dsp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-dsp/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

6 changes: 3 additions & 3 deletions examples/mbed-serial/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choose one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-serial/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/mbed-serial/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

6 changes: 3 additions & 3 deletions examples/simba-blink/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
# several times a day < http://docs.platformio.org/en/stable/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
# < http://docs.platformio.org/en/stable/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
# < http://docs.platformio.org/en/stable/userguide/cmd_ci.html >
#
#
# Please choice one of the following templates (proposed below) and uncomment
Expand Down
2 changes: 1 addition & 1 deletion examples/simba-blink/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
How to build PlatformIO based project
=====================================

1. `Install PlatformIO <http://docs.platformio.org/en/latest/installation.html>`_
1. `Install PlatformIO <http://docs.platformio.org/en/stable/installation.html>`_
2. Download `development platform with examples <https://github.com/platformio/platform-atmelsam/archive/develop.zip>`_
3. Extract ZIP archive
4. Run these commands:
Expand Down
2 changes: 1 addition & 1 deletion examples/simba-blink/lib/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ include paths and build them.

See additional options for PlatformIO Library Dependency Finder `lib_*`:

http://docs.platformio.org/en/latest/projectconf.html#lib-install
http://docs.platformio.org/en/stable/projectconf.html#lib-install

4 changes: 2 additions & 2 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-atmelsam.git"
},
"version": "1.0.3",
"version": "1.1.0",
"packageRepositories": [
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
"https://sourceforge.net/projects/platformio-storage/files/packages/manifest.json/download",
Expand Down Expand Up @@ -47,7 +47,7 @@
"framework-mbed": {
"type": "framework",
"optional": true,
"version": "~3.124.0"
"version": "~3.126.0"
},
"framework-simba": {
"type": "framework",
Expand Down

0 comments on commit 5f30b0b

Please sign in to comment.