xxxajk
d68107e973
revert to clean up for merge
pirms 5 gadiem
xxxajk
49da4bd433
T4: Add missing usingInterrupt methods, fix transfer16 method. ALL: Add missing macro defines.
pirms 5 gadiem
PaulStoffregen
c6e55a961a
SPISettings for IMXRT (thanks Manitou)
pirms 5 gadiem
PaulStoffregen
5d5cedfc0c
Add minimumal IMXRT implementation
pirms 5 gadiem
PaulStoffregen
6313944bd4
Fix typo
pirms 6 gadiem
PaulStoffregen
8d59205728
Keep SPI0 pin config in sync with AVR SPI emulation
pirms 7 gadiem
Paul Stoffregen
7e628829f1
Merge pull request #31 from KurtE/CS_PIN45
T3.5/6 Pin 45 is valid CS
pirms 7 gadiem
Kurt Eckhardt
546c3deb5d
T3.5/6 Pin 45 is valid CS
but it is CS5 which encodes to 0x20 and our
macros only handled up to 0x1f... so changed
to 0x3f.
Tested on my ILI9341_t3n test now works with DC on 45... Needs change in Core as well
pirms 7 gadiem
Paul Stoffregen
67224c2ced
Merge pull request #30 from KurtE/Example_fix_pin_setup
Example setup code bug
pirms 7 gadiem
Kurt Eckhardt
f2dc0cfd96
Example setup code bug
The code was doing:
pinMode(slaveSelectPin, OUTPUT);
pinMode(slaveSelectPin, HIGH);
Second pinMode should be digitalWrite
pirms 7 gadiem
Paul Stoffregen
7ccae468dd
Merge pull request #29 from KurtE/Merge-New_transfer
Add SPI Buffer functions
pirms 7 gadiem
Kurt Eckhardt
a7e6fcc21a
Fix AVR compile issue
A define was under a #ifdef that it should not have been
pirms 7 gadiem
Kurt Eckhardt
c20bf368a5
Add SPI Buffer functions
Merged in the SPI.transfer(buf, retbuf, cnt) version.
Also merged in the SPI.transfer(buf, retbuf, cnt, event_responder) version that does DMA access.
pirms 7 gadiem
Paul Stoffregen
63215f6dd0
Merge pull request #28 from KurtE/setMosi-Miso-CLK-After-begin
Allow setMISO/setMOSI/setSCK - after begin
pirms 7 gadiem
Kurt Eckhardt
d1a1892695
Allow setMISO/setMOSI/setSCK - after begin
Made the SPI code work like the old stuff where you could set the miso/mosi/sck pins after the begin.
Some people actually used this for changing SPI on the fly to use multiple sets of pins
pirms 7 gadiem
Paul Stoffregen
f1bbde289c
Merge pull request #27 from KurtE/ENABLE_PCR_DSE-on-enable-pins
Enable Pins - can set more options
pirms 7 gadiem
Kurt Eckhardt
52812c04cd
Enable Pins - can set more options
The current table code was setup that when we choose a specific pin for MOSI or Miso or SCK (or CS), that the only thing set at the time was the MUX value.
Well the old enable_pins that was called off of the enumlated register was setting the PORT_PCR_DSE option on pins 11 and 13...
So to fix it, I have the table, allow you to fully set the options for each pin.
Still have most all of them just setting the MUX, but do have pins 11 and 13 setting the PCR_DSE option to be compatible with old code.
pirms 7 gadiem
PaulStoffregen
3f5108d197
Add pinIsMOSI(), pinIsMISO(), pinIsSCK()
pirms 7 gadiem
PaulStoffregen
70dc198a04
Unified SPIClass for Teensy LC (thanks KurtE)
pirms 7 gadiem
PaulStoffregen
cad7201411
Use unified SPIClass for SPI1 & SPI2 on Teensy 3.5 & 3.6
pirms 7 gadiem
PaulStoffregen
a98c4fc42b
Single SPIClass for Teensy 3.x
pirms 7 gadiem
PaulStoffregen
b2dd72f634
Delete Arduino Due implementation
pirms 7 gadiem
PaulStoffregen
22b7dbd0d0
Fix transfer(buf, size) with LSBFIRST on Teensy 3.x
pirms 7 gadiem
Paul Stoffregen
a8af486c7b
Merge pull request #23 from KurtE/Faster_transfer_buf
SPI Transfer(buf, cnt) use FIFO 16 bit
pirms 7 gadiem
PaulStoffregen
20f7bdcfbf
Document special nature of setCS in comments
pirms 8 gadiem
Kurt Eckhardt
157095efe9
handle odd byte with option to PUSHR_CONT
pirms 8 gadiem
Kurt Eckhardt
9ea3dd95e6
Turning on the PUSHR_CONT removes gap
Experiment with making the whole transfer of the buffer act like it is
to logically hold the CS pins for that whole transfer. This removes
gaps between each 16 bit transfer.
pirms 8 gadiem
Kurt Eckhardt
0257d0473e
SPI Transfer(buf, cnt) use FIFO 16 bit
Update SPI.transfer(buf, cnt) to use the FIFO queue to speed things up.
It also speeds things up to pack the data into 16 bit transfers instead
of 8 bits.
As this code is more complicated, no longer makes sense to inline it,
so functions moved from .h to .cpp files.
SPI1 and SPI2 transfer functions were updated as well for T3.5 and T3.6
pirms 8 gadiem
Paul Stoffregen
19819308ca
Merge pull request #20 from KurtE/T3.5/3.6-SPI---Pin-45-CS
Pin 45 is valid CS for SPI0 on new boards
pirms 8 gadiem
Kurt Eckhardt
c94fa644e8
Pin 45 is valid CS for SPI0 on new boards
pirms 8 gadiem
PaulStoffregen
d1aff2a452
Extra pins are now always defined
pirms 8 gadiem
Paul Stoffregen
7116502d38
Merge pull request #19 from KurtE/T35_USE_SDCARD_PINS
USE SDCard pins for SPI1
pirms 8 gadiem
Kurt Eckhardt
5c68c3e5f0
USE SDCard pins for SPI1
This adds support for optionally being able to use the SDCard pins for
SPI1.
This change requires the corresponding changes in the CORES project
pirms 8 gadiem
Paul Stoffregen
1ffbb8abe5
Merge pull request #18 from KurtE/Extern-SPI2
Add extern for SPI2 for T3.6
pirms 8 gadiem
Kurt Eckhardt
cf2169182a
Add SPI2 as keyword
pirms 8 gadiem
Kurt Eckhardt
17fc3b8392
Add extern for SPI2 for T3.6
pirms 8 gadiem
Paul Stoffregen
ace6975aed
Merge pull request #17 from KurtE/Beta-Board-name-change
Beta boards changed names
pirms 8 gadiem
Kurt Eckhardt
ca644b291c
Beta boards changed names
pirms 8 gadiem
Paul Stoffregen
f6c294f804
Merge pull request #16 from KurtE/K66-SPI2
SPI2 Support
pirms 8 gadiem
Kurt Eckhardt
593c6782e9
SPI2 Support
Added SPI2 support for T34/T35 boards
pirms 8 gadiem
Paul Stoffregen
705b4f3117
Merge pull request #14 from KurtE/Comment_debug_msg
Oops - missed debug message
pirms 8 gadiem
Kurt Eckhardt
db18d0b056
Oops - missed debug message
Commented out other debug messages earlier, but missed this one
pirms 8 gadiem
Paul Stoffregen
6696bc1389
Merge pull request #13 from sumotoy/master
A serial debug line should be commented.
pirms 8 gadiem
max mc costa
20c0086c31
Add files via upload
pirms 8 gadiem
Paul Stoffregen
aef5445f90
Merge pull request #11 from KurtE/SPI1-for-3.4/3.5
Added SPI1 object for Teensy 3.5 test board
pirms 8 gadiem
Kurt Eckhardt
17ffb0096c
SPCR1 used in setDataMode
pirms 8 gadiem
Kurt Eckhardt
27116d575e
SPI1 Missed updates to SIM_SCGC6
pirms 8 gadiem
Kurt Eckhardt
4f13273546
Added SPI1 object for Teensy 3.5 test board
These changes plus some changes in core (added register defines, plus
added logical SPCR1 register), allowed me to do quick hack to
serialFlash library and test and initialize flash memory using 3.5 test
board connected to prop shield using pins 0, 1, 20 and 6
pirms 8 gadiem
PaulStoffregen
c593e4bd11
Add library.properties
pirms 8 gadiem
PaulStoffregen
ad88dec629
Update examples to use transactions
pirms 9 gadiem