esp-hal/esp32s3-hal/examples
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
..
adc.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
advanced_serial.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
blinky.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
clock_monitor.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
embassy_hello_world.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
gpio_interrupt.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
hello_rgb.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
hello_world.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
i2c_bmp180_calibration_data.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
i2c_display.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
i2s_read.rs Peripheral ref/gpio (#323) 2022-12-19 14:40:29 +00:00
i2s_sound.rs Peripheral ref/gpio (#323) 2022-12-19 14:40:29 +00:00
ledc.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
mcpwm.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
multicore.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
pcnt_encoder.rs pulse counter implementation (#328) 2023-01-17 17:04:22 +00:00
pulse_control.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
ram.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
read_efuse.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
rtc_watchdog.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
serial_interrupts.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
sha.rs Peripheral ref/sha (#312) 2022-12-14 12:19:53 +00:00
spi_eh1_device_loopback.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
spi_eh1_loopback.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
spi_loopback_dma.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
spi_loopback.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
systimer.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
timer_interrupt.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
twai.rs enable TWAI on ESP32-S3 (#325) 2023-01-03 10:02:01 -08:00
usb_serial_jtag.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
usb_serial.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00
watchdog.rs PeripheralRef init: uart (#272) 2022-12-12 14:45:33 +00:00