i was using the ADC API from your SDK version 2.0.0(656edbf) (NONOS).
If i read the documentation and the .h file i see that the argument adc_num in:
Code: Select all
void system_adc_read_fast (uint16 *adc_addr, uint16 adc_num, uint8
adc_clk_div)
is a 16bit unsigned integer. Interestingly it behaves though like a uchar8 parameter. From 1 to 255 the
function works propperly and gives the correct results. Whenever i set the parameter higher than 255 the function
stays in a endless loop and the system restarts with the watchdog.
Could you please check and give a patch for the adc_num limitation of 255?
Thanks