Commit graph

197 commits

Author SHA1 Message Date
Sandeep Mistry
a15d190ada Add support for updating sketches from an SD card
Via 2nd stage boot code that checks SD card for UPDATE.bin
2017-02-15 15:31:18 -05:00
agdl
8e8efc219a Added MKRZero 2016-12-12 08:11:31 -05:00
Sandeep Mistry
8b1024e9bd Make return codes consistent with other Arduino API's 2016-12-07 09:18:25 -05:00
Sandeep Mistry
5a033fed7d Add I2S support 2016-11-25 09:37:26 -05:00
Sandeep Mistry
e77ae8fe8e Optimize SPI transfers 2016-11-17 17:17:05 -05:00
Arturo Guadalupi
fbbc70ead2 Update library.properties
Removed DUE and added MKR1000
2016-09-02 15:49:08 +02:00
Sandeep Mistry
66990f9e57 Remove some stale commented out code 2016-07-21 16:03:36 -04:00
Sandeep Mistry
e5166fb922 Use TX buffer for slave writes, empty on master read mode + DRDY IRQ 2016-06-17 09:55:49 -04:00
Sandeep Mistry
f3dac4709f Port Wire.write(...) overloads
Port of
https://github.com/arduino/Arduino/commit/6a6ed3d10ad1470283d7771906ce81
ad97fa06f0
2016-04-19 17:09:07 +02:00
Cristian Maglie
aa52b4831a USBHost: fixed missing include (breaks build on MKR1000) 2016-03-31 12:32:19 +02:00
Sandeep Mistry
de71470f06 Clear RX buffer in TwoWire::requestFrom before reading 2016-03-30 17:38:04 +02:00
Cristian Maglie
261c375c4f USBHost: removed wrong init() calls
USBHost used to have an init() method that now is incorporated in
Init(). The leftover init() calls in the library were calling
the init() function in the variant files instead (that has nothing
to do with the USBHost library).

Removing the calls to init() fix it.

Fix #115
2016-02-18 20:11:57 +01:00
bbx10node
0be91985fd Add ASCII control codes
0x00 CTRL-@ through 0x1F CTRL-_

Also return ASCII codes for keys: ESCAPE, DELETE, TAB, and BACKSPACE keys.
Return correct code for ENTER and keypad ENTER keys.
2016-02-18 19:46:43 +01:00
bbx10node
9d2b779fee Replace assignments to epAttribs
https://github.com/felis/USB_Host_Shield_2.0/pull/185
2016-02-18 19:46:43 +01:00
bbx10node
31a647e5ad Fix 10 second blocking delay
Affects all devices that do IN transfers.
2016-02-18 19:46:43 +01:00
Charles Cross
5c19b45275 Followed the precedent in SPI and Wire libraries, adding #ifdefs to conditionally declare Wire interface externs 2016-01-19 14:41:34 -08:00
Charles Cross
e53584c2c0 Added externs for additional Wire instances 2016-01-19 13:19:51 -08:00
Cristian Maglie
2a6d856097 Merge branch 'usbshiftkey' of https://github.com/bbx10/ArduinoCore-samd 2016-01-19 15:18:16 +01:00
Sandeep Mistry
2211cf1f55 Undo accidental change to slave_sender example 2016-01-13 11:58:18 -05:00
Sandeep Mistry
28b979b053 Change extension of Wire examples, .pde to .ino 2016-01-13 11:55:33 -05:00
Cristian Maglie
f763660671 Merge branch 'wire-master-repeated-starts' of https://github.com/sandeepmistry/ArduinoCore-samd 2016-01-13 11:31:38 +01:00
bbx10node
69cf567541 USB keyboard right shift key was ignored 2016-01-06 11:35:00 -10:00
bbx10node
17dfd5dc6a Fix USB transfer type identification
Bulk endpoints were incorrectly shown as Interrupt.
2015-12-14 09:31:29 -10:00
Cristian Maglie
ff1aad335f Remove unused keywords from Wire library keywords.txt
See https://github.com/arduino/Arduino/pull/4225
2015-11-30 10:22:48 +01:00
Cristian Maglie
04bda59c48 Merge branch 'Wire-slave' of https://github.com/sandeepmistry/ArduinoCore-samd 2015-11-18 19:01:26 +01:00
Sandeep Mistry
a2949d505f Wait for idle or bus owner state in startTransmissionWIRE instead of storing repeated start state. 2015-11-18 09:19:04 -05:00
Sandeep Mistry
9977fa3467 Make white space consistent 2015-11-17 17:34:25 -05:00
William
b993249630 Add I2C Repeated Start Capability
Adjust requestFrom, endTransmission, and startTransmissionWire to handle
repeated starts
2015-11-17 16:00:54 -05:00
Cristian Maglie
1ce4a2f012 Made multiple Wire instances fully configurable from variant 2015-11-17 17:13:14 +01:00
Cristian Maglie
4568471543 Made multiple SPI instances fully configurable from variant 2015-11-17 17:13:07 +01:00
Sandeep Mistry
82ddeb0eef Add SPI. transfer16(...) API 2015-11-04 15:06:02 -05:00
Cristian Maglie
98f9285479 Update HID API 2015-11-03 15:21:58 +01:00
Paolo Paolucci
777be8fba8 Add category on library.properties files 2015-10-31 17:20:08 +01:00
Martino Facchin
86fa94fdc7 PUSB: add iSerial USB field 2015-10-21 16:48:13 +02:00
Cristian Maglie
ba66285747 Merge remote-tracking branch 'facchinm/pluggable-hid' into HEAD 2015-10-12 17:21:30 +02:00
Martino Facchin
02945cc78e [PluggableUSB] port to stable API 2015-10-12 15:28:07 +02:00
Cristian Maglie
0f4b0d8118 Merge branch 'i2c_scan_fix' of https://github.com/facchinm/ArduinoCore-samd into HEAD 2015-09-29 14:47:53 +02:00
Paolo Paolucci
9656a761ab Add function setClock on Wire library 2015-09-23 10:24:39 +02:00
Sandeep Mistry
9a7f2be3b7 Wire slave sender working with stops and with repeated starts 2015-09-22 17:50:45 -04:00
Sandeep Mistry
ab2ed909b3 Wire slave receiver with repeated starts working 2015-09-22 14:55:39 -04:00
Martino Facchin
81475510fa fix pluggableUSB OUT packets 2015-09-16 12:59:53 +02:00
Martino Facchin
6d2f3db02a adapt USB core to PluggableUSB 2015-09-16 12:59:53 +02:00
Martino Facchin
3972d36c18 Wire: allow scanning bus via beginTransmission-endTransmission 2015-09-10 16:40:33 +02:00
Cristian Maglie
a6fa8329aa Fixed a lot of warnings in USBHost 2015-09-09 15:43:25 +02:00
Jean-Christophe BUDA
fe4d51f851 Update for host and Device USB 2015-09-09 15:42:06 +02:00
Sandeep Mistry
4efe39eb49 Changes to get Wire slave receiver working 2015-09-08 17:47:30 -04:00
Sandeep Mistry
777a110400 implement Wire.end() for SAMD core 2015-08-25 10:48:54 -04:00
Cristian Maglie
5c6890c6c4 Merge branch 'wire-fixes' of https://github.com/cmaglie/ArduinoCore-samd 2015-08-19 17:44:33 +02:00
Cristian Maglie
024e089d66 [Wire] simplified coding unnecessarily complex (hfvogt)
In the wire library there are several functions where
an unnecessarily complex coding has been used:

  - endTransmission: the availability of data is already
    checked in while(...), therefore need not be checked
    again in the loop.
  - requestFrom: the for-loop has a predefined and fixed
    number of loops. Therefore a check whether the last
    element has been reached is unnecessary and does not
    add any benefit.

Fixes #20
2015-08-13 18:07:53 +02:00
Thibaut VIARD
9888e64d10 [zero/Wire] Adding default values for Wire custom definitions 2015-08-13 12:09:25 +02:00
Thibaut VIARD
264a5a59e7 [zero/SPI] Adding default values for SPI custom definitions 2015-08-13 12:07:51 +02:00
Thibaut VIARD
9440d5bf60 [zero/Wire] adding missing library properties 2015-08-11 09:42:44 +02:00
Thibaut VIARD
6ec964dba1 [zero/SPI] adding missing library properties 2015-08-11 09:42:26 +02:00
Thibaut VIARD
b81bc46484 [zero] Bring more customization to Wire class 2015-08-10 13:39:47 +02:00
Thibaut VIARD
7fbd66521e [zero] Bring more customization to SPI class 2015-08-10 13:39:31 +02:00
Cristian Maglie
18c63ceb74 Fixed metadata on USBHost
Close #5
2015-07-18 20:40:23 +02:00
PaoloP74
842bc471ca Update Wire.h 2015-07-06 11:36:44 +02:00
PaoloP74
f1c078cbf4 Update Wire.cpp 2015-07-06 11:35:46 +02:00
Fede85
d11a972706 fixed serial print alignment in USBHost/MouseController example 2015-06-17 16:39:53 +02:00
Cristian Maglie
30f23fb9ac Other license cleanup 2015-06-15 14:25:42 +02:00
Cristian Maglie
97f1cf6af5 Hide non-API pinPeripheral method 2015-06-15 14:16:15 +02:00
Claudio Indellicati
4001ec4954 Added SAMD specific library for ADC result correction. 2015-05-20 15:17:25 +02:00
Cristian Maglie
e3a367f878 Fixed SPI datamode settings
The missing break in every case will have MODE0 always selected
2015-05-19 16:41:31 +02:00
Claudio Indellicati
cb722cfd06 Implemented SPI Transaction API. 2015-03-27 17:53:30 +01:00
Cristian Maglie
f0e76f9af8 SPI: fix indent 2014-10-28 15:20:22 +01:00
Cristian Maglie
eca1341c7b Limit SPI max clock speed to 12Mhz
SAMD21G18A doesn't operate correctly with clock dividers lower than 4
2014-10-28 15:20:21 +01:00
Cristian Maglie
98341bfb82 Added SPI clock divisor for compatibility with legacy SPI library for AVR 2014-09-11 22:25:49 +02:00
Cristian Maglie
4206a3cd77 Simplified formula for SPI divisor calculation 2014-09-11 18:57:00 +02:00
Cristian Maglie
c7866bfce4 Added SPI block-transfer method 2014-09-11 18:45:11 +02:00
Cristian Maglie
29bc12e762 Added stub for SPI transactions 2014-09-11 18:45:11 +02:00
Jean-Christophe BUDA
1b9d7008b3 Merge branch 'zero' of https://github.com/aethaniel/ArduinoZero into usb_valid_host
Conflicts:
	hardware/arduino/samd/variants/arduino_zero/variant.h
2014-09-11 16:46:59 +02:00
Thibaut VIARD
f1a8c8b140 Update pin numbers according to recent changes
Signed-off-by: Thibaut VIARD <thibaut.viard@atmel.com>
2014-09-11 16:39:21 +02:00
Cristian Maglie
f3cf7a0a24 USBHost, fixed wrong architecture tag (SAM -> SAMD) 2014-09-10 12:20:46 +02:00
Jean-Christophe BUDA
6d36cba451 usb host and device update merge branch 'jc-3' into zero
Conflicts:
	hardware/arduino/samd/cores/arduino/USB/USBCore.cpp
	hardware/arduino/samd/cores/validation/validation_usb_device/build_as6/test.cppproj
2014-09-09 16:23:17 +02:00
Cristian Maglie
adcfb53e96 Fixed includes in SPI library 2014-09-08 14:37:18 +02:00
Thibaut VIARD
3355867550 fixing typo in wire.h 2014-09-03 19:24:18 +02:00
Jean-Christophe BUDA
40c47d7631 update .ino files for USBhost 2014-08-13 16:48:55 +02:00
Jean-Christophe BUDA
0dd2fdef2b usb host correct out messages 2014-08-12 15:29:37 +02:00
Jean-Christophe BUDA
c5d519c01e move libraries/USBHost to hardware/arduino/sam/libraries/USBHost and for samd 2014-08-07 11:10:40 +02:00
Thibaut VIARD
ae42fd1167 Adding license in files, update platform.txt 2014-07-25 17:11:29 +02:00
Jonathan BAUDIN
280bc4e001 Fix SPI 2014-06-05 12:15:20 +02:00
Jonathan BAUDIN
6c67c97fad Fix Wire bug. First bytes not read. 2014-06-02 16:23:26 +02:00
Jonathan BAUDIN
f12a643445 Fix Wire and add test with RTC 2014-05-21 12:16:28 +02:00
Jonathan BAUDIN
ff46a3c100 Fixing Wire 2014-05-20 17:34:26 +02:00
Jonathan BAUDIN
ead58260a3 Fix SERCOM Wire, add functions Wire class 2014-05-19 13:24:35 +02:00
Jonathan BAUDIN
8b1d9bfd27 SPI implement tested 2014-05-15 18:10:01 +02:00
Jonathan BAUDIN
e4ab3ba3ef Few UART corrections, modifiy Variant files 2014-05-15 11:54:59 +02:00
Jonathan BAUDIN
07e782b2b1 Fix UART EDBG and baudrate 2014-05-12 20:37:59 +02:00
Jonathan BAUDIN
0eca3bd649 Use new IRQ functions 2014-05-09 14:09:41 +02:00
Jonathan BAUDIN
a8969bd183 Change SERCOM used by Wire 2014-05-07 17:26:48 +02:00
Jonathan BAUDIN
92d2f670f0 Creating objects SERCOMx, Serial, SPI and Wire. 2014-05-07 16:56:34 +02:00
Jonathan BAUDIN
7e75870756 Correction compilation errors. 2014-05-07 16:02:25 +02:00
Jonathan BAUDIN
f6e007bc9d WIRE class finished. SERCOM class completed. Few correction in HardwareSerial and SERCOMUsart after compilation 2014-05-05 17:49:57 +02:00
Jonathan BAUDIN
f307bf454d Complete SERCOM and WIRE classes 2014-05-05 14:24:10 +02:00
Jonathan BAUDIN
1014ac90c1 Add txBuffer (ring buffer) to SercomUart.
Add SPI functions into SERCOM class and create SPI class
2014-04-28 15:49:42 +02:00
Jonathan BAUDIN
8fe524de16 Add function for Sercom SPI 2014-04-25 11:53:15 +02:00
Thibaut VIARD
ac73b87928 Cleanup and adding more needed files 2014-04-16 10:53:11 +02:00