Skip to content

timer loop in adc.c #152

@4var1

Description

@4var1

Another one for when I've finished playing with mspider's changes:

adc calibration timers may not wait as expected if startup times are long:

ui16_counter = TIM3_GetCounter() + 6000;
while(TIM3_GetCounter() < ui16_counter) ;

works ok if initial timer values are < (65535-6000) - values above that the loop won't wait at all...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions