summaryrefslogtreecommitdiff
path: root/ports/esp32/esp32_common.cmake
diff options
context:
space:
mode:
authorJonathan Hogg <me@jonathanhogg.com>2023-08-15 13:03:45 +0100
committerDamien George <damien@micropython.org>2025-08-01 23:45:18 +1000
commitc3f3339c87444acec814a150fdad28e650483405 (patch)
tree215915b2cd5c0c1699bde05b5e83b3b539d06d88 /ports/esp32/esp32_common.cmake
parentbf6f229cf3feb6767d37b9df9dcf1e2d9abc49bd (diff)
esp32/modesp32: Add esp32.PCNT class.
Add a new `esp32.PCNT` class that provides complete, low-level support to the ESP32 PCNT pulse counting hardware units. This can be used as a building block to implement the higher-level `machine.Counter` and `machine.Encoder` classes. This is enabled by default on all OG, S2, S3, C6 boards, but not on C3 (as the PCNT peripheral is not supported). Original implementation by: Jonathan Hogg <me@jonathanhogg.com> Signed-off-by: Jim Mussared <jim.mussared@gmail.com> Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'ports/esp32/esp32_common.cmake')
-rw-r--r--ports/esp32/esp32_common.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/esp32/esp32_common.cmake b/ports/esp32/esp32_common.cmake
index 09b120391..9e8acf889 100644
--- a/ports/esp32/esp32_common.cmake
+++ b/ports/esp32/esp32_common.cmake
@@ -127,6 +127,7 @@ list(APPEND MICROPY_SOURCE_PORT
modesp.c
esp32_nvs.c
esp32_partition.c
+ esp32_pcnt.c
esp32_rmt.c
esp32_ulp.c
modesp32.c