浏览代码

Merge pull request #50 from FrankBoesing/patch-1

Fix usingInterrupt()
main
Paul Stoffregen 5 年前
父节点
当前提交
35be62a0dc
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      SPI.h

+ 4
- 0
SPI.h 查看文件

@@ -1118,6 +1118,9 @@ public:
// (eg, a timer), interruptNumber should be 255.
void usingInterrupt(uint8_t n) {
if (n >= CORE_NUM_DIGITAL) return;
#if defined(__IMXRT1062__)
usingInterrupt(IRQ_GPIO6789);
#elif defined(__IMXRT1052__)
volatile uint32_t *gpio = portOutputRegister(n);
switch((uint32_t)gpio) {
case (uint32_t)&GPIO1_DR:
@@ -1137,6 +1140,7 @@ public:
usingInterrupt(IRQ_GPIO4_16_31);
break;
}
#endif
}
void usingInterrupt(IRQ_NUMBER_t interruptName);
void notUsingInterrupt(IRQ_NUMBER_t interruptName);

正在加载...
取消
保存