Having a problem here: Timer1.setCompare(TIMER_CH1, 1);
The compiler shows an error, TIMER_CH1 is not defined.
What could I have missed? I have included HardwareTimer.h
Have also tried several other code examples with the HardwareTimer instance, but none of them I was able to compile.
And how can the interrupt priority changed with NVIC_SetPriority()?
void setCaptureCompare(uint32_t channel, uint32_t compare, TimerCompareFormat_t format = TICK_COMPARE_FORMAT); // set Compare register value of specified channel depending on format provided