Walt
c41e829dcc
write method parameter const-ness
...
fix https://github.com/adafruit/Adafruit_FRAM_SPI/issues/25
2022-03-10 21:43:30 -08:00
Carter Nelson
9bef46eeba
Revert "Faster hardware SPI writes on SAMD"
2022-02-28 17:38:40 -08:00
Limor "Ladyada" Fried
512fde07b5
Merge pull request #77 from monroewilliams/master
...
Faster hardware SPI writes on SAMD
2022-02-02 16:23:57 -05:00
caternuson
7961058057
refinements for no CS configs
2022-01-24 16:56:58 -08:00
Monroe Williams
5efa09dbe7
Comment formatting.
2022-01-21 18:28:04 -08:00
Monroe Williams
67bd6e7db5
Add a hack to work around the differences between the Adafruit SAMD core and the official Arduino SAMD core.
2022-01-21 18:12:50 -08:00
Monroe Williams
7f66a34b9c
In the Adafruit_SPIDevice class, when running on the SAMD architecture in the hardware SPI case, use the SPIClass::transfer(txbuf, rxbuf, count, block) method when writing instead of looping over individual bytes.
...
This makes use of DMA and is noticeably faster.
2022-01-13 19:23:05 -08:00
Monroe Williams
3bdfee4ab8
In the Adafruit_SPIDevice class, when running on ESP32 in the hardware SPI case, use the SPIClass::transferBytes() method when writing instead of looping over individual bytes.
...
This makes use of the hardware fifo buffers and is noticeably faster.
2022-01-12 00:33:47 -08:00
Christian Riggenbach
c43e0ae83e
added write_and_read()
...
This method adds a wrapper for transfer() with CS-pin and
transaction management
2021-12-31 11:32:36 +01:00
Carter Nelson
649bc9f93c
Merge pull request #73 from slaff/fix/spelling
...
Fixed small spelling mistakes.
2021-12-10 08:38:25 -08:00
Slavey Karadzhov
570d172764
Fixed small spelling mistakes.
2021-12-10 10:12:37 +01:00
Phillip Burgess
cc1fd93f02
No functional change, cleaning up shotgun-style #includes
2021-11-19 12:00:35 -08:00
lady ada
8ad008a699
fix busorder enum to deal with arc32
2021-07-17 15:54:07 -04:00
ladyada
f28f3ae7f0
clang
2021-07-01 11:40:28 -04:00
ladyada
05398d9395
add trinket/attiny8 support
2021-06-30 16:46:43 -04:00
Limor "Ladyada" Fried
a8c9c5183c
Merge pull request #40 from jgfoster/memory_leak
...
Release memory allocated in constructor to avoid memory leak
2020-11-30 19:07:32 -05:00
James Foster
b837d9c427
Edit comment to match other functions.
2020-11-30 15:55:28 -08:00
James Foster
3fc89c5835
Release memory allocated in constructors
2020-11-30 15:47:49 -08:00
howard-wa9axq
074a8a9323
Update Adafruit_SPIDevice.cpp
2020-11-28 19:13:19 -06:00
howard-wa9axq
ed828a27f7
Removed extra blank line
2020-11-28 18:37:05 -06:00
howard-wa9axq
b8e11f14f1
Updated #if #elif structure.
...
Update #if #elif structure to avoid nested #ifdef's
2020-11-28 18:22:48 -06:00
howard-wa9axq
02b702fc41
Update Adafruit_SPIDevice.cpp
...
Changing #ifdef construct to make STM32 a special case.
2020-11-28 16:43:05 -06:00
howard-wa9axq
40ccbb3739
Update Adafruit_SPIDevice.cpp
2020-11-28 16:16:58 -06:00
howard-wa9axq
0787a7dd4d
Update Adafruit_SPIDevice.cpp
...
Adjusted syntax of added 'for' statement
2020-11-28 15:21:54 -06:00
howard-wa9axq
197d21ad2a
Update Adafruit_SPIDevice.cpp
...
Added code to define 'i'.
2020-11-28 15:05:52 -06:00
howard-wa9axq
a5c631593e
Update Adafruit_SPIDevice.cpp
...
The SPI.cpp that the STM32 project uses does not have a transfer method with both a buffer and a length. Changes to this file uses a transfer method that just needs a single 8 bit character.
2020-11-28 14:15:01 -06:00
Robin Giese
dacc017bb6
Use blocking DMA for SPI transfer
2020-08-24 09:32:20 -07:00
Robin Giese
b8da0bd043
Formatting fixes
2020-08-23 21:44:10 -07:00
Robin Giese
28cc900343
Help library compile for Spark/Particle
2020-08-23 21:18:19 -07:00
lady ada
e7fff533a3
add some delays to slow down fast bitbang on demand
2020-07-18 18:40:45 -04:00
lady ada
3ab09b4a46
clang
2020-07-18 15:58:19 -04:00
lady ada
a552fae34e
only write MOSI if its changed
2020-07-18 15:57:15 -04:00
lady ada
a830055740
remove extra shifts
2020-07-18 15:50:07 -04:00
lady ada
b1b5f031e7
shortcut to alt modes
2020-07-18 15:40:52 -04:00
lady ada
605d437891
simplifyi LSB/MSB handling for soft spi
2020-07-18 15:38:53 -04:00
lady ada
0b1dbbd0e4
add fast software spi
2020-07-18 14:18:07 -04:00
lady ada
2179775500
add begin/end transaction helpers (needed for really odd devices like SHARP memory display which has inverted CS)
2020-07-18 12:03:30 -04:00
caternuson
0f76587660
remove delay
2020-05-20 12:29:49 -07:00
lady ada
82f5ba5ecf
fix incorrect spacing for debug prints
2020-05-16 00:15:52 -04:00
siddacious
e4243a9fe9
fixing support for SPI modes 2 & 3
2020-04-22 11:36:01 -07:00
siddacious
be95f9da0b
clang
2020-04-20 17:08:09 -07:00
siddacious
c852d5744c
adding check for _mosi== -1
2020-04-20 17:01:43 -07:00
Lady Ada
1f034b34e9
clang
2020-02-23 19:47:22 -05:00
Lady Ada
bd6281d5be
fix bitbang mode 0 clock polarity to match standard
2020-02-23 19:37:42 -05:00
Lady Ada
9711a24996
remove debug
2020-02-22 18:08:36 -05:00
Lady Ada
26305c9e25
let us check i2c connection on register bit reads
2020-02-22 18:08:14 -05:00
Lady Ada
ddee2a2339
remove travis, add actions, clang, bump version
2019-12-27 19:49:16 -05:00
ladyada
e61d6bac17
yikes everyone has a differnet way of doing SPI bit order
2019-05-18 19:20:13 -04:00
ladyada
dbe2441417
support mode0 and mode1 for now
2019-05-18 18:59:07 -04:00
ladyada
c226325dee
add (currently slow) bitbang SPI, with MSB and LSB support
2019-05-18 18:46:25 -04:00