Skip to content

Commit c39ea37

Browse files
author
Richard Unger
committed
fix esp32 compiler warnings
1 parent 839e293 commit c39ea37

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/current_sense/hardware_specific/esp32/esp32_adc_driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "rom/ets_sys.h"
88
#include "esp_attr.h"
99
//#include "esp_intr.h" deprecated
10+
#include "esp_intr_alloc.h"
1011
#include "soc/rtc_io_reg.h"
1112
#include "soc/rtc_cntl_reg.h"
1213
#include "soc/sens_reg.h"

src/current_sense/hardware_specific/esp32/esp32_mcu.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ void _driverSyncLowSide(void* driver_params, void* cs_params){
121121
mcpwm_isr_register(mcpwm_unit, mcpwm1_isr_handler, NULL, ESP_INTR_FLAG_IRAM, NULL); //Set ISR Handler
122122
}
123123

124+
static void IRAM_ATTR mcpwm0_isr_handler(void*) __attribute__ ((unused));
125+
124126
// Read currents when interrupt is triggered
125127
static void IRAM_ATTR mcpwm0_isr_handler(void*){
126128
// // high side
@@ -139,6 +141,7 @@ static void IRAM_ATTR mcpwm0_isr_handler(void*){
139141
// MCPWM0.int_clr.timer0_tez_int_clr = mcpwm_intr_status_0;
140142
}
141143

144+
static void IRAM_ATTR mcpwm1_isr_handler(void*) __attribute__ ((unused));
142145

143146
// Read currents when interrupt is triggered
144147
static void IRAM_ATTR mcpwm1_isr_handler(void*){

0 commit comments

Comments
 (0)