esp-rs / esp-pacs

Peripheral Access Crates for Espressif SoCs and modules
Apache License 2.0
108 stars 33 forks source link

esp32s3 (maybe others) missing dedicated gpio? #183

Closed yanshay closed 10 months ago

yanshay commented 10 months ago

I can't find the DEDICATED_GPIO in esp32s3 while in espressif docs (https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-reference/peripherals/dedic_gpio.html) this functionality is avaliable in that model.

It is available in esp32s2.

Is it missing for a reason?

jessebraham commented 10 months ago

Maybe I'm missing something, but as far as I can tell there are no actual registers for this peripheral? The header file linked in the documentation you shared isn't even in the soc component of ESP-IDF, which has been the case for all other peripherals as far as I can recall.

Is there something specific missing that you're looking for?

yanshay commented 10 months ago

After searching some more, it seems like they provide that functionality but not using registers but rather through specialized cpu instructions: https://www.esp32.com/viewtopic.php?t=27857

That probably means that esp-pacs is not the place to expect that to be, right?

jessebraham commented 10 months ago

Yeah from the sounds of that we will need some driver code in another package somewhere, whether that's esp-hal or somewhere else. The scope of the PACs is really just to provide register access and enumerate the peripheral interrupts, so not really anything to do here.

Thanks for opening the issue regardless, though!