2007-05-23 04:53 AM
one more STR library bug found! routine ADC_GetAnalogWatchdogResult()
2011-05-17 12:43 AM
Lack of parenthesis in the function ADC_GetAnalogWatchdogResult() causes wrong test result!
This is because the != operator has precedence over the & operator (see K&R). Change the first line of the function as follows: if ( (ADC->CRR & (1 << ADC_Channel)) != RESET) Take care