Synopsis
#include <ctl_api.h> void ctl_handle_error(CTL_ERROR_CODE_t error);
Description
ctl_handle_error is a function that you must supply in your application that handles errors detected by the CrossWorks tasking library.
The errors that can be reported are:
- CTL_ERROR_NO_TASKS_TO_RUN — a reschedule has occured but there are no tasks which are runnable.
- CTL_WAIT_CALLED_FROM_ISR — an interrupt service routine has called a tasking library function that could block.
- CTL_SUICIDE_IN_ISR — the ctl_task_die function has been called from an interrupt service routine.
Portability
ctl_handle_error is used in every implementation of the CrossWorks tasking library