h2zero / esp-nimble-cpp

C++ library for the esp32 NimBLE stack based on and mostly compatible with @nkolban cpp_utils BLE library.
https://h2zero.github.io/esp-nimble-cpp/
Apache License 2.0
181 stars 62 forks source link

Add initial esp32-P4 support #208

Closed chegewara closed 3 weeks ago

chegewara commented 1 month ago

This commit adds initial support for esp32-p4 with esp32-c6 as a radio. Configuration was tested on this dev board https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32p4/esp32-p4-function-ev-board/user_guide.html

Since it is using esp_hosted component and we cant use bluedroid API i had to disable get and set ble power API. Maybe someone can find better solution, or maybe in the future we can re-enable those functions, when we have support for bluedroid.

Library tested with ble + wifi configuration and works fine.

PS i added some options to Kconfig to enable bluetooth by default, but there is no option to override espressif configs and to enable nimble by default, so it is last option which we have to do manually or with defconfig in our app

h2zero commented 1 month ago

Thanks! I think we can use the alternative power get/set functions through NimBLE API that I am working on in #198