SDAA075 October 2025 CC2340R5
When a user operation or hardware callback sets an event, the following routines are processed.
| Routine | Function |
|---|---|
| ACTION_UART | Process either Bluetooth LE or UART functionality received through user input which was described earlier. Developers can modify this section to determine functionality and user interface. |
| ACTION_CONTINUE | Start the motor by driving to the DRV pin low, setting the minimum duty cycle, initializing the correct motor GPIO states, starting application timers, and opening the PWM TI Driver. This routine is not performed if the PWM TI Driver is already opened. |
| ACTION_STOP | Stop the motor by driving the DRV pin high, resetting the motor GPIO pins, stopping relevant application clocks, and stopping the PWM TI Driver. This also reports out the cause of the stop through UART. |
| ACTION_HALL | After a hall sensor pin callback, reads all hall sensor states and proceeds along the motor commutation table accordingly. |
| ACTION_PWM | Serviced whenever the acceleration clock expires to increment or decrement the duty cycle value until this matches the goal, and then stop the acceleration clock once achieved. |