diff options
| author | Damien George <damien@micropython.org> | 2021-06-24 12:37:50 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-09-04 16:31:17 +1000 |
| commit | af64c2ddbd758ab6bac0fcca94c66d89046663be (patch) | |
| tree | ac74e85ea4a33e41391a29194321b9fa9999b1fe /ports/esp32/modmachine.h | |
| parent | 9792c9105f13f8d0196677e3e4bf003a96998c7b (diff) | |
extmod/machine_pwm: Factor out machine.PWM bindings to common code.
This commit refactors machine.PWM and creates extmod/machine_pwm.c. The
esp8266, esp32 and rp2 ports all use this and provide implementations of
the required PWM functionality. This helps to reduce code duplication and
keep the same Python API across ports.
This commit does not make any functional changes.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp32/modmachine.h')
| -rw-r--r-- | ports/esp32/modmachine.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ports/esp32/modmachine.h b/ports/esp32/modmachine.h index 7bf03b0ca..afc2ab07f 100644 --- a/ports/esp32/modmachine.h +++ b/ports/esp32/modmachine.h @@ -15,7 +15,6 @@ extern const mp_obj_type_t machine_pin_type; extern const mp_obj_type_t machine_touchpad_type; extern const mp_obj_type_t machine_adc_type; extern const mp_obj_type_t machine_dac_type; -extern const mp_obj_type_t machine_pwm_type; extern const mp_obj_type_t machine_hw_i2c_type; extern const mp_obj_type_t machine_hw_spi_type; extern const mp_obj_type_t machine_i2s_type; |
