esp-rs / esp-pacs

Peripheral Access Crates for Espressif SoCs and modules
Apache License 2.0
115 stars 35 forks source link

Defined reserved `RMT_SYS_CONF_REG` register bits of ESP32-H2 #278

Closed Tnze closed 1 month ago

Tnze commented 2 months ago

According to the TRM:

Only 5 bits of RMT_SYS_CONF_REG defined.

image

But lots of reserved bits in the pacs:

https://github.com/esp-rs/esp-pacs/blob/c717453df31e5f37c48edd287906bbf09aa82112/esp32h2/src/rmt/sys_conf.rs#L114-L175

Which cause the esp-hal incorrectly writes them but not discovered at compile-time.