hathach
9c2bdbc314
include TinyUSB header for builtin libraries if selected
2021-05-25 18:30:09 +07:00
hathach
51bd7a7967
better fix warning with "-Wclass-memaccess" in SPI
2021-05-24 21:31:52 +07:00
hathach
c262dc2ff9
clean up and add note for "-Wclass-memaccess"
2021-05-10 19:06:44 +07:00
Henry Gabryjelski
439c6b51c9
Narrowly silence new (GCC 8.1+) warning ( #290 )
...
Fixes #287
The warnings look like:
```
Line 338 Char 37
warning: 'void* memcpy(void*, const void*, size_t)'
writing to an object of type 'struct DmacDescriptor'
with no trivial copy-assignment [-Wclass-memaccess]
```
2021-04-30 11:42:15 -04:00
Rudolph Riedel
3c7a2d5bad
Added a isBusy() method to SPI calls to allow non-blocking polling of the DMA transfer status.
2020-12-28 13:51:55 +01:00
moussaillon
814a352588
Avoiding unused parameter warning for dmaDoNothingCallback()
2020-09-15 16:32:21 +02:00
Phillip Burgess
1e92424a50
Obscure SPI DMA bug fixed. Also, big non-blocking transfers supported.
2020-08-20 20:22:39 -07:00
Phillip Burgess
420b9a8429
Small SPI lib fix, add SWO pin to variant header
2020-08-19 11:36:20 -07:00
ladyada
66a844f050
fix for trinket/gemma m0
2019-06-15 22:59:15 -04:00
Phillip Burgess
9a07f418ce
SPI DMA transfer() function working now
2019-05-22 21:35:58 -07:00
Phillip Burgess
8b88806d46
SPI DMA still WIP still not working
2019-05-22 21:11:49 -07:00
Phillip Burgess
8f123f315b
SPI DMA WIP and still not working :/
2019-05-22 14:22:50 -07:00
Phillip Burgess
99b90ffb48
DMA WIP still not working
2019-05-22 11:17:52 -07:00
Phillip Burgess
91e43ef443
SPIClass DMA transfer() function WIP
2019-05-21 22:14:45 -07:00
Phillip Burgess
e86546521f
Separated getDMACID() function into getDMAC_ID_TX() and getDMAC_ID_RX()
2019-05-10 17:46:33 -07:00
Phillip Burgess
7616dab297
SERCOM stuff - simplify, cleanup, add SAMD21 dummy funcs
2019-05-08 09:44:05 -07:00
Phillip Burgess
59d869d79d
WIP change SPI SERCOM clock source at runtime rather than compile-time
2019-05-07 23:05:52 -07:00
Phillip Burgess
2b2b8f0610
Add max SPI speed select menu for M4
2019-04-21 22:30:57 -07:00
Grzegorz Gajoch
2facbf6177
Fix interrupt mask to block in SPI library
2018-03-20 11:07:43 -04:00
Sandeep Mistry
78f79ed2c0
Add SPI.notUsingInterrupt(...)
2018-01-02 11:57:40 -05:00
Sandeep Mistry
e77ae8fe8e
Optimize SPI transfers
2016-11-17 17:17:05 -05: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
Thibaut VIARD
264a5a59e7
[zero/SPI] Adding default values for SPI custom definitions
2015-08-13 12:07:51 +02:00
Thibaut VIARD
7fbd66521e
[zero] Bring more customization to SPI class
2015-08-10 13:39:31 +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
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
29bc12e762
Added stub for SPI transactions
2014-09-11 18:45:11 +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
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
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
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
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
Thibaut VIARD
ac73b87928
Cleanup and adding more needed files
2014-04-16 10:53:11 +02:00