Reverted callback changes
Reverted callback changes part II: UART IO
This time: state machine. Part I
State machine. Part II
State machine. Part III