This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Description
Hi, this may sound dumb, but I am trying to select the timer using
#define USING_TIM_DIV1 true
however I get the warning
warning: #warning Default to using TIM_DIV256_CLOCK for longest timer but least accurate [-Wcpp]
which does not make much sense. What am I doing wrong here ? I should have get this warning instead :
#if ( defined(USING_TIM_DIV1) && USING_TIM_DIV1 )
#warning Using TIM_DIV1_CLOCK for shortest and most accurate timer
#define TIM_CLOCK_FREQ TIM_DIV1_CLOCK
#define TIM_DIV TIM_DIV1
I am using Microchip Studio with vMicro Arduino interface.
I also tried Arduino IDE, same message there as well.
