Closed alba-ado closed 2 years ago
Actually similar issue I had reported to espressif and this deprecation warning should not happen in later releases. At least, they have linked to a commit, which removes the deprecation warning.
Ok. Thank you.
Closing this issue.
While using the newest espressif32 platform in the PlatformIO, the library gives a compiler warning. The warning is as follows;
`Processing production (platform: espressif32; board: esp32dev; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (4.1.0) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:~~~~~ lib/FastAccelStepper-master/src/StepperISR_esp32.cpp:344:62: warning: 'esp_err_t mcpwm_isr_register(mcpwm_unit_t, void ()(void), void, int, intr_handle_data_t)' is deprecated: interrupt events are handled by driver, please use callback [-Wdeprecated-declarations] NULL, ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_SHARED, NULL); ^ In file included from lib/FastAccelStepper-master/src/common.h:75, from lib/FastAccelStepper-master/src/RampGenerator.h:4, from lib/FastAccelStepper-master/src/FastAccelStepper.h:6, from lib/FastAccelStepper-master/src/StepperISR.h:3, from lib/FastAccelStepper-master/src/StepperISR_esp32.cpp:2: /home/ado/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/driver/include/driver/mcpwm.h:926:11: note: declared here esp_err_t mcpwm_isr_register(mcpwm_unit_t mcpwm_num, void (fn)(void ), void *arg, int intr_alloc_flags, ^~~~~~ Compiling .pio/build/production/FrameworkArduino/Esp.cpp.o Compiling .pio/build/production/FrameworkArduino/FirmwareMSC.cpp.o Compiling .pio/build/production/FrameworkArduino/FunctionalInterrupt.cpp.o Archiving .pio/build/production/lib60a/libFastAccelStepper-master.a Indexing .pio/build/production/lib60a/libFastAccelStepper-master.a Compiling .pio/build/production/FrameworkArduino/HWCDC.cpp.o`