Description
Board
ESP32 devboard
Device Description
Board is a data multiplexer
Hardware Configuration
N/A
Version
latest master (checkout manually)
IDE Name
2.2.1
Operating System
win10
Flash frequency
N/A
PSRAM enabled
yes
Upload speed
115200
Description
esp32-hal-timer library seems to have been significantly changed, which affects how previously good code will now compile.
I am not sure why this has occurred, but my code exposed a number of functions whose definitions have been (?unnecessarily?) altered in V3.0.0.
I would request that the "updates" for esp32-hal-timer be reviewed in detail for consistency with the previous versions, and corrected to ensure backwards compatibility and restore functionalty!
The specific functions that I noted had changed significantly were:
timerBegin
Changed from timerBegin(uint8_t num, uint16_t divider, bool countUp){
to timerBegin(uint32_t frequency){ !!
timerAlarmWrite Completely missing in new library
timerAlarmEnable Completely missing in new library
Comparison of the old esp32-hal-timer from 2.0.14 to the new one shows many other (? unnecessary ?) changes.
First noted in #8765
Sketch
example in hardware serial detector:
void IRAM_ATTR onRx() {
detachInterrupt(rxPin);
rxBitCounter = 1;
rxByte = 0;
timerStart(timer_1);
timerAlarmWrite(timer_1, ini_time, true);
timerAlarmEnable(timer_1);
last_ST_time = micros();
}
Debug Message
N/A see https://github.com/espressif/arduino-esp32/issues/8765
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.