瀏覽代碼

as a workaround enable PWM for any pin, see PR #8622

Harald Gutsche 6 年之前
父節點
當前提交
f5b4e1ef4f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      Marlin/src/HAL/HAL_LPC1768/fastio.h

+ 4
- 1
Marlin/src/HAL/HAL_LPC1768/fastio.h 查看文件

@@ -100,7 +100,10 @@ bool useable_hardware_PWM(pin_t pin);
100 100
 // hg42: instead use PWM bit from the #define
101 101
 
102 102
 /// check if pin is an timer
103
-#define _GET_TIMER(IO)        LPC1768_PIN_PWM(IO)
103
+#define _GET_TIMER(IO)        TRUE  // could be LPC1768_PIN_PWM(IO), but there
104
+// hg42: could be this:
105
+// #define _GET_TIMER(IO)        LPC1768_PIN_PWM(IO)
106
+// but this is an incomplete check (12 pins are PWMable, but only 6 can be used at the same time)
104 107
 
105 108
 /// Read a pin wrapper
106 109
 #define READ(IO)  _READ(IO)

Loading…
取消
儲存