summaryrefslogtreecommitdiff
path: root/shared-bindings/pulseio/PulseOut.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared-bindings/pulseio/PulseOut.h')
-rw-r--r--shared-bindings/pulseio/PulseOut.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/shared-bindings/pulseio/PulseOut.h b/shared-bindings/pulseio/PulseOut.h
index 090f6d15c..9d4778e93 100644
--- a/shared-bindings/pulseio/PulseOut.h
+++ b/shared-bindings/pulseio/PulseOut.h
@@ -33,13 +33,11 @@
extern const mp_obj_type_t pulseio_pulseout_type;
-#ifndef CPY_PULSEOUT_USES_DIGITALIO
extern void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t* self,
- const pulseio_pwmout_obj_t* carrier);
-#else
-extern void common_hal_pulseio_pulseout_construct(pulseio_pulseout_obj_t* self,
- const mcu_pin_obj_t* pin, uint32_t frequency);
-#endif
+ const pulseio_pwmout_obj_t* carrier,
+ const mcu_pin_obj_t* pin,
+ uint32_t frequency,
+ uint16_t duty_cycle);
extern void common_hal_pulseio_pulseout_deinit(pulseio_pulseout_obj_t* self);
extern bool common_hal_pulseio_pulseout_deinited(pulseio_pulseout_obj_t* self);