Is it possible for one callback to interrupt another calback i.e. timer callback function being interrupted by a uart callback function (which is asynchronous) ??
If the answer is YES to the above is it possible to protect shared variables from being incorrectly updated. In PC programming there are “enter critical section/leave critical section” functions that can be used to protect variables in a multi-task OS enviroment.