diff --git a/nimble/controller/include/controller/ble_phy.h b/nimble/controller/include/controller/ble_phy.h index 193c0c881..871f51a60 100644 --- a/nimble/controller/include/controller/ble_phy.h +++ b/nimble/controller/include/controller/ble_phy.h @@ -26,6 +26,14 @@ extern "C" { #endif +#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_2M_PHY) && !MYNEWT_VAL(BSP_NRF52840) +#error LE 2M PHY can only be enabled on nRF52840 +#endif + +#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CODED_PHY) && !MYNEWT_VAL(BSP_NRF52840) +#error LE Coded PHY can only be enabled on nRF52840 +#endif + /* Forward declarations */ struct os_mbuf;