Hello everyone, Our project has reached a point where we need the Power Manager functionality, which is not yet available in the ESP32C6. I am studying to start the implementation, but I am confused about the correct way to approach this.
There is a Power Manager implementation for the ESP32C3, but it seems to follow the legacy methodology. In fact, the file esp32c3_idle.c is located in the path arch/risc-v/src/esp32c3-legacy. In this methodology, functions are re-implemented from the Espressif driver. For example, the function esp32c3_light_sleep_start(), which is currently available in esp32c6/esp-hal-3rdparty/.../sleep_modes.c. I tried using the implementations from esp-hal-3rdparty to develop the Power Manager for the ESP32C6 in NuttX, but the files still have many dependencies on items that are not present in NuttX. My question is: Should I try to make the Power Manager work using the functions in esp-hal-3rdparty, even if it requires making changes to the 3rd-party code? Or should I re-implement the functions within NuttX, even if, in this case, there are functions with the same scope and implementation in different files, where one is compiled, and the other is not? -- *Felipe Moura de Oliveira* *Universidade Federal de Minas Gerais* Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> <https://twitter.com/FelipeMOliveir?lang=pt-br>