File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515#[ cfg( all(
1616 not( any( esp32s2, esp32p4) ) ,
17+ esp_idf_bt_nimble_enabled,
1718 not( esp_idf_bt_nimble_l2cap_coc_max_num = "0" )
1819) ) ]
1920fn main ( ) -> anyhow:: Result < ( ) > {
@@ -22,6 +23,7 @@ fn main() -> anyhow::Result<()> {
2223
2324#[ cfg( not( all(
2425 not( any( esp32s2, esp32p4) ) ,
26+ esp_idf_bt_nimble_enabled,
2527 not( esp_idf_bt_nimble_l2cap_coc_max_num = "0" )
2628) ) ) ]
2729fn main ( ) -> anyhow:: Result < ( ) > {
@@ -30,6 +32,7 @@ fn main() -> anyhow::Result<()> {
3032
3133#[ cfg( all(
3234 not( any( esp32s2, esp32p4) ) ,
35+ esp_idf_bt_nimble_enabled,
3336 not( esp_idf_bt_nimble_l2cap_coc_max_num = "0" )
3437) ) ]
3538mod example {
Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ use crate::sys::*;
1818use super :: mbuf:: Mbuf ;
1919use super :: { BleDriver , BleError , ConnHandle } ;
2020
21- // See `mbuf.rs`: on chips whose BLE controller lives in ROM (`SOC_ESP_NIMBLE_CONTROLLER`), the
22- // os_mbuf primitives are ROM-aliased, so that is the only name bindgen emits there.
21+ // See `mbuf.rs`: on chips whose BLE controller lives in ROM (`SOC_ESP_NIMBLE_CONTROLLER`: the
22+ // c2/c5/c6/c61/h2), the low-level os_mbuf / os_msys primitives are ROM-aliased, so `r_<name>` is the
23+ // only name bindgen emits there. (`ble_hs_mbuf_*` are host functions and are *not* aliased.)
2324#[ cfg( all( esp_idf_soc_esp_nimble_controller, esp_idf_bt_controller_enabled) ) ]
2425use crate :: sys:: r_os_mbuf_free_chain as os_mbuf_free_chain;
26+ #[ cfg( all( esp_idf_soc_esp_nimble_controller, esp_idf_bt_controller_enabled) ) ]
27+ use crate :: sys:: r_os_msys_get_pkthdr as os_msys_get_pkthdr;
2528
2629/// An opaque handle to an open L2CAP channel (wraps `*mut ble_l2cap_chan`).
2730///
You can’t perform that action at this time.
0 commit comments