Skip to content

Actualizar #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import cc.arduino.contributions.SignatureVerifier;
import cc.arduino.contributions.filters.BuiltInPredicate;
import cc.arduino.contributions.filters.InstalledPredicate;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.mrbean.MrBeanModule;
Expand Down Expand Up @@ -87,8 +89,13 @@ public void parseIndex() throws Exception {
File[] indexFiles = preferencesFolder.listFiles(new TestPackageIndexFilenameFilter(new PackageIndexFilenameFilter(Constants.DEFAULT_INDEX_FILE_NAME)));

for (File indexFile : indexFiles) {
ContributionsIndex contributionsIndex = parseIndex(indexFile);
mergeContributions(contributionsIndex, indexFile);
try {
ContributionsIndex contributionsIndex = parseIndex(indexFile);
mergeContributions(contributionsIndex, indexFile);
} catch (JsonProcessingException e) {
System.err.println(I18n.format(tr("Skipping contributed index file {0}, parsing error occured:"), indexFile));
System.err.println(e);
}
}

List<ContributedPackage> packages = index.getPackages();
Expand Down
5 changes: 5 additions & 0 deletions arduino-core/src/processing/app/i18n/Resources_en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,11 @@ msgstr "Sketchbook location:"
msgid "Sketchbook path not defined"
msgstr "Sketchbook path not defined"

#: ../../../../../arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java:96
#, java-format
msgid "Skipping contributed index file {0}, parsing error occured:"
msgstr ""

#: ../../../../../app/src/processing/app/Preferences.java:185
msgid "Slovak"
msgstr "Slovak"
Expand Down
4 changes: 4 additions & 0 deletions arduino-core/src/processing/app/i18n/Resources_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,10 @@ Sketchbook\ location\:=Sketchbook location\:
#: ../../../processing/app/BaseNoGui.java:428
Sketchbook\ path\ not\ defined=Sketchbook path not defined

#: ../../../../../arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java:96
#, java-format
!Skipping\ contributed\ index\ file\ {0},\ parsing\ error\ occured\:=

#: ../../../../../app/src/processing/app/Preferences.java:185
Slovak=Slovak

Expand Down
1 change: 0 additions & 1 deletion build/arduino-builder-linux32-1.3.14.tar.bz2.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/arduino-builder-linux32-1.3.15.tar.bz2.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d192fdadce5298f02b8fd5d310f0d8c3c359e41f
1 change: 0 additions & 1 deletion build/arduino-builder-linux64-1.3.14.tar.bz2.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/arduino-builder-linux64-1.3.15.tar.bz2.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5c78ef903c9d45e89f84a77673bb6582712e982b
1 change: 0 additions & 1 deletion build/arduino-builder-macosx-1.3.14.tar.bz2.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/arduino-builder-macosx-1.3.15.tar.bz2.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
708692dfc3af793170cdc964367abc628fcf0811
1 change: 0 additions & 1 deletion build/arduino-builder-windows-1.3.14.zip.sha

This file was deleted.

1 change: 1 addition & 0 deletions build/arduino-builder-windows-1.3.15.zip.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c504cf4bd956325e7c86982ff06990a976ae5867
2 changes: 1 addition & 1 deletion build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

<property name="portable" value="false" />

<property name="ARDUINO-BUILDER-VERSION" value="1.3.14" />
<property name="ARDUINO-BUILDER-VERSION" value="1.3.15" />

<!-- Libraries required for running arduino -->
<fileset dir=".." id="runtime.jars">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
It looks for an ASCII string of comma-separated values.
It parses them into ints, and uses those to fade an RGB LED.

Circuit: Common-anode RGB LED wired like so:
* Red cathode: digital pin 3
* Green cathode: digital pin 5
* blue cathode: digital pin 6
* anode: +5V
Circuit: Common-Cathode RGB LED wired like so:
* Red anode: digital pin 3
* Green anode: digital pin 5
* Blue anode: digital pin 6
* Cathode : GND

created 13 Apr 2012
by Tom Igoe

modified 14 Mar 2016
by Arturo Guadalupi

This example code is in the public domain.
*/
Expand Down
6 changes: 6 additions & 0 deletions build/shared/revisions.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
ARDUINO 1.6.9

[ide]
* Catch and report errors during parsing contributed index files
* Fixed IDE version color on about dialog box. Thanks @ivanebernal

[core]
* sam: Allow 3rd party boards that depend on SAM core to use their own
USB vid/pid and manufacturer/product strings. Thanks @philmanofsky.

[libraries]

ARDUINO 1.6.8 - 2016.03.09
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The latest version of this library can always be found at
// Statics
//
SoftwareSerial *SoftwareSerial::active_object = 0;
char SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
uint8_t SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
volatile uint8_t SoftwareSerial::_receive_buffer_tail = 0;
volatile uint8_t SoftwareSerial::_receive_buffer_head = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SoftwareSerial : public Stream
uint16_t _inverse_logic:1;

// static data
static char _receive_buffer[_SS_MAX_RX_BUFF];
static uint8_t _receive_buffer[_SS_MAX_RX_BUFF];
static volatile uint8_t _receive_buffer_tail;
static volatile uint8_t _receive_buffer_head;
static SoftwareSerial *active_object;
Expand Down
10 changes: 4 additions & 6 deletions hardware/arduino/avr/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@ name=Arduino AVR Boards
version=1.6.10

# AVR compile variables
# ---------------------
# ---------------------

compiler.warning_flags=-w
compiler.warning_flags.none=-w
compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra

# Default "compiler.path" is correct, change only if you want to overidde the initial value
# Default "compiler.path" is correct, change only if you want to override the initial value
compiler.path={runtime.tools.avr-gcc.path}/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp
Expand All @@ -37,7 +35,7 @@ compiler.elf2hex.cmd=avr-objcopy
compiler.ldflags=
compiler.size.cmd=avr-size

# This can be overriden in boards.txt
# This can be overridden in boards.txt
build.extra_flags=

# These can be overridden in platform.local.txt
Expand Down Expand Up @@ -113,7 +111,7 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb


# USB Default Flags
# Default blank usb manufacturer will be filled it at compile time
# Default blank usb manufacturer will be filled in at compile time
# - from numeric vendor ID, set to Unknown otherwise
build.usb_manufacturer="Unknown"
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
2 changes: 2 additions & 0 deletions hardware/arduino/sam/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ arduino_due_x_dbg.upload.wait_for_upload_port=false
arduino_due_x_dbg.upload.native_usb=false
arduino_due_x_dbg.build.mcu=cortex-m3
arduino_due_x_dbg.build.f_cpu=84000000L
arduino_due_x_dbg.build.usb_manufacturer="Arduino LLC"
arduino_due_x_dbg.build.usb_product="Arduino Due"
arduino_due_x_dbg.build.board=SAM_DUE
arduino_due_x_dbg.build.core=arduino
Expand All @@ -35,6 +36,7 @@ arduino_due_x.upload.wait_for_upload_port=true
arduino_due_x.upload.native_usb=true
arduino_due_x.build.mcu=cortex-m3
arduino_due_x.build.f_cpu=84000000L
arduino_due_x.build.usb_manufacturer="Arduino LLC"
arduino_due_x.build.usb_product="Arduino Due"
arduino_due_x.build.board=SAM_DUE
arduino_due_x.build.core=arduino
Expand Down
12 changes: 8 additions & 4 deletions hardware/arduino/sam/cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ extern const PinDescription g_APinDescription[] ;
#include "watchdog.h"

// USB Device
#define USB_VID 0x2341 // arduino LLC vid
#define USB_PID_LEONARDO 0x0034
#define USB_PID_MICRO 0x0035
#define USB_PID_DUE 0x003E
#ifndef USB_VID
#define USB_VID 0x2341 // arduino LLC vid
#endif

#ifndef USB_PID
#define USB_PID 0x003E // arduino Due pid
#endif

#include "USB/USBDesc.h"
#include "USB/USBCore.h"
#include "USB/USBAPI.h"
Expand Down
17 changes: 3 additions & 14 deletions hardware/arduino/sam/cores/arduino/USB/USBCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,16 @@ const uint16_t STRING_LANGUAGE[2] = {
};

#ifndef USB_PRODUCT
// Use a hardcoded product name if none is provided
#if USB_PID == USB_PID_DUE
#define USB_PRODUCT "Arduino Due"
#else
#define USB_PRODUCT "USB IO Board"
#endif
#endif

const uint8_t STRING_PRODUCT[] = USB_PRODUCT;

#if USB_VID == 0x2341
# if defined(USB_MANUFACTURER)
# undef USB_MANUFACTURER
# endif
# define USB_MANUFACTURER "Arduino LLC"
#elif !defined(USB_MANUFACTURER)
// Fall through to unknown if no manufacturer name was provided in a macro
# define USB_MANUFACTURER "Unknown"
#ifndef USB_MANUFACTURER
#define USB_MANUFACTURER "Arduino LLC"
#endif

const uint8_t STRING_MANUFACTURER[12] = USB_MANUFACTURER;
const uint8_t STRING_MANUFACTURER[] = USB_MANUFACTURER;

#ifdef CDC_ENABLED
#define DEVICE_CLASS 0x02
Expand Down
2 changes: 1 addition & 1 deletion hardware/arduino/sam/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ compiler.ldflags=
compiler.size.cmd=arm-none-eabi-size
compiler.define=-DARDUINO=

# this can be overriden in boards.txt
# This can be overridden in boards.txt
build.extra_flags=

# These can be overridden in platform.local.txt
Expand Down