diff --git a/grbl-lpc/pwm_driver.cpp b/grbl-lpc/pwm_driver.cpp index 068d38e..3bde7ce 100644 --- a/grbl-lpc/pwm_driver.cpp +++ b/grbl-lpc/pwm_driver.cpp @@ -88,7 +88,7 @@ const PWM_Channel_Config PWM1_CH6 = { (1 << 14), //PWM Enable (1 << 6), //Latch Enable Register (0x2 << 20), //PINSEL3 - P1.26 - (0x1 << 10) //PINSEL4 - P2.6 + (0x1 << 10) //PINSEL4 - P2.5 }; diff --git a/grbl-lpc/pwm_driver.h b/grbl-lpc/pwm_driver.h index dc4e9b8..e6e87e9 100644 --- a/grbl-lpc/pwm_driver.h +++ b/grbl-lpc/pwm_driver.h @@ -28,7 +28,7 @@ typedef struct _PWM_Channel_Config { uint32_t LER_Enable_Mask; //PWM Output Mapping PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 uint32_t PINSEL3_Enable_Mask; //For PWM support on (P1.18, P1.20, P1.21, P1.23, P1.24, P1.26) - uint32_t PINSEL4_Enable_Mask; //For PWM support on (P2.0, P2.1, P2.2, P2.3, P2.4, P2.6) + uint32_t PINSEL4_Enable_Mask; //For PWM support on (P2.0, P2.1, P2.2, P2.3, P2.4, P2.5) } const PWM_Channel_Config; extern PWM_Channel_Config PWM1_CH1; diff --git a/grbl/config.h b/grbl/config.h index 91f5932..ee585c5 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -710,7 +710,7 @@ // // PWM Channel PWM1_CH1 PWM1_CH2 PWM1_CH3 PWM1_CH4 PWM1_CH5 PWM1_CH6 // Primary pin P1.18 P1.20 P1.21 P1.23 P1.24 P1.26 -// Secondary pin P2.0 P2.1 P2.2 P2.3 P2.4 P2.6 +// Secondary pin P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 #define SPINDLE_PWM_CHANNEL PWM1_CH5 #define SPINDLE_PWM_USE_PRIMARY_PIN false #define SPINDLE_PWM_USE_SECONDARY_PIN true