-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)' #9
Comments
Hello! In the original use case Regards! |
I have similar issues.. I tried to compile libary.ino on a ESP32 Dev module and I get this error: C:\Users\ricky\Downloads\WAVRecorder-main (1)\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::setup(uint32_t, void ()())': Compilation error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)' |
hello, I ran the library.ino code and the compiler gave me this error, can you help?
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::setup(uint32_t, void ()())':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:17:27: error: too many arguments to function 'hw_timer_t timerBegin(uint32_t)'
17 | timer = timerBegin(0, 20, true);
| ~~~~~~~~~~^~~~~~~~~~~~~
In file included from C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal.h:84,
from C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.h:5,
from C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:1:
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:35:13: note: declared here
35 | hw_timer_t timerBegin(uint32_t frequency);
| ^~~~~~~~~~
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:18:29: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t, void (*)())'
18 | timerAttachInterrupt(timer, f, true);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t *timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:19:9: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
19 | timerAlarmWrite(timer, 4000000 / frequency, true); // 500 for 8Khz, 250 for 16Khz, 125 for 32Khz
| ^~~~~~~~~~~~~~~
| timerWrite
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::start()':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:37:9: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
37 | timerAlarmEnable(timer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp: In member function 'void AudioTimer::stop()':
C:\Users\User\Desktop\WAVRecorder-main\library\src\AudioTimer.cpp:52:17: error: 'timerAlarmDisable' was not declared in this scope
52 | timerAlarmDisable(timer);
| ^~~~~~~~~~~~~~~~~
exit status 1
Compilation error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
The text was updated successfully, but these errors were encountered: