Page 1 of 1

adcConvert

Posted: Thu Dec 10, 2015 10:36 am
by neums
Hi,
i used the OS-less HAL osal. Can i call adcConvert from an interrupt? This function hangs in osalThreadSuspendS.

Thanks

Re: adcConvert

Posted: Thu Dec 10, 2015 11:42 am
by Giovanni
Hi,

Of course not, you cannot suspend in an ISR regardless if you use an OS or not. You need to use adcStartConversionI(), the callback is the signal that the conversion is over.

Giovanni

Re: adcConvert

Posted: Thu Dec 10, 2015 1:06 pm
by neums
Of cource. epic fail. :-)