UTIL_DbguGetIntegerMinMax
Default mainpageat91libutilityUTIL_DbguGetIntegerMinMax
Description Source Call Graph
Start Line: 155
unsigned char UTIL_DbguGetIntegerMinMax(unsigned int *pValue, unsigned int min, unsigned int max)
{
    unsigned int value = 0;

    if( UTIL_DbguGetInteger(&value) == 0) {
        return 0;
    }
    
    if(value < min || value > max) {
        printf("\n\rThe number have to be between %d and %d\n\r", min, max);
        return 0; 
    }

    printf("\n\r"); 
    *pValue = value;
    return 1;
}