Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: SPI_HAS_NOTUSINGINTERRUPT - not correctly defined for all CPUs?

  1. #1
    Senior Member h4yn0nnym0u5e's Avatar
    Join Date
    Apr 2021
    Location
    Cambridgeshire, UK
    Posts
    731

    SPI_HAS_NOTUSINGINTERRUPT - not correctly defined for all CPUs?

    Hi folks

    Chasing an obscure bug, and I think I might have found it. Or I'm misunderstanding something...

    In SPI.h and .cpp, there is lots of conditional compilation for different architectures. Some of these define SPIClass::notUsingInterrupt(), and there is an associated macro SPI_HAS_NOTUSINGINTERRUPT which appears to be intended to indicate whether the function is available. However, despite Teensy LC and Teensy 4.x both having the function, the macro is not defined for them.

    Is this a bug, or am I in some way missing the point?

  2. #2
    Senior Member h4yn0nnym0u5e's Avatar
    Join Date
    Apr 2021
    Location
    Cambridgeshire, UK
    Posts
    731
    PR #67 submitted. Will it get in? Who knows - the oldest PR in that repo is coming up on 9 years old... I hope so, because I think it fixes a pretty serious bug in the interaction between the audio and SPI libraries.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •