Commit graph

35 commits

Author SHA1 Message Date
ladyada
af9e214f6b Merge remote-tracking branch 'upstream/master'
Conflicts:
	README.md
	boards.txt
	cores/arduino/USB/USBCore.cpp
	platform.txt
	variants/arduino_zero/variant.cpp
2017-01-15 17:17:21 -05:00
Sandeep Mistry
b2462a5a1a Remove line state check in Serial_::write
It’s no longer needed with the timeout mechanism in USBCore.
2016-08-31 11:21:40 -04:00
Cristian Maglie
4691ef4ba0 USB: Added optimized Stream::readBytes for EP OUT handler
This bypass the generic (but inefficient) implementation of Stream::readBytes
and uses an optimized version of readBytes than can do efficient multi-byte reads.
2016-08-24 12:50:37 +02:00
Cristian Maglie
7d37753904 USB-CDC: OUT EP is now handled with a custom EPHandler 2016-08-24 01:04:58 +02:00
Cristian Maglie
19ae0eb4d4 USB-CDC: access to rx buffer is now ISR-protected 2016-08-24 01:04:58 +02:00
Cristian Maglie
9f678cb416 USB-CDC: Refactored EP OUT handling 2016-08-24 01:04:58 +02:00
Sandeep Mistry
e4f7bf513d Add private availableForStore method, and use in Serial_::accept 2016-08-24 01:04:58 +02:00
ladyada
fed20f6e49 Fix for PWM on many pins, now works on: 5, 6, 9, 10, 11, 12, 13, 15 (A1), 16 (A2)
Merge remote-tracking branch 'upstream/master'

Conflicts:
	cores/arduino/wiring_analog.c
	platform.txt
2016-07-25 00:17:37 -04:00
Cristian Maglie
0d644d73e9 Removed unused code 2016-07-20 12:27:00 +02:00
Arturo Guadalupi
5b2c475376 Merge pull request #148 from sandeepmistry/SerialUSB.availableForWrite
Add Serial_::availableForWrite()
2016-07-07 18:12:49 +02:00
Sandeep Mistry
97e9c26fd7 Add Serial_::availableForWrite 2016-06-06 10:00:21 -04:00
Sandeep Mistry
8d0c167462 Change return value of Serial_::write to be the # of bytes written
Previous 0 was always returned.
2016-05-27 11:22:49 -04:00
ladyada
71c6f9d68b align back to mainline (and put in missing Serial5) - not sure if USB serial LEDs were causing hangups on 1200baud bumps? :/ 2016-05-19 23:34:33 -04:00
ladyada
a2024c79ea Merge branch 'master' of https://github.com/arduino/ArduinoCore-samd into upstreammerge_150304
Conflicts:
	boards.txt
	cores/arduino/USB/CDC.cpp
	libraries/USBHost/src/Usb.cpp
	platform.txt
2016-03-04 14:14:42 -05:00
Sandeep Mistry
610a937ed1 Only re-enable IRQ if PRIMASK was 0 before disabling IRQ 2016-02-18 20:18:00 +01:00
ladyada
440afc570d add USB CDC RX & TX LEDs with 10ms minimum on time, tested 2016-02-14 15:37:58 -05:00
Sandeep Mistry
3ea315a0e3 Port some AVR Serial_ (SerialUSB) API's over 2016-01-15 09:13:34 -05:00
ladyada
5c7319f52f make it so native USB is Serial 2016-01-13 15:59:44 -05:00
Martino Facchin
6d2f3db02a adapt USB core to PluggableUSB 2015-09-16 12:59:53 +02:00
Cristian Maglie
a6fa8329aa Fixed a lot of warnings in USBHost 2015-09-09 15:43:25 +02:00
Martino Facchin
ff8bc8996a use different EP for CDC IN and OUT 2015-09-09 15:42:05 +02:00
Jean-Christophe BUDA
ffd05f251a Fix to USBDevice blocking-send 2015-09-09 15:42:05 +02:00
Martino Facchin
9d0d5d6158 fix back-to-back SerialUSB test 2015-09-09 15:42:05 +02:00
Cristian Maglie
3ddf463e89 USBDevice: added 'full' flag to USB buffer
This way all the 64 bytes available can be filled up
2015-09-09 15:42:05 +02:00
Cristian Maglie
44174a0ae6 USB device refactoring (WIP) 2015-09-09 15:42:05 +02:00
Cristian Maglie
889332c3df Revert " Fixed incorrect CDC-USB buffer handling"
This reverts commit bc7115b104428f9bea4fdfa1b6af245085f6f542.
2015-03-13 13:23:36 +01:00
Cristian Maglie
d181360425 Fixed incorrect CDC-USB buffer handling 2015-03-06 15:11:56 +01:00
Cristian Maglie
52237c845b CDC-ACM bugfix 2015-02-13 17:17:06 +01:00
Cristian Maglie
b11b8e8bf3 Fix on USB-CDC 1200bps-touch reset condition
Some serial libraries opens the serial port BEFORE setting the baudrate.
This patch allows finer control on the reset condition, since it's
checked on open/close (DTR) AND on serial port parameter change.
2014-08-16 08:49:59 +02:00
Thibaut VIARD
ae42fd1167 Adding license in files, update platform.txt 2014-07-25 17:11:29 +02:00
Jean-Christophe BUDA
cdfd4c27bc modify usb initialization, add it in main.cpp
o Please enter the commit message for your changes. Lines starting
2014-07-01 13:13:52 +02:00
Jean-Christophe BUDA
ecfe0c3e3d correct include missing in -I 2014-06-25 18:21:46 +02:00
Jean-Christophe BUDA
5873b030b0 USB device stack HID CDC validated 2014-06-20 17:28:31 +02:00
Thibaut VIARD
a48627b3e5 Bringing USB files in name of JcB 2014-05-12 20:09:09 +02:00
Thibaut VIARD
973ccc47d8 Adding first files, not Zero specific 2014-04-15 14:46:03 +02:00