Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usingInterrupt() #50

wants to merge 1 commit into
base: master
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

Fix usingInterrupt()

... see forum, but I saw now it the same interrupt for every pin, so here is a more simpe solution
  • Loading branch information...
FrankBoesing committed Jul 15, 2019
commit c2197dbcf623f5e3084d8a16d96a488a06eb1b8a
4 SPI.h
@@ -1118,6 +1118,9 @@ class SPIClass { // Teensy 4
// (eg, a timer), interruptNumber should be 255.
void usingInterrupt(uint8_t n) {
if (n >= CORE_NUM_DIGITAL) return;
#if defined(__IMXRT1062__)
#elif defined(__IMXRT1052__)
volatile uint32_t *gpio = portOutputRegister(n);
switch((uint32_t)gpio) {
case (uint32_t)&GPIO1_DR:
@@ -1137,6 +1140,7 @@ class SPIClass { // Teensy 4
void usingInterrupt(IRQ_NUMBER_t interruptName);
void notUsingInterrupt(IRQ_NUMBER_t interruptName);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.