Skip to content

Commit

Permalink
Fix esp32s3 to support the fourth stepper (issue #212)
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Dec 6, 2023
1 parent 90bf7f1 commit 84e5ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ TODO:
- rename RampConstAcceleration to e.g. RampControl
- merge the two esp32 rmt drivers as soon as esp32c3 works

pre-0.30.9:
- Fix esp32s3 to support the fourth stepper (issue #212)

0.30.8:
- Implement `setAbsoluteSpeedLimit(uint16_t max_speed_in_ticks)` as proposed by issue #210

Expand Down
4 changes: 2 additions & 2 deletions src/StepperISR_esp32_mcpwm_pcnt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ static struct mapping_s channel2mapping[NUM_QUEUES] = {
cmpr_tea_int_ena : MCPWM_OP2_TEA_INT_ENA,
cmpr_tea_int_raw : MCPWM_OP2_TEA_INT_RAW
},
#ifndef SUPPORT_ESP32S3_MCPWM_PCNT
{
mcpwm_unit : MCPWM_UNIT_1,
timer : 0,
Expand All @@ -66,6 +65,7 @@ static struct mapping_s channel2mapping[NUM_QUEUES] = {
cmpr_tea_int_ena : MCPWM_OP0_TEA_INT_ENA,
cmpr_tea_int_raw : MCPWM_OP0_TEA_INT_RAW
},
#ifndef SUPPORT_ESP32S3_MCPWM_PCNT
{
mcpwm_unit : MCPWM_UNIT_1,
timer : 1,
Expand Down Expand Up @@ -339,8 +339,8 @@ static void IRAM_ATTR mcpwm0_isr_service(void *arg) {
MCPWM_SERVICE(MCPWM0, 2, 2);
}
static void IRAM_ATTR mcpwm1_isr_service(void *arg) {
#ifndef SUPPORT_ESP32S3_MCPWM_PCNT
MCPWM_SERVICE(MCPWM1, 0, 3);
#ifndef SUPPORT_ESP32S3_MCPWM_PCNT
MCPWM_SERVICE(MCPWM1, 1, 4);
MCPWM_SERVICE(MCPWM1, 2, 5);
#endif
Expand Down

0 comments on commit 84e5ff9

Please sign in to comment.