esp-rs / esp-idf-sys

Bindings for ESP-IDF (Espressif's IoT Development Framework)
Apache License 2.0
264 stars 120 forks source link

How can I include esp_hidd.h? #108

Open mtsmfm opened 2 years ago

mtsmfm commented 2 years ago

I can't find the way to include esp_hidd.h. Currently I forked and added a change as a work around.

https://github.com/esp-rs/esp-idf-sys/compare/master...mtsmfm:esp-idf-sys:master

MabezDev commented 2 years ago

That's how to add it currently, though you may need some #ifdef statements to make sure it's only included if the relevant component is enabled.

mtsmfm commented 2 years ago

@MabezDev I'm not familiar with esp config though, CONFIG_BT_HID_DEVICE_ENABLED is the one?

https://github.com/espressif/esp-idf/blob/220590d599e134d7a5e7f1e683cc4550349ffbf8/components/esp_hid/src/bt_hidd.c#L16