Could you elaborate a bit more on what you mean by "Is there a way to stop the processing of this function from the outside?"
By outside, do you mean a hardware interrupt or some condition which needs to stop the processing?
Thank you for your reply.
The expression was ambiguous.
"External" is a function of a thread other than the thread that started wiced_wps_enrollee ()..
Is there a way?
1 of 1 people found this helpful
You could use semaphores to achieve this. You could maybe set a semaphore in your 'external function' and once this semaphore is set, you could modify the thread running wiced_wps_enrollee () to stop. Once stopped, you could maybe continue monitoring your 'external function' to reset the semaphore and start the wiced_wps_enrollee () function again if required.
Thanks and Regards