SDAA111 October 2025 CC2340R5
Each time the motor timer expires, the step count is incremented and evaluated. If there are no more steps then the ACTION_STOP application event is called. Otherwise, a case statement is used to determine the next iteration to complete the current step for the motor output pins. The number of iterations is dependent on the stepping mode, whether that is FULL_STEP (four iterations) or HALF_STEP_SLOW/ HALF_STEP_FAST (eight iterations). Only one stepping mode can be selected at any time.