You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/03/06 12:11:26 UTC

[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8741: pwm: add config option to support dead time delay + add dead time support to SAMv7 MCU

pkarashchenko commented on code in PR #8741:
URL: https://github.com/apache/nuttx/pull/8741#discussion_r1126331253


##########
arch/arm/src/samv7/sam_pwm.c:
##########
@@ -326,6 +326,11 @@ static void pwm_set_output(struct pwm_lowerhalf_s *dev, uint8_t channel,
 static void pwm_set_freq(struct pwm_lowerhalf_s *dev, uint8_t channel,
                          uint32_t frequency);
 static void pwm_set_comparison(struct pwm_lowerhalf_s *dev);
+#ifdef CONFIG_PWM_DEADTIME
+static void pwm_set_deadtime(struct pwm_lowerhalf_s *dev, uint8_t channel,
+                           ub16_t dead_time_a, ub16_t dead_time_b,
+                           ub16_t duty);

Review Comment:
   ```suggestion
   static void pwm_set_deadtime(struct pwm_lowerhalf_s *dev, uint8_t channel,
                                ub16_t dead_time_a, ub16_t dead_time_b,
                                ub16_t duty);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org