Hi,
i used the OS-less HAL osal. Can i call adcConvert from an interrupt? This function hangs in osalThreadSuspendS.
Thanks
adcConvert
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: adcConvert
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
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