Sandeep Mistry
05be7ce395
Port #4667 to SAM core
2016-07-18 15:10:09 -04:00
Sandeep Mistry
98134a4aee
Merge pull request #4718 from mattb5906/new-feature/stream-timeout-get-4680
...
Add getTimeout accessor method.
2016-07-18 14:18:59 -04:00
Sandeep Mistry
f49c7ae3de
Make String::move of an invalidated String result in an invalidated String
2016-07-12 17:29:13 -04:00
Arturo Guadalupi
e90cf55143
Merge pull request #5018 from sandeepmistry/sam-SerialUSB.availableForWrite
...
SAM: Add Serial_::availableForWrite
2016-07-07 18:12:27 +02:00
Cristian Maglie
b599c4d694
Update revision log. Made samd/WString.h identical again to avr version.
2016-06-28 21:00:09 +02:00
Christopher Andrews
0e8904350d
Modified begin() & end() for read/write
...
begin() and end() only allowed read access, these changes now allow both.
2016-06-28 20:58:38 +02:00
Sandeep Mistry
d69c372986
Add Serial_::availableForWrite
2016-06-06 10:13:18 -04:00
jantje
43a8c3868e
fix for #4993
2016-05-29 16:00:16 +02:00
Cristian Maglie
9492d5ee05
Removed extra whitespaces in WString.h
2016-04-20 20:30:24 +02:00
Cristian Maglie
1c76ee9d7c
Added string iterator in sam core.
...
See #2179
2016-04-20 17:07:54 +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
mattb5906
5bfd17f231
Add getTimeout accessor method.
2016-03-18 22:26:37 +00:00
Phil Manofsky
18250aec57
allows use of "myboard.build.pid" in boards.txt
...
3rd party boards that use sam core can have their own USB product ID that is defined in "boards.txt"
2016-03-14 23:20:46 -04:00
Phil Manofsky
4be3e49172
3rd party can use own Product/manufacturer string
...
now "myboard.build.usb_product" and "myboard.build.usb_manufacturer" from a 3rd party board in "boards.txt" are used in source code. if they aren't defined in "boards.txt", default values are used.
2016-03-14 23:16:36 -04:00
Phil Manofsky
f5282f2ce6
allows use of "myboard.build.vid" in boards.txt
...
allows people to create board that depends on sam core to use their own Vendor ID instead of Arduino's
2016-03-14 23:09:26 -04:00
Sandeep Mistry
b7f279610b
Use modulo operator in Print::printNumber
...
Port of @tico-tico’s change in
https://github.com/tico-tico/Arduino/commit/a7454b6b5c59187b95c4224aad87
bb01faa06e85 to SAM core.
2016-03-03 12:00:54 -05:00
Sandeep Mistry
aeec344b21
Set string descriptor length to the string length + 2, and send up to wLength bytes
2016-01-26 17:14:40 -05:00
techpaul
fa0d580846
Compiler Warning UARTClass.cpp and RingBuffer.h correction
2016-01-19 14:26:49 -05:00
Sandeep Mistry
dcfcbefc32
Update indentation
2016-01-18 09:13:29 -05:00
Sandeep Mistry
9759f2cc60
Port AVR Serial_::readBreak() API to SAM core
2016-01-15 12:09:46 -05:00
Sandeep Mistry
86e34b9940
Support receiving a USB CDC SEND_BREAK
2016-01-15 12:05:41 -05:00
Sandeep Mistry
2007b623c9
Add CDC_SEND_BREAK define
2016-01-15 12:05:40 -05:00
Martino Facchin
74c70ba10b
Merge pull request #3524 from facchinm/pins_DUE
...
Due: solve issues with nonstandard pin operations
2016-01-07 10:28:07 +00:00
Arturo Guadalupi
1ad17fb372
Merge pull request #3983 from antodom/pio_handlers
...
PIO[ABCD] handlers improvement using ATSAM3X8E CLZ instruction
2016-01-05 15:07:36 +01:00
Sandeep Mistry
1b63cfa6a4
Cleanup some Stream compiler warnings from #3337
2015-11-23 16:45:29 -05:00
Chris--A
9f8feea8b7
Make protected Stream::parseInt/Float overloads public.
...
Stream::parseInt & Stream::parseFloat previously had protected
overloads which allowed skipping a custom character. This commit
brings this feature to the public interface.
To keep the public API simpler, the single paramter overload remains
protected. However its functionality is available in the public
interface using the two parameter overload.
2015-11-23 15:46:24 -05:00
Chris--A
245b948a27
Add Stream::find(char); to SAM core.
...
This is a feature added to the AVR core here:
ed1b8eb486
It allows using the find method with a single char (#847 ).
2015-11-23 15:46:24 -05:00
Chris--A
7857216e69
This adds control of Stream::parseInt/float lookahead.
...
Its default is SKIP_ALL which reflects previous versions.
However SKIP_NONE, and SKIP_WHITESPACE can refine this behaviour.
A parameter used in the protected overloads of parseInt/Float has been
changed from `skipChar` to `ignore`.
2015-11-23 15:46:24 -05:00
Chris--A
12d0487258
This is a bug fix which prevents parseFloat from proceeding past
...
multiple decimals '.' in the stream. Only one can be accepted for
valid decimal numbers.
2015-11-23 15:46:24 -05:00
Chris--A
24a994019f
This commit improves the parsing capability by allowing decimals only
...
prefixed by an '.' character. Previously the preceeding zero must be
present: '0.'
2015-11-23 15:46:23 -05:00
Sandeep Mistry
435f6790da
Check TXEMPTY flag instead of TXRDY flag on Serial.flush()
...
As suggested by @borisff in #4128 .
2015-11-17 13:21:42 -05:00
Cristian Maglie
f678ad423a
[SAM] Remove useless <cstddef> includes (fix regression)
...
See #4082
2015-11-05 20:07:02 +01:00
Cristian Maglie
b01eda179a
Print not aborting on write failure
...
See #3614
2015-10-26 12:00:47 +01:00
Martino Facchin
775c82bbed
SAM: add iSerial USB field
2015-10-21 16:16:52 +02:00
Antonio C. Domínguez Brito
296c5f0fbf
PIO[ABCD] handlers improvement using ATSAM3X8E CLZ instruction
2015-10-15 09:04:12 +01:00
Martino Facchin
bf609ecc4c
[USB] remove all warnings from SAM USB core
2015-10-12 14:43:24 +02:00
Martino Facchin
b4541209cb
adapt SAM core to PluggableUSB stable API
2015-10-12 14:41:05 +02:00
Cristian Maglie
abe05b90fa
Removed not used PUSB_Begin() (also in SAM)
...
See #3892
2015-09-29 18:50:43 +02:00
Cristian Maglie
953e6fa206
[HID] Removed unused PUSBReturn structure
2015-09-28 17:05:35 +02:00
Martino Facchin
53049046cb
Merge pull request #3864 from facchinm/pulseInLongOVF
...
fix pulseInLong considering overflow
2015-09-25 16:05:35 +02:00
Cristian Maglie
563a7306b9
Fixed another regression in IPAddress.h
...
If the includer tries to inlcude IPAddress.h without first including
WString.h the build will fail.
2015-09-24 15:52:32 +02:00
Martino Facchin
480cd227ea
fix pulseInLong considering overflow
...
fixes #3830
2015-09-21 11:59:20 +02:00
Martino Facchin
606d56b3e5
SAM: fix pulseInLong timeout using micros()
2015-09-21 11:10:33 +02:00
Cristian Maglie
3bd810deb8
Merge branch 'ethernet-dns-fix' of https://github.com/cmaglie/Arduino
2015-09-18 11:30:45 +02:00
Martino Facchin
d9a7b5df41
Merge pull request #3542 from facchinm/plugUSB_sam
...
Add pluggableUSB capabilities to SAM core
2015-09-10 18:18:31 +02:00
Cristian Maglie
e3909b4e2c
Added IPAddress::fromString(....) function
2015-09-09 12:03:29 +02:00
Martino Facchin
a5ad4744b5
fix OUT endpoints
...
was using only lower 8 bits of configuration registers
2015-09-04 10:03:40 +02:00
Matthijs Kooijman
96f7b966bc
Expose serial settings from CDC virtual serial port
...
This allows a sketch to find out the settings chosen by the USB host
(computer) and act accordingly.
Other than reading the DTR flag and checking if the baudrate is 1200,
the regular CDC code doesn't actually use any of these settings.
By exposing these settings to the sketch, it can for example copy them
to the hardware UART, turning the Leonardo into a proper USB-to-serial
device. This can be useful to let the computer directly talk to whatever
device is connected to the hardware serial port (like an XBee module).
The Teensy core already supported these methods. This code was
independently developed, but the method names were chosen to match the
Teensy code, for compatibility (except that `dtr()` and `rtr()` return
`bool`, while the Teensy version return a `uint8_t`).
This change is applied to both the avr and sam cores, which have a very
similar CDC implementation.
2015-07-31 13:40:43 +02:00
Martino Facchin
2acda414aa
port PluggableUSB to sam core
2015-07-17 12:16:38 +02:00
Martino Facchin
a261e6cf7c
remove HID from core
2015-07-17 12:16:09 +02:00