288 Commits
Author SHA1 Message Date
Eva HerradaandGitHub 0348f74375 Bump to 1.14.0 1.14.0 2022-10-25 17:24:30 -04:00
Carter NelsonandGitHub 8f3a45e263 Merge pull request #108 from caternuson/iss81_spi_refac
Refactor for better SW SPI only support
2022-10-24 10:58:05 -07:00
caternuson 3736ebfde1 refactor for better sw spi only support 2022-08-22 15:18:26 -07:00
Eva HerradaandGitHub e89ae64bd3 Bump to 1.13.2 1.13.2 2022-08-12 17:16:53 -04:00
Limor "Ladyada" FriedandGitHub 4b8f6e312c Merge pull request #106 from RobTillaart/master
Fix #105 - make I2C setspeed more robust
2022-08-12 15:06:06 -04:00
rob tillaart 319d44c093 fix build 2022-08-08 22:02:39 +02:00
rob tillaart e238822921 clang-format 2022-08-08 21:31:17 +02:00
Rob TillaartandGitHub 3cc0846d78 Fix #105 - make setspeed more robust
- prevent out of range I2C speeds for AVR
2022-08-08 21:17:42 +02:00
Eva HerradaandGitHub 8fce6cda99 Bump to 1.13.1 1.13.1 2022-08-02 12:26:14 -04:00
lady ada 5c159aa9a1 oi nevermind 2022-08-02 11:23:11 -04:00
lady ada 0e5b03fcfb clang 2022-08-02 11:11:30 -04:00
lady ada fe6bb61052 Merge branch 'master' of github.com:adafruit/Adafruit_BusIO 2022-08-02 11:06:54 -04:00
lady ada a8b7958a1a be more specific on fixing arduino i2c speeds 2022-08-02 11:06:49 -04:00
Eva HerradaandGitHub eeda9eeee2 Bump to 1.13.0 1.13.0 2022-08-01 13:40:43 -04:00
lady ada a493f3d7a3 clang 2022-07-31 23:26:58 -04:00
lady ada 8c7a20af42 Merge branch 'master' of github.com:adafruit/Adafruit_BusIO 2022-07-31 23:25:28 -04:00
lady ada 399aeea376 https://github.com/adafruit/Adafruit_BusIO/issues/100 2022-07-31 23:25:24 -04:00
Limor "Ladyada" FriedandGitHub 23ac286bd0 Merge pull request #104 from adafruit/fixavrsetspeed
manually handle AVR i2c setspeed to handle slow clocks
2022-07-31 17:46:19 -04:00
lady ada 3e0e740d56 clang 2022-07-31 17:06:55 -04:00
lady ada 36da2e4611 prescaler is not calculated here https://github.com/arduino/ArduinoCore-avr/blob/master/libraries/Wire/src/utility/twi.c#L139 which means we cannot get below 30.5mhz! 2022-07-31 17:04:44 -04:00
Eva HerradaandGitHub c421326131 Bump to 1.12.0 1.12.0 2022-06-28 16:19:19 -04:00
lady ada 1cb88a65b7 add ESP32 large buffer support (doesnt fix bno085 but worth a short)
cc @caternuson
2022-06-25 21:12:11 -04:00
Eva HerradaandGitHub 515f63f49c Bump to 1.11.6 1.11.6 2022-05-09 15:56:03 -04:00
Limor "Ladyada" FriedandGitHub bb7c77ad09 Merge pull request #95 from eringerli/workflow
updated github workflow
2022-05-02 18:29:58 -04:00
Limor "Ladyada" FriedandGitHub 02665fd93f Merge pull request #96 from KurtE/t4x_neutered
T4.x - Software SPI - don't use FAST_PINIO
2022-05-02 18:29:41 -04:00
Limor "Ladyada" FriedandGitHub b949d28bde Merge pull request #93 from eringerli/cs-transaction-management
better transaction management
2022-05-02 18:29:00 -04:00
KurtE 17cf18bf5b T4.x - Software SPI - don't use FAST_PINIO
The original problem was that the code defined the registers and mask as 8 bits, when the T4.x ones are 32 bits.  So it only worked on a subset of pins.

So first fix would be to simply define these values as 32 bits.  But doing so leaves you code at risk as the Set/Clear code in this library is not atomic,
Example: *clkPort |= clkPinMask;

So if something happens in the small time window after the time the register is retrieved and then manipulated and written back, such as an interrupt.
Or maybe if other hardware is driving the pin.  These changes would be
clobbered by the above code.

Not sure how many other boards (if any) may be hit by the same issue.

It is not an issue with T3.x as the Teensy code uses the M3/M4 bitband support, so for each pin there is a unique memory address for it and these operations are atomic.

Note: the Arm M7 does not support bitbands.  However  in these caseAtomic code can be written for the T4.x by instead using the DR register of the IO port, you use the DR_SET, DR_CLEAR, DR_TOGGLE registers instead which do as the names imply
the do that operation only those pins who have a 1 bit set to the value...
2022-05-02 15:16:52 -07:00
Eva HerradaandGitHub 204c1de9ab Bump to 1.11.5 1.11.5 2022-05-02 17:50:30 -04: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 132124b093 updated github workflow 2022-05-02 22:12:18 +02:00
Limor "Ladyada" FriedandGitHub 4ca049393f Merge pull request #92 from eringerli/more-specific-documentation
More specific Documentation
2022-05-02 16:11:36 -04:00
Christian Riggenbach a43f6e0921 more specific documentation 2022-05-02 20:57:10 +02:00
Eva HerradaandGitHub 87af677566 Bump to 1.11.4 1.11.4 2022-04-25 15:18:37 -04:00
Limor "Ladyada" FriedandGitHub c702120651 Merge pull request #89 from eringerli/cleanup
Cleanup
2022-04-17 18:09:39 -04: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
Eva HerradaandGitHub 1c1c73ee85 Bump to 1.11.3 1.11.3 2022-03-17 11:05:04 -04:00
Ha ThachandGitHub ef3d84faa8 Merge pull request #84 from yilungao/spi-write-param-const-ness
write method parameter const-ness
2022-03-15 22:09:42 +07: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 NelsonandGitHub 1741708a6a Update library.properties 1.11.2 2022-03-01 06:58:02 -08:00
Limor "Ladyada" FriedandGitHub 538b07a070 Merge pull request #83 from adafruit/revert-77-master
Revert "Faster hardware SPI writes on SAMD"
2022-02-28 21:06:36 -05:00
Carter NelsonandGitHub 9bef46eeba Revert "Faster hardware SPI writes on SAMD" 2022-02-28 17:38:40 -08:00
Eva HerradaandGitHub 12e4ddb6e0 Bump to 1.11.1 1.11.1 2022-02-10 15:34:16 -05:00
Limor "Ladyada" FriedandGitHub 512fde07b5 Merge pull request #77 from monroewilliams/master
Faster hardware SPI writes on SAMD
2022-02-02 16:23:57 -05:00
Eva HerradaandGitHub 92b460c3f4 Bump to 1.11.0 1.11.0 2022-01-31 15:35:59 -05:00
Limor "Ladyada" FriedandGitHub afbd408d17 Merge pull request #79 from EBD232/master
Add support for Heltec CubeCell modules with ASR6502
2022-01-26 01:06:07 -05:00
Carter NelsonandGitHub 6b3e7a3374 Update library.properties 1.10.3 2022-01-24 19:31:14 -08:00