hal_exit — terminate a component
int hal_exit ( int comp_id)
A HAL component identifier returned by an earlier call to hal_init.
hal_exit terminates a component, and unlinks and removes all
its pins and parameters.
It also removes any thread functions currently added to a thread.
Call only from within user or init/cleanup code, not from realtime tasks.
Returns a HAL status code.