esp-hal/esp-hal-common/src/gpio
liebman ac206af656
pulse counter implementation (#328)
* start of pulse counter implementation

* implement interrupts
implement pcnt for esp32, esp32s2, and esp32s3

* implement pcnt for esp32s2

* fix esp32 PCNT signal names

* update PCNT register/fields for cleaned up PAC

* implement events/get_events (choosing what events interrupt)

* added pcnt example: simple encoder configuration

* restrict pcnt::channel::Channel::new() to super

* PcntPin -> PcntSignal
added range checks for thresholds and limits

* PcntSource is a better name I think

* handle error for PCNT Unit configure() in example

* update pac versions for status register change

* cargo fmt

* cargo fmt (examples)

* PcntSource now only stores the source id.
add a critical section to protect the ctrl & isr_en registers

* cargo fmt
2023-01-17 17:04:22 +00:00
..
esp32.rs pulse counter implementation (#328) 2023-01-17 17:04:22 +00:00
esp32c2.rs
esp32c3.rs
esp32s2.rs pulse counter implementation (#328) 2023-01-17 17:04:22 +00:00
esp32s3.rs pulse counter implementation (#328) 2023-01-17 17:04:22 +00:00