ladyada
186ea35211
reclang
2025-01-08 15:05:13 -05:00
caternuson
2708c120c6
remove volatile compound assignments
2023-10-09 13:52:00 -07:00
DeflateAwning
7fd30d0bf8
Add explicit type casting to fix build error
2023-06-21 23:25:44 -06:00
caternuson
3736ebfde1
refactor for better sw spi only support
2022-08-22 15:18:26 -07:00
Christian Riggenbach
f82f699c64
reuse beginTransactionWithAssertingCS()/endTransactionWithDeassertingCS()
2022-05-02 22:37:27 +02:00
Christian Riggenbach
c00ec13218
moved setChipSelect() in front of beginTransactionWithAssertingCS()
...
This is a more logical order, as beginTransactionWithAssertingCS() and
endTransactionWithDeassertingCS() both call it.
2022-05-02 22:37:17 +02:00
Christian Riggenbach
41635e3c68
beginTransactionWithAssertingCS() and endTransactionWithDeassertingCS()
...
These two methods are similar to beginTransaction() and endTransaction(),
but, as the name implies, with CS management. They are both public, as
beginTransaction() and endTransaction() are too.
2022-05-02 22:35:38 +02:00
Christian Riggenbach
a43f6e0921
more specific documentation
2022-05-02 20:57:10 +02:00
Christian Riggenbach
4b18d396dc
use the typesafe replacement nullptr instead of NULL (since C++11)
2022-04-17 15:03:17 +02:00
Christian Riggenbach
3561fd9ff6
delete works for nullptr, no need to set a member in the destructor
2022-04-17 14:43:57 +02:00
Walt
b6f7b3abe1
applied clang-format
2022-03-14 22:45:53 -07:00
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