- int index; ///< DC motor id.
- uint32_t status; ///< Status of select DC motor
- dc_speed_t tgt_speed; ///< Target speed for select DC motor
+#if !CFG_PWM_ENABLE_OLD_API
+ Pwm pwm; // Pwm context
+#endif
+
+ int index; // DC motor id.
+ uint32_t status; // Status of select DC motor
+ dc_speed_t tgt_speed; // Target speed for select DC motor
+
+ ticks_t expire_time; // Amount of time that dc motor run