From 8c2dd44f44f0eb8e32141047fc51b45b6fc1b48d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 2 Jan 2015 00:16:29 +0200 Subject: [PATCH] Update platformio.ini for the examples --- .../arduino-adafruit-library/platformio.ini | 20 ++++++++++-- .../arduino-internal-library/platformio.ini | 20 ++++++++++-- examples/atmelavr-native-blink/platformio.ini | 22 ++++++++++--- .../ide-eclipse/arduino_pro5/platformio.ini | 20 ++++++++++-- .../atmelavr_atmega168/platformio.ini | 24 ++++++++++---- .../tilaunchpad_msp430g2/platformio.ini | 20 ++++++++++-- .../ide-eclipse/titiva_lm4f120/platformio.ini | 21 +++++++++++-- examples/timsp430-native-blink/platformio.ini | 20 ++++++++++-- examples/titiva-native-blink/platformio.ini | 20 ++++++++++-- examples/wiring-blink/platformio.ini | 31 ++++++++++++++----- .../wiring-blink/src/{main.c => main.cpp} | 0 11 files changed, 185 insertions(+), 33 deletions(-) rename examples/wiring-blink/src/{main.c => main.cpp} (100%) diff --git a/examples/arduino-adafruit-library/platformio.ini b/examples/arduino-adafruit-library/platformio.ini index 109c539a..e26aeb1a 100644 --- a/examples/arduino-adafruit-library/platformio.ini +++ b/examples/arduino-adafruit-library/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:microduino] platform = atmelavr diff --git a/examples/arduino-internal-library/platformio.ini b/examples/arduino-internal-library/platformio.ini index 3e4373c7..4b5f4dd0 100644 --- a/examples/arduino-internal-library/platformio.ini +++ b/examples/arduino-internal-library/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:arduino_pro5v] platform = atmelavr diff --git a/examples/atmelavr-native-blink/platformio.ini b/examples/atmelavr-native-blink/platformio.ini index 6c73192c..be19d15a 100644 --- a/examples/atmelavr-native-blink/platformio.ini +++ b/examples/atmelavr-native-blink/platformio.ini @@ -1,13 +1,27 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:arduino_pro5v] platform = atmelavr board_mcu = atmega168 board_f_cpu = 16000000L -upload_port = /dev/tty.SLAB_USBtoUART -# upload_port = COM3 upload_protocol = arduino upload_speed = 19200 diff --git a/examples/ide-eclipse/arduino_pro5/platformio.ini b/examples/ide-eclipse/arduino_pro5/platformio.ini index b5289605..1cb3136c 100644 --- a/examples/ide-eclipse/arduino_pro5/platformio.ini +++ b/examples/ide-eclipse/arduino_pro5/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:arduino_pro5v] platform = atmelavr diff --git a/examples/ide-eclipse/atmelavr_atmega168/platformio.ini b/examples/ide-eclipse/atmelavr_atmega168/platformio.ini index c974d6e3..d4ab33fc 100644 --- a/examples/ide-eclipse/atmelavr_atmega168/platformio.ini +++ b/examples/ide-eclipse/atmelavr_atmega168/platformio.ini @@ -1,14 +1,26 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:atmelavr_atmega168] platform = atmelavr board_mcu = atmega168 board_f_cpu = 16000000L -# Allow autodetection for upload port or uncomment line below -# upload_port = /dev/ttyUSB0 -# upload_port = COM3 - upload_protocol = arduino upload_speed = 19200 diff --git a/examples/ide-eclipse/tilaunchpad_msp430g2/platformio.ini b/examples/ide-eclipse/tilaunchpad_msp430g2/platformio.ini index 55a857bc..14fed867 100644 --- a/examples/ide-eclipse/tilaunchpad_msp430g2/platformio.ini +++ b/examples/ide-eclipse/tilaunchpad_msp430g2/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:launchpad_msp430g2] platform = timsp430 diff --git a/examples/ide-eclipse/titiva_lm4f120/platformio.ini b/examples/ide-eclipse/titiva_lm4f120/platformio.ini index 7e915752..9c9493dd 100644 --- a/examples/ide-eclipse/titiva_lm4f120/platformio.ini +++ b/examples/ide-eclipse/titiva_lm4f120/platformio.ini @@ -1,8 +1,23 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:launchpad_lm4f120] platform = titiva framework = energia board = lplm4f120h5qr -targets = upload diff --git a/examples/timsp430-native-blink/platformio.ini b/examples/timsp430-native-blink/platformio.ini index e1343405..74e9155d 100644 --- a/examples/timsp430-native-blink/platformio.ini +++ b/examples/timsp430-native-blink/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:launchpad_msp430g2] platform = timsp430 diff --git a/examples/titiva-native-blink/platformio.ini b/examples/titiva-native-blink/platformio.ini index 7e915752..e4c123dd 100644 --- a/examples/titiva-native-blink/platformio.ini +++ b/examples/titiva-native-blink/platformio.ini @@ -1,5 +1,21 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# + +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload [env:launchpad_lm4f120] platform = titiva diff --git a/examples/wiring-blink/platformio.ini b/examples/wiring-blink/platformio.ini index 096d1349..a02c950d 100644 --- a/examples/wiring-blink/platformio.ini +++ b/examples/wiring-blink/platformio.ini @@ -1,19 +1,34 @@ -# Copyright (C) Ivan Kravets -# See LICENSE for details. +# +# Project Configuration File +# +# A detailed documentation with the EXAMPLES is located here: +# http://docs.platformio.org/en/latest/projectconf.html +# -[env:arduino_pro5v] +# A sign `#` at the beginning of the line indicates a comment +# Comment lines are ignored. + +# Simple and base environment +# [env:mybaseenv] +# platform = %INSTALLED_PLATFORM_NAME_HERE% +# framework = +# board = +# +# Automatic targets - enable auto-uploading +# targets = upload + +[env:arduino_uno] platform = atmelavr framework = arduino -board = pro16MHzatmega168 -upload_port = /dev/tty.SLAB_USBtoUART +board = uno [env:launchpad_msp430g2] platform = timsp430 framework = energia board = lpmsp430g2553 -[env:launchpad_lm4f120] +[env:launchpad_tm4c1230c3pm] platform = titiva framework = energia -board = lplm4f120h5qr -build_flags = "-DLED_PIN=GREEN_LED" +board = lptm4c1230c3pm +build_flags = -DLED_PIN=GREEN_LED diff --git a/examples/wiring-blink/src/main.c b/examples/wiring-blink/src/main.cpp similarity index 100% rename from examples/wiring-blink/src/main.c rename to examples/wiring-blink/src/main.cpp