-
Notifications
You must be signed in to change notification settings - Fork 1k
3 compile errors in the example sketch HardwareTimerPWMInput.in #509
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
Comments
Hi @mrguen |
@fpistm Ok, there is still something that I don't get: why the rest of the code compiles? For example I thought there was no support for TIMER INPUT in Arduino_Core_STM32 (couldn't find this defines in the core) but this code compiles with TIMER_IC_INPUT_DEFAULT and it uses the predefined timer instances... Also: is it possible to use all timers configuration (INPUT CAPTURE etc) within Arduino_Core_STM32 ? |
|
Maybe, but I could not tell you why. |
Ok, I was confused because the boards manager shows "STM32F1Boards (STM32duino.com)" so I thought It was refering to an Arduino_Core_STM32 board. In fact I am using Roger Clark Melbourne libraries. Thanks for the fast answer. |
Welcome. |
Close this one as OP open rogerclarkmelbourne/Arduino_STM32#626 |
Hello,
I am looking for a way to use TIMER INPUT and found this nice example sketch " HardwareTimerPWMInput.in" but there are a few compilation errors:
Then after removing this include:
HardwareTimerPWMInput:28:9: error: no match for 'operator<<' (operand types are 'USBSerial' and 'const char [80]')
Serial << "Example of the Timer Input Capture mode to measure PWM pulse width and period\n\n";
HardwareTimerPWMInput:73:61: error: 'endl' was not declared in this scope
Serial << ", period: " << Timer2.getCompare(TIMER_CH1) << endl;
Configuration:
Win 7 64 pro
Arduino IDE 1.8.9
Arduino_Core_STM32 1.5.0 updated via boards manager
The text was updated successfully, but these errors were encountered: