comment error: PWM1_CH6 secondary is P2.5.
This commit is contained in:
parent
a91c8b1b04
commit
31a83558ad
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user