Commit Graph

6186 Commits

Author SHA1 Message Date
Martino Facchin 643f8479e3 Restore serial.port.iserial field
uses 2893c2d643
2016-04-08 17:58:01 +02:00
Cristian Maglie 60b169fbe9 Merge branch 'ctrlDeleteBehavior' of https://github.com/avargas-nearsoft/Arduino 2016-04-07 11:32:46 +02:00
Cristian Maglie aa68acd6c4 Update changelog 2016-04-06 18:48:37 +02:00
Martino Facchin 668f38b228 update revision log 2016-04-06 18:30:05 +02:00
Martino Facchin f6880fe617 Merge pull request #4792 from facchinm/solve_serial_windows
Rework serial ports handling
2016-04-06 18:03:45 +02:00
Martino Facchin bf11c7f395 avoid queuing a lot of threads while waiting for platform 2016-04-06 17:52:24 +02:00
Martino Facchin 72c337d88d avoid losing the sketch serial port on 1200bps touch 2016-04-06 17:51:48 +02:00
Martino Facchin a6a623658d update libListSerials to 1.1.0 2016-04-06 17:51:48 +02:00
Martino Facchin 4c901d3f9f [AVR] Discover newer bootloader at runtime
Replaces #4280, only checks for the bootloader once

Tested with Hoodloader2, should work with every LUFA-derived bootloader released after 2014 (.apitable_signatures section must be placed at end of the flash)

BootloaderAPITable.S :

.global BootloaderAPI_Signatures
BootloaderAPI_Signatures:

    .long BOOT_START_ADDR ; Start address of the bootloader
    .word 0xDF00 ; Signature for the CDC class bootloader
    .word 0xDCFB ; Signature for a LUFA class bootloader

makefile:

BOOT_API_LD_FLAGS    += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures,  BootloaderAPI_Signatures,  8)
2016-04-06 17:41:06 +02:00
Arturo Vargas a70bab3ea0 Add suport for OSX (ALT+DELETE) 2016-04-06 08:25:39 -07:00
Martino Facchin c28c854936 Filter examples based on contributed libraries by architecture
Solves #4762
2016-04-06 14:41:12 +02:00
Cristian Maglie f74afc4ad9 Remove incorrect Ctrl+K / Ctrl+W bindings
for a better explanation see @nopdotcom comment here:
https://github.com/arduino/Arduino/pull/4743#issuecomment-201447876
2016-04-06 12:18:45 +02:00
Jay Carlson 02914d79b9 Add more of OS X's native Emacs keybindings
OS X supports many simple Emacs keybindings in native text fields. (It
can do this because the system UI uses Cmd instead of Ctrl as its main
modifier key.) Add bindings to functions which already exist in
DefaultEditorKit.

I have a Ctrl-k (cut to end of line) implementation, but it is an
additional static RecordableTextAction class. I have not included it.
2016-04-06 12:17:58 +02:00
Cristian Maglie 050e8ba304 Merge branch 'cut/copyEnabled' of https://github.com/avargas-nearsoft/Arduino 2016-04-06 12:09:04 +02:00
Bradley Luke Totaro 1e461ce5fb Update SoftwareSerial.cpp 2016-04-05 15:10:46 -04:00
Sandeep Mistry c2c3f4623c Correct NUM_DIGITAL_PINS to include analog pins 2016-04-05 12:11:06 -04:00
Cristian Maglie e9ac544f23 Merge branch 'sam-analogInputToDigitalPin' of https://github.com/sandeepmistry/Arduino 2016-04-05 17:19:15 +02:00
Sandeep Mistry 9795f2d23a Sync avr/pgmspace.h entries with SAMD core
Some entries were missing.
2016-04-05 09:33:06 -04:00
Arturo Vargas 3efcc9ec48 Change the CTRL+DELETE behavior to restore the next word 2016-04-04 14:42:40 -07:00
Sandeep Mistry faf591339a Add PIN_* defines to AVR variants 2016-04-04 15:41:38 -04:00
Sandeep Mistry ea7fbdec6b Port SDA and SCL symbols to SAM 2016-04-04 15:03:14 -04:00
Sandeep Mistry aabdb852b5 Port analogInputToDigitalPin macro to SAM core 2016-04-04 14:29:07 -04:00
Sandeep Mistry 40d46d57a2 recipe.ar.pattern backwards compatibility
Port of https://github.com/arduino/Arduino/pull/4737
2016-04-04 14:12:56 -04:00
Sandeep Mistry e8cb0aeea3 Replace force linking "{build.path}/core/syscalls_sam3.c.o" with -u flags 2016-04-04 14:10:23 -04:00
Sandeep Mistry 509721213b Add comment for archive_file_path 2016-04-04 13:27:47 -04:00
Sandeep Mistry 6241459627 Merge pull request #4737 from per1234/recipe_ar_pattern-backwards-compatibility
AVR recipe.ar.pattern backwards compatibility
2016-04-04 13:26:05 -04:00
Cristian Maglie b0f33e78f8 update revision log 2016-04-04 16:58:58 +02:00
Ivan Esparza 9c583829de Fixes issue 4440 2016-04-04 16:53:46 +02:00
Sandeep Mistry ed9240d5e7 Merge pull request #4716 from asukiaaa/master
Corrected comments of rx and tx in a SoftwareSerial example.
2016-04-04 10:00:47 -04:00
Cristian Maglie 0c453355f4 Merge branch 'fix-annoying-popup' 2016-04-04 13:34:14 +02:00
Cristian Maglie 8d7ee63c70 Autoclose notification popup after 10 seconds. 2016-04-04 13:30:42 +02:00
Martino Facchin 84fdb0c0c3 Remove stray debug print 2016-04-01 17:05:54 +02:00
Martino Facchin 42ff604f1e Fix NPE when replacing unexisting strings 2016-04-01 12:52:19 +02:00
Martino Facchin 34b0813530 try to avoid NPE if two threads modify library list 2016-04-01 12:39:01 +02:00
Martino Facchin 0584b2c2bd initialize the error string as empty (not null) 2016-04-01 12:07:15 +02:00
Martino Facchin 84ebc68af7 Handle case with empty error message 2016-04-01 12:06:32 +02:00
Martino Facchin 63de1cccfb Avoid generating an exception if upload fails
The current method of reporting upload errors is based on an exoteric combination of exceptions which makes return error code useless
The Uploader.java message() implementation is too avrdude-dependant to allow easy portability since the upload tools are becoming a lot and very different

With this commit we try to avoid exceptions and only use the external uploader's exit code to decide the status bar message.
The message can be:
- the last line containing "error" string (any case) or
- the usual avrdude message parsing (to keep compatibility with translations)

Needs testing with all platform and all supported upload tools
2016-04-01 12:06:21 +02:00
Martino Facchin 8f524e14a5 fix exception if remote upload fails on newer ssh client 2016-04-01 12:05:57 +02:00
Martino Facchin c5d88f09ae add a flag to pause polling for serial port 2016-04-01 11:38:54 +02:00
Martino Facchin ea405ea534 avoid NPE for synchronization issues on board list 2016-04-01 11:38:54 +02:00
Martino Facchin ad74288e5a Fix randomic NPE when pressing menus during operations 2016-04-01 11:38:54 +02:00
Martino Facchin 52ef55380d avoid NPE if serial monitor is waiting too long for opening 2016-04-01 11:38:53 +02:00
Martino Facchin 821c665460 Change message if requiring infos from Network port 2016-04-01 11:38:53 +02:00
Martino Facchin e23bbf76c1 avoid NPE in CLI mode (boardInfo not yet initialized) 2016-04-01 11:38:53 +02:00
Martino Facchin 243fc68763 Rework Serial ports handling and add Board info menu
This commit introduces the concept of stateful board list (vs. original stateless) and board serial number.

The board is now an "entity" composed by the triplet port/vid/pid. These informations come from libListSerial "light" function. When the board list changes, it triggers a request for the additional infos to libListSerial. These information contains the serial number of the boards.

These brings a lighter and faster scanning process. Some logic has been introduced to handle a board with the S/N only exposed in the bootloader (like 32u4).
In this case the disappearing port acquires the bootloader's S/N

A menu (under Ports menu) shows the currently connected port info and can be used for bugreporting
2016-04-01 11:38:53 +02:00
Martino Facchin c11ceb7dae Fix NPE when replacing unexisting strings 2016-04-01 11:38:53 +02:00
Martino Facchin 6d5597b070 Avoid multiple concurrent compile/upload operations
Disable Compile/Run buttons as they get press, and reenable only on function exit.
The launched upload process has now a 2minutes timeout before being terminated forcefully.
10 second after pressing "Upload" the button comes pressable again, but this time the previous upload command gets killed explicitely
2016-04-01 11:38:52 +02:00
Martino Facchin 629509f302 Merge pull request #4515 from sandeepmistry/wait-for-upload-port-timeout-bump
Increase wait for upload port timeout to 5s on all platforms
2016-04-01 11:15:57 +02:00
Martino Facchin b99ab40ba2 Enable links to directly open Lib/Board manager
If a sketch contains a link to http://librarymanager/${dropdown}#${filter} or http://boardmanager/${dropdown}#${filter} (for example http://librarymanager/All#OneWire) Library or Board manager will be opened applying the secified filters
2016-04-01 10:55:35 +02:00
Martino Facchin a329731525 use hi-res icons for serial monitor and plotter
fixes #4701
2016-04-01 10:55:04 +02:00