Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mcells committed Mar 27, 2024
1 parent 2d1141b commit 176d2be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/HFIBLDCMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define LOWPASS( output, input, c_lowpass) (output += (c_lowpass) * ((input) - (output)))

#ifndef SWAP_HILO
#define SWAP_HILO = true // true for ESP32
#define SWAP_HILO true // true for ESP32
#endif
extern int** trap_120_map;
extern int** trap_150_map;
Expand Down
6 changes: 3 additions & 3 deletions src/current_sense/hardware_specific/esp32/esp32_mcu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void IRAM_ATTR mcpwm0_isr_handler(void*){
portEXIT_CRITICAL_ISR(&fpuInISRMutex);

#endif
}

// low side
MCPWM0.int_clr.timer0_tep_int_clr = mcpwm_intr_status_low;
// high side
Expand All @@ -214,7 +214,7 @@ static void IRAM_ATTR mcpwm1_isr_handler(void*){


bool runadc = mcpwm_intr_status_high || mcpwm_intr_status_low;

if(runadc){
#if _I2S_ADC == true
readFiFo();
Expand Down Expand Up @@ -248,7 +248,7 @@ static void IRAM_ATTR mcpwm1_isr_handler(void*){
portEXIT_CRITICAL_ISR(&fpuInISRMutex);

#endif
}

// low side
MCPWM1.int_clr.timer0_tep_int_clr = mcpwm_intr_status_low;
// high side
Expand Down

0 comments on commit 176d2be

Please sign in to comment.