Native SDK capabilities related to ESP32

Thanks in advance for any help you can provide, I am new user of Mongoose OS, and I am experimenting with it on a dev board based on the ESP32.

  • My goal is to be able to count pulses from a incremental encoder of a small DC motor, I know that the esp32 has a pulse counter hardware built-in. I have read in the features section that Mongoose OS is " Built on top of native SDK. All native SDK capabilities are transparently available", and have found out that the native sdk mongoose is using is ESP-IDF, so is it possible to use ESP-IDP API for the pulse counter module and use it in a mongoose app, if that is possible: How can I use some of functionalities of the native sdk inside mongoose OS? Do I need to add the respective libraries of ESP-IDF inside the src/main.c file? or what?.
    I appreciate any guidance anyone can give me on this, thanks again.

The bt-common library is a good example which shows how to use additional esp-idf components.
Have a look at mos_esp32.yml

Thanks nliviu, I’ll check it out!