Skip to content

Commit 0e7e57f

Browse files
committed
Fix linking errors when compiling for esp32c2
1 parent 8431d52 commit 0e7e57f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/nimble/esp_port/esp-hci/src/na_hci_driver.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,30 @@ hci_driver_ops_t hci_driver_vhci_ops = {
6565
.hci_driver_deinit = hci_driver_vhci_deinit,
6666
};
6767

68+
// Prevent linking errors when using arduino + bluedroid with esp32c2
69+
#if defined (CONFIG_IDF_TARGET_ESP32C2)
70+
void adv_stack_enableClearLegacyAdvVsCmd(bool en){}
71+
void scan_stack_enableAdvFlowCtrlVsCmd(bool en){}
72+
void advFilter_stack_enableDupExcListVsCmd(bool en){}
73+
void arr_stack_enableMultiConnVsCmd(bool en){}
74+
void pcl_stack_enableSetRssiThreshVsCmd(bool en){}
75+
void chanSel_stack_enableSetCsaVsCmd(bool en){}
76+
void log_stack_enableLogsRelatedVsCmd(bool en){}
77+
void hci_stack_enableSetVsEvtMaskVsCmd(bool en){}
78+
void winWiden_stack_enableSetConstPeerScaVsCmd(bool en){}
79+
#if CONFIG_IDF_TARGET_ESP32C61_ECO3
80+
void conn_stack_enableSetPrefTxRxCntVsCmd(bool en){}
81+
#endif // CONFIG_IDF_TARGET_ESP32C61_ECO3
82+
83+
void adv_stack_enableScanReqRxdVsEvent(bool en){}
84+
void conn_stack_enableChanMapUpdCompVsEvent(bool en){}
85+
void sleep_stack_enableWakeupVsEvent(bool en){}
86+
87+
#ifdef SOC_ECC_SUPPORTED
88+
void esp_crypto_ecc_lock_acquire(void) {}
89+
void esp_crypto_ecc_lock_release(void) {}
90+
#endif
91+
#endif
92+
6893
#endif
6994
#endif

0 commit comments

Comments
 (0)