- const DCMotorConfig *cfg; ///< All configuration for select DC motor.
- PidContext pid_ctx; ///< Pid control.
+ const DCMotorConfig *cfg; // All configuration for select DC motor.
+ PidContext pid_ctx; // Pid control.
+
+#if !CFG_PWM_ENABLE_OLD_API
+ Pwm pwm; // Pwm context
+#endif