Frank
1a49564c74
Use CCM_CBCMR instead "/7"
пре 5 година
PaulStoffregen
c6e55a961a
SPISettings for IMXRT (thanks Manitou)
пре 5 година
PaulStoffregen
5d5cedfc0c
Add minimumal IMXRT implementation
пре 5 година
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
пре 7 година
Kurt Eckhardt
a7e6fcc21a
Fix AVR compile issue
A define was under a #ifdef that it should not have been
пре 7 година
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.
пре 7 година
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.
пре 7 година
PaulStoffregen
3f5108d197
Add pinIsMOSI(), pinIsMISO(), pinIsSCK()
пре 7 година
PaulStoffregen
70dc198a04
Unified SPIClass for Teensy LC (thanks KurtE)
пре 7 година
PaulStoffregen
cad7201411
Use unified SPIClass for SPI1 & SPI2 on Teensy 3.5 & 3.6
пре 7 година
PaulStoffregen
a98c4fc42b
Single SPIClass for Teensy 3.x
пре 7 година
PaulStoffregen
b2dd72f634
Delete Arduino Due implementation
пре 7 година
PaulStoffregen
20f7bdcfbf
Document special nature of setCS in comments
пре 8 година
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
пре 8 година
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
пре 8 година
Kurt Eckhardt
17fc3b8392
Add extern for SPI2 for T3.6
пре 8 година
Kurt Eckhardt
ca644b291c
Beta boards changed names
пре 8 година
Kurt Eckhardt
593c6782e9
SPI2 Support
Added SPI2 support for T34/T35 boards
пре 8 година
Kurt Eckhardt
17ffb0096c
SPCR1 used in setDataMode
пре 8 година
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
пре 8 година
PaulStoffregen
f43cb14bd2
Fix transfer16
пре 9 година
crteensy
2401901b56
Update SPI.h
In the comments: "Teensy 3.x" changed to "Teensy LC". Or is the LC also part of the "3" family?
пре 9 година
PaulStoffregen
d4d1c18995
Use 12 Mbit/sec for SPI_CLOCK_DIV2 on Teensy 3.x & LC
пре 9 година
PaulStoffregen
009ca8f984
Enable SPI1 on Teensy-LC
пре 9 година
PaulStoffregen
e516ecc3ef
Add SPI1 on Teensy-LC
пре 9 година
PaulStoffregen
c8e19a33d2
Add support for Teensy-LC
пре 9 година
PaulStoffregen
e3f07329a5
Add SPI_ATOMIC_VERSION symbol
пре 10 година
PaulStoffregen
cec43ff698
Speedup transfer16() on AVR
пре 10 година
PaulStoffregen
0d69254081
Fix minor grammar error in comments
пре 10 година
PaulStoffregen
1708ef0d34
Fix SPI beginTransaction race condition (thanks to Andrew Knoll)
http://forum.pjrc.com/threads/26776-Teensyduino-1-20-Released?p=56316&viewfull=1#post56316
пре 10 година
PaulStoffregen
98a75fab09
Add notUsingInterrupt()
пре 10 година
PaulStoffregen
af21fcd6a8
Add SPI_TRANSACTION_MISMATCH_LED option
пре 10 година
PaulStoffregen
4416fbe4fb
Fix bugs on Arduino Due version
пре 10 година
PaulStoffregen
c42a900006
Add interrupt masking for Teensy 3.x
пре 10 година
PaulStoffregen
9bab977b5d
Fix clocks in Arduino Due's SPISettings
пре 10 година
PaulStoffregen
5836e69009
Add SPISettings for Arduino Due
пре 10 година
PaulStoffregen
68a0138a8a
Add Arduino Due code
пре 10 година
PaulStoffregen
37c9bd9e7d
Move AVR INT mapping to cpp file
пре 10 година
PaulStoffregen
5171b3ca56
Native transfer() & transfer() on Teensy 3.x
пре 10 година
PaulStoffregen
467f99149d
Add Teensy 3.x chip select pin functions and transfer16() for AVR
пре 10 година
PaulStoffregen
cf1ba732d9
Restructure into separate AVR & ARM sections
пре 10 година
PaulStoffregen
05cd3c17cf
Port SPISettings to Teensy 3.x
пре 10 година
PaulStoffregen
2535e00fd7
Fix typo
пре 10 година
PaulStoffregen
20d9d8ae3d
Add default settings for simple constructor
пре 10 година
PaulStoffregen
2fae5ca5ae
Make sure MSBFIRST & LSBFIRST always defined
пре 10 година
PaulStoffregen
e07c056bf8
Add SPISettings (Matthijs Kooijman)
пре 10 година
PaulStoffregen
2d81fd9e8f
Add optimized transfer()
пре 10 година
PaulStoffregen
f073c6308f
Import prior SPI transaction work
пре 10 година
PaulStoffregen
76af17227a
Import SPI from Teensyduino 1.19
пре 10 година