Skip to content

Commit

Permalink
comment error: PWM1_CH6 secondary is P2.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbfleming committed Jan 19, 2017
1 parent a91c8b1 commit 31a8355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grbl-lpc/pwm_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
};


Expand Down
2 changes: 1 addition & 1 deletion grbl-lpc/pwm_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion grbl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31a8355

Please sign in to comment.