Nimble: Fixed setting macro values based on selected configuration

This commit is contained in:
Rahul Tank 2023-05-19 15:37:42 +05:30
parent e2fe2bf152
commit 9901bdf3da
2 changed files with 7 additions and 6 deletions

@ -1 +1 @@
Subproject commit d3d5c84b43fc8c790c7b389416fc391b8e9475a6 Subproject commit ca668cf0aa11704f3fde4b641cb2a30758792975

View File

@ -91,6 +91,7 @@
#define BLE_50_FEATURE_SUPPORT (CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT) #define BLE_50_FEATURE_SUPPORT (CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT)
#endif #endif
#endif #endif
#ifndef CONFIG_BT_NIMBLE_EXT_ADV #ifndef CONFIG_BT_NIMBLE_EXT_ADV
#define MYNEWT_VAL_BLE_EXT_ADV (0) #define MYNEWT_VAL_BLE_EXT_ADV (0)
#else #else
@ -141,25 +142,25 @@
#endif #endif
#ifndef CONFIG_BT_NIMBLE_ROLE_BROADCASTER #ifndef CONFIG_BT_NIMBLE_ROLE_BROADCASTER
#define MYNEWT_VAL_BLE_ROLE_BROADCASTER (1) #define MYNEWT_VAL_BLE_ROLE_BROADCASTER (0)
#else #else
#define MYNEWT_VAL_BLE_ROLE_BROADCASTER (CONFIG_BT_NIMBLE_ROLE_BROADCASTER) #define MYNEWT_VAL_BLE_ROLE_BROADCASTER (CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
#endif #endif
#ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL #ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL
#define MYNEWT_VAL_BLE_ROLE_CENTRAL (1) #define MYNEWT_VAL_BLE_ROLE_CENTRAL (0)
#else #else
#define MYNEWT_VAL_BLE_ROLE_CENTRAL (CONFIG_BT_NIMBLE_ROLE_CENTRAL) #define MYNEWT_VAL_BLE_ROLE_CENTRAL (CONFIG_BT_NIMBLE_ROLE_CENTRAL)
#endif #endif
#ifndef CONFIG_BT_NIMBLE_ROLE_OBSERVER #ifndef CONFIG_BT_NIMBLE_ROLE_OBSERVER
#define MYNEWT_VAL_BLE_ROLE_OBSERVER (1) #define MYNEWT_VAL_BLE_ROLE_OBSERVER (0)
#else #else
#define MYNEWT_VAL_BLE_ROLE_OBSERVER (CONFIG_BT_NIMBLE_ROLE_OBSERVER) #define MYNEWT_VAL_BLE_ROLE_OBSERVER (CONFIG_BT_NIMBLE_ROLE_OBSERVER)
#endif #endif
#ifndef CONFIG_BT_NIMBLE_ROLE_PERIPHERAL #ifndef CONFIG_BT_NIMBLE_ROLE_PERIPHERAL
#define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (1) #define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (0)
#else #else
#define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) #define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
#endif #endif
@ -320,7 +321,7 @@
#endif #endif
#ifndef CONFIG_BT_NIMBLE_HCI_UART_PORT #ifndef CONFIG_BT_NIMBLE_HCI_UART_PORT
#define MYNEWT_VAL_BLE_HCI_UART_PORT (1) #define MYNEWT_VAL_BLE_HCI_UART_PORT (0)
#else #else
#define MYNEWT_VAL_BLE_HCI_UART_PORT (CONFIG_BT_NIMBLE_HCI_UART_PORT) #define MYNEWT_VAL_BLE_HCI_UART_PORT (CONFIG_BT_NIMBLE_HCI_UART_PORT)
#endif #endif