Commit Graph

1103 Commits

Author SHA1 Message Date
Cristian Maglie 99bb4a573f Applied USB CDC updates to robot's core. 2013-07-30 10:39:41 +02:00
Cristian Maglie 4de497b725 Move buffers into USB CDC (look #947 and #1369 for reference) 2013-07-27 12:06:42 +02:00
Cristian Maglie cddc83bb19 Applied HardwareSerial updates to robot's core. 2013-07-26 13:50:34 +02:00
Cristian Maglie 090d53a74e Fixed compile problem for Leonardo after 0bd6a2d20fb9664255b20e0db11dd4586ebe9007 2013-07-26 12:50:17 +02:00
Matthijs Kooijman d1da7ef303 Make private members of HardwareSerial protected
This allows users to create subclasses.

Closes: #947
2013-07-26 12:41:35 +02:00
Matthijs Kooijman 714874dd8c Move buffers into HardwareSerial
This removes the need for doing an extra pointer dereference on every
access to the buffers, shrinking the code by around 100 bytes.

The members for these buffers must be public for now, since the
interrupt handlers also need to access them. These can later be made
private again.

Furthermore, the struct ring_buffer was removed. This allows the all
head and tail pointers to be put into the HardwareSerial struct before
the actual buffers, so the pointers all end up in the first 32 bytes of
the struct that can be accessed using a single instruction (ldd).

References: #947
2013-07-26 12:39:56 +02:00
Matthijs Kooijman a056282246 Use uint8_t for HardwareSerial ringbuffer pointers
Since the buffers aren't bigger than 64 bytes, these values can be
smaller. This saves a few bytes of ram, but also saves around 50 bytes
of program space, since the values can now be loaded using a single
instruction.

To prevent problems when people manually increase the buffer size, a
compile-time check is added.

Closes: #1078
2013-07-26 12:18:56 +02:00
Federico Fissore 1895d696b1 TemperatureWebPanel: widening refresh interval 2013-07-25 14:31:26 +02:00
Cristian Maglie bda85506ea Fixed usb_products on some AVR boards 2013-07-22 12:30:25 +02:00
Fede85 5527c44aa4 WiFi library to the new format 2013-07-19 16:20:34 +02:00
Federico Fissore 452be966bc Bridge: Bridge.begin should wait more before giving up, as other processes may consume linux cpu power 2013-07-19 15:18:55 +02:00
Fede85 f84a4ae1cd Merge remote-tracking branch 'upstream/ide-1.5.x' into ide-1.5.x-library-to-new-format 2013-07-19 13:23:59 +02:00
Federico Fissore 92cb63b843 SpacebrewYun: added new example 2013-07-18 14:07:39 +02:00
Cristian Maglie 43392fb2b4 Added quoting to usb_product key to preserve double quotes.
See #1422.
2013-07-17 14:42:41 +02:00
Angus Gratton ff47a782f5 Remove hardcoded product names (all provided for in boards.txt) 2013-07-17 14:38:05 +02:00
Angus Gratton 0340b90366 Fix whitespace (tabify), oops 2013-07-17 14:37:49 +02:00
Angus Gratton 96286247b6 boards.txt: Refactor the default usb build flags into a generic property in platform.txt 2013-07-17 14:37:39 +02:00
Angus Gratton a33cba585f Allow USB product and manufacturer strings to be supplied in boards.txt 2013-07-17 14:37:29 +02:00
Angelo Scialabba 36cc2c89e7 Bridge: CRC16 being used as CRC 2013-07-15 16:41:17 +02:00
Federico Fissore beb9e08b79 updated temboo examples (added ControlBySMS) 2013-07-15 15:22:50 +02:00
Cristian Maglie 5836db3ddb Merge branch 'ide-1.5.x' into dev-ide-1.5.x-discovery
Conflicts:
	app/src/cc/arduino/packages/uploaders/SerialUploader.java
	app/src/processing/app/Editor.java
	app/src/processing/app/Sketch.java
	app/src/processing/app/debug/Uploader.java
2013-07-14 12:01:03 +02:00
Cristian Maglie 77678f3af1 Merge branch 'master' into ide-1.5.x 2013-07-14 11:51:50 +02:00
Cristian Maglie e565393143 assembly compile recipe is missing (C. A. Church)
Fixes #1457
2013-07-12 21:09:45 +02:00
Federico Fissore bd1e2ab332 File: implemented File.openNextFile() and File.rewindDirectory() 2013-07-11 18:14:49 +02:00
Federico Fissore 61ccf77a7a FileIO.h: removed wrong function declaration 2013-07-11 13:22:52 +02:00
Federico Fissore 40b2da7746 Added File.isDirectory() 2013-07-11 13:06:48 +02:00
Federico Fissore 3ee30f326f updated temboo examples 2013-07-11 11:24:53 +02:00
Cristian Maglie 67d03f1ea4 Updated YunSerialTerminal: added command to shutdown bridge 2013-07-10 20:37:31 +02:00
Cristian Maglie dec517181e Bridge: even more reliable startup 2013-07-10 20:24:16 +02:00
Federico Fissore 3c39763ced updated temboo examples 2013-07-10 09:47:18 +02:00
Federico Fissore f9d79203dc WifiStatus example:updated sketch description 2013-07-09 20:08:17 +02:00
Federico Fissore 95ae8c4a59 temboo examples updated 2013-07-09 20:07:54 +02:00
Federico Fissore acf38a634a updated temboo examples 2013-07-08 15:09:09 +02:00
Federico Fissore 320116c286 Merge branch 'ide-1.5.x-discovery' into dev-ide-1.5.x-discovery 2013-07-07 17:07:32 +02:00
tigoe 4bd034f643 #include Bridge.h in HttpClient 2013-07-06 09:12:01 -04:00
tigoe 7310f8c8ef Corrected file structure on TemperatureWebPanel 2013-07-06 09:11:37 -04:00
tigoe 028d96687c Updated TemperatureWebPanel 2013-07-06 08:20:02 -04:00
tigoe 2a3701bcc1 Updated TemperatureWebPanel 2013-07-06 08:10:13 -04:00
tigoe f8bf2ff924 Added TemperatureWebPanel example 2013-07-06 07:48:10 -04:00
Federico Fissore 0576ca8022 forgot to include YunClient 2013-07-05 19:14:51 +02:00
Federico Fissore d11a723abb delete OLDYahooWeather example
Updated pretty-wifi-info-lua path in ShellCommands and WifiStatus examples
Tried to make a sense of HttpClient example by making it fetch http://arduino.cc/asciilogo.txt
2013-07-05 15:06:37 +02:00
Federico Fissore 26010e7eac renamed two lua scripts 2013-07-05 13:50:00 +02:00
Federico Fissore e9453ceae5 introducing Temboo library 2013-07-05 11:55:38 +02:00
Cristian Maglie cc56f7666d YunServer: added write() method 2013-07-04 17:39:14 +02:00
Cristian Maglie d1db9d9810 Refactored YunClient and YunServer classes.
Added YunClient.connect() methods.
2013-07-04 17:15:52 +02:00
Federico Fissore fdfe4001d1 BootWatcher removed
BridgeNew is the new Bridge
2013-07-04 16:33:10 +02:00
Fede85 cfebeec566 Esplora library to new format 2013-07-04 15:54:30 +02:00
Fede85 8df1ed0ad2 updated Firmata library to version 2.3.5 and moved to the new library format 2013-07-04 13:29:15 +02:00
Fede85 f40a546151 SoftwareSerial library to the new format 2013-07-03 23:18:21 +02:00
Fede85 21ca174dbe GSM library to the new format and some strings adaptations 2013-07-03 22:55:18 +02:00