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

Timer selection #21

@vpapanik

Description

@vpapanik

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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions