Cristian Maglie
cce03ea3a6
Converted some old examples from pde to ino
2016-09-21 09:54:30 +02:00
Alice Pintus
d3065cbaeb
add src folder when missing
2016-03-02 14:45:57 +01:00
Alice Pintus
8d3c4dbfec
update sentences
2016-03-01 16:09:50 +01:00
per1234
d21e054836
Remove unused keywords from Wire libraries keywords.txt
...
These functions have been replaced by read() and write() since Arduino
1.0.
2015-11-28 17:56:21 -08:00
Sandeep Mistry
5be4466fd7
Set mode to SPI_CONTINUE for first byte transfer in SPI.transfer16(...)
...
Update to #4081
2015-11-05 10:02:50 -05:00
Sandeep Mistry
ed5597dad0
Add SPI.transfer16(...) API's
2015-11-04 15:49:08 -05:00
Cristian Maglie
a7a12037c7
[HID] Added return value to HID SendReport (sam core)
2015-10-30 13:23:46 +01:00
Cristian Maglie
d3e3b8b377
Merge branch 'sam-wire-repeated-starts' of https://github.com/sandeepmistry/Arduino
2015-10-29 21:18:11 +01:00
Sandeep Mistry
77179d78d0
Add support for repeated starts in slave mode
...
From the data sheet TXCOMP is only set after a stop or repeated start
and address change, but EOSACC is set for a stop or repeated start when
the address remains the same. This change removes the check for TXCOMP
when not idle, to support repeated starts for both RX and TX.
2015-10-29 16:15:52 -04:00
Sandeep Mistry
851efaefd7
Remove steps to disable pull ups as they are not needed
...
The Due has external pull-ups on the SDA0 and SCL0, and PIO_Configure
in Wire*_Init does not enable then.
2015-10-29 16:03:32 -04:00
Sandeep Mistry
d655bd5af9
Add end callback for deinitialization on end
2015-10-29 16:03:32 -04:00
Sandeep Mistry
2737305f54
implement Wire.end() for SAM core
...
also moved common reset and disable code in libsam TWI_ConfigureMaster
and TWI_ConfigureSlave functions to new TWI_Disable function, which is
used in TwoWire::end()
2015-10-29 16:03:32 -04:00
Martino Facchin
775c82bbed
SAM: add iSerial USB field
2015-10-21 16:16:52 +02:00
Martino Facchin
ddae105dc3
[HID] port to stable PluggableUSB API
2015-10-12 14:41:23 +02:00
Sandeep Mistry
cc3a1e7bff
Correct typo
2015-09-29 11:35:13 -04:00
Cristian Maglie
43d3428d2b
[HID] Added missing const in length
2015-09-28 17:05:36 +02:00
Cristian Maglie
209b0796e6
[HID] added 'const' qualifier in HID initialization
...
See https://github.com/arduino/Arduino/pull/3840#discussion_r40438845
2015-09-28 13:32:01 +02:00
Cristian Maglie
fba6ca88ed
[HID] fixed wrong datatype for descriptor len
...
See https://github.com/arduino/Arduino/pull/3840/files#r40438845
2015-09-28 13:23:12 +02:00
Cristian Maglie
401c4f0cf8
HID: merged HID_Descriptor into HIDDescriptorListNode
...
This simplifies the object model and produce a small gain in code
size and performance.
2015-09-22 16:51:30 +02:00
Cristian Maglie
f0cf13c89b
HID: Renamed fields in HIDDescriptorListNode and HID_Descriptor
...
In particular HIDDescriptorListNode.cb has been renamed to
HIDDescriptorListNode.descriptor because it contains decriptor data
and not callbacks.
Moreover the HID_Descriptor.descriptor field has been renamed
to HID_Descriptor.data so the structure has now two fields length
and data.
typedef struct __attribute__((packed)) {
uint16_t length;
const void* data;
} HID_Descriptor;
class HIDDescriptorListNode {
public:
HIDDescriptorListNode *next = NULL;
const HID_Descriptor *descriptor;
HIDDescriptorListNode(const HID_Descriptor *d) : descriptor(d) { }
};
This imply a change in the use of the node from:
node->cb->lenght
node->cd->descriptor
to
node->descriptor->length
node->descriptor->data
2015-09-22 16:49:14 +02:00
Cristian Maglie
949ef094f1
Added categories to libraries
...
Fix #3812
2015-09-18 11:01:08 +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
Martino Facchin
b2381506a2
sam: add HID library
2015-07-17 12:13:21 +02:00
Martino Facchin
af290fc5a3
rework HID-based libraries and add Due fallback
2015-07-16 13:13:53 +02:00
Federico Fissore
5e98cd8528
Examples: mass code format. See example_formatter.conf
2015-07-06 15:19:05 +02:00
Matthew Lowe
39c3f8bf61
Support for repeated starts added to SAM Wire library
...
Additional interface method ported to avr for compatibility
Fix issue #2428 .
2015-07-03 16:59:30 +02:00
Martino Facchin
98d0a72fdd
Merge pull request #1869 from kevin-pololu/due-wire-available
...
SAM Wire: fixed NACK/timeout behavior of requestFrom() and available()
2015-07-01 12:43:44 +00:00
Federico Fissore
9166828bfe
Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc . Fixes #3191
2015-05-20 17:10:06 +02:00
Federico Fissore
42b07f0337
Libraries bundled with cores will take the type of that core, instead of relying on an undocumented 'types' property. Fixes #2875
2015-05-19 12:24:11 +02:00
Federico Fissore
6e498ee5b9
LibraryManager: better type filtering
2015-03-27 14:51:19 +01:00
Cristian Maglie
e93be4855f
Corrected some email contacts.
2015-02-05 16:47:22 +01:00
Cristian Maglie
6a5b82f062
[sam] Implementation of SPI multibyte transfer
2014-09-11 17:50:00 +02:00
Cristian Maglie
5f88564b2b
[sam] Simplified formula for SPI speed
2014-09-11 13:57:08 +02:00
Cristian Maglie
848dd39313
[sam] SPI library: added SPI_HAS_EXTENDED_CS_PIN_HANDLING flag
...
This allows to check if SPI provides extended API to allow automatic
CS pin handling.
2014-09-11 13:57:07 +02:00
Cristian Maglie
11cf45d6d6
Fix indent and small cosmetic changes
2014-09-10 18:22:02 +02:00
PaulStoffregen
daa7e7dcc9
Fix interrupt masking on Arduino Due
2014-08-01 16:44:47 -07:00
PaulStoffregen
ef06410d16
Add SPI_HAS_TRANSACTION symbol for Arduino Due
2014-08-01 13:00:29 -07:00
PaulStoffregen
abb37e202f
SPI Transactions for Arduino Due
2014-08-01 05:57:13 -07:00
Fede85
dd77375fe9
missing paragraph field in library.properties
2014-07-18 20:08:01 +02:00
Fede85
b02e85ceb2
modified sentences in library.properties files
2014-07-18 19:41:34 +02:00
Cristian Maglie
75ec6a1b31
Due: Wire.setClock can be called at any time
...
See #2157
2014-07-06 00:36:22 +02:00
Kristian Lauszus
9d20959b6a
Implemented setClock for the Due as well
...
This allows users to change the I2C clock frequency
2014-07-02 19:47:23 +02:00
Chris
e079baa18d
Fix for Due Wire library
...
Fix reading and use of TWI status register.
Also, update endTransmission to be compatible with original & give more
useful return.
2014-05-23 12:06:43 +02:00
Kevin Chang
c92206909d
SAM Wire: fixed NACK/timeout behavior of requestFrom() and available()
...
"readed" is no longer incremented in requestFrom() if
TWI_WaitByteReceived() gets a NACK or times out. This corrects the
behavior (return values) of requestFrom() and available() to match the
Arduino reference. Fixes arduino/Arduino#1311
2014-02-17 20:16:31 -08:00
dpslwk
8364134ada
Wire library, move hard references IRQn to defines in variant.h
2014-01-17 20:44:19 +00:00
Cristian Maglie
d5c828736b
Revert "SPI library to new format"
2013-11-21 15:05:36 +01:00
Cristian Maglie
9a9652d506
Revert "Wire library to the 1.5 format"
...
This reverts commit a31857688b
.
2013-11-15 12:54:59 +01:00
Fede85
a31857688b
Wire library to the 1.5 format
2013-09-10 18:50:42 +02:00
Fede85
fd7e9c6d90
WiFi library to the new format
2013-07-19 16:20:34 +02:00
Fede85
ef1cfce024
Scheduler library for Arduino Due to the new format
2013-07-04 14:28:58 +02:00