Commit Graph

283 Commits

Author SHA1 Message Date
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 Tillaart 3cc0846d78
Fix #105 - make setspeed more robust
- prevent out of range I2C speeds for AVR
2022-08-08 21:17:42 +02:00
Eva Herrada 8fce6cda99
Bump to 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 Herrada eeda9eeee2
Bump to 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" Fried 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 Herrada c421326131
Bump to 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 Herrada 515f63f49c
Bump to 1.11.6 2022-05-09 15:56:03 -04:00
Limor "Ladyada" Fried bb7c77ad09
Merge pull request #95 from eringerli/workflow
updated github workflow
2022-05-02 18:29:58 -04:00
Limor "Ladyada" Fried 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" Fried 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 Herrada 204c1de9ab
Bump to 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" Fried 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 Herrada 87af677566
Bump to 1.11.4 2022-04-25 15:18:37 -04:00
Limor "Ladyada" Fried 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 Herrada 1c1c73ee85
Bump to 1.11.3 2022-03-17 11:05:04 -04:00
Ha Thach 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 Nelson 1741708a6a
Update library.properties 2022-03-01 06:58:02 -08:00
Limor "Ladyada" Fried 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 Nelson 9bef46eeba
Revert "Faster hardware SPI writes on SAMD" 2022-02-28 17:38:40 -08:00
Eva Herrada 12e4ddb6e0
Bump to 1.11.1 2022-02-10 15:34:16 -05: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
Eva Herrada 92b460c3f4
Bump to 1.11.0 2022-01-31 15:35:59 -05:00
Limor "Ladyada" Fried 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 Nelson 6b3e7a3374
Update library.properties 2022-01-24 19:31:14 -08:00
Limor "Ladyada" Fried b689ae60a2
Merge pull request #80 from caternuson/no_cs
Refinements for no CS configs
2022-01-24 21:17:42 -05:00
caternuson 7961058057 refinements for no CS configs 2022-01-24 16:56:58 -08:00
Eva Herrada 7a05fccacb
Bump to 1.10.2 2022-01-24 12:08:34 -05:00
Erik Backlund 5e12460a55 Add support for Heltec CubeCell modules with ASR6502 2022-01-22 18:14:58 +01:00
Monroe Williams 5efa09dbe7 Comment formatting. 2022-01-21 18:28:04 -08:00