Skip to content

Commit 50c29ea

Browse files
committed
Delete nimconfig
1 parent 3a778c7 commit 50c29ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+53
-469
lines changed

libraries/NimBLE/examples/Bluetooth_5/NimBLE_extended_client/NimBLE_extended_client.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <Arduino.h>
1212
#include <BLEDevice.h>
1313
#if !CONFIG_BT_NIMBLE_EXT_ADV
14-
#error Must enable extended advertising, see nimconfig.h file.
14+
#error Must enable extended advertising.
1515
#endif
1616

1717
#define SERVICE_UUID "ABCD"

libraries/NimBLE/examples/Bluetooth_5/NimBLE_extended_scan/NimBLE_extended_scan.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <Arduino.h>
1111
#include <BLEDevice.h>
1212
#if !CONFIG_BT_NIMBLE_EXT_ADV
13-
#error Must enable extended advertising, see nimconfig.h file.
13+
#error Must enable extended advertising.
1414
#endif
1515

1616
static uint32_t scanTime = 10 * 1000; // In milliseconds, 0 = scan forever

libraries/NimBLE/examples/Bluetooth_5/NimBLE_extended_server/NimBLE_extended_server.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <Arduino.h>
1616
#include <BLEDevice.h>
1717
#if !CONFIG_BT_NIMBLE_EXT_ADV
18-
#error Must enable extended advertising, see nimconfig.h file.
18+
#error Must enable extended advertising.
1919
#endif
2020

2121
#include "esp_sleep.h"

libraries/NimBLE/examples/Bluetooth_5/NimBLE_multi_advertiser/NimBLE_multi_advertiser.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <Arduino.h>
1616
#include <BLEDevice.h>
1717
#if !CONFIG_BT_NIMBLE_EXT_ADV
18-
#error Must enable extended advertising, see nimconfig.h file.
18+
#error Must enable extended advertising.
1919
#endif
2020

2121
#include "esp_sleep.h"

libraries/NimBLE/src/BLE2904.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2020

2121
#include "BLE2904.h"

libraries/NimBLE/src/BLE2904.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_2904_H_
1919
#define NIMBLE_CPP_2904_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include "BLEDescriptor.h"

libraries/NimBLE/src/BLEAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED)
2020

2121
#include "BLEAddress.h"

libraries/NimBLE/src/BLEAddress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#ifndef NIMBLE_CPP_ADDRESS_H_
1919
#define NIMBLE_CPP_ADDRESS_H_
20-
#include "nimconfig.h"
20+
#include "sdkconfig.h"
2121
#if defined(CONFIG_BT_ENABLED)
2222

2323
#include "nimble/ble.h"

libraries/NimBLE/src/BLEAdvertisedDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
2020

2121
#include "BLEDevice.h"

libraries/NimBLE/src/BLEAdvertisedDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ADVERTISED_DEVICE_H_
1919
#define NIMBLE_CPP_ADVERTISED_DEVICE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)
2323

2424
#include "BLEAddress.h"

libraries/NimBLE/src/BLEAdvertisementData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2020

2121
#include "BLEAdvertisementData.h"

libraries/NimBLE/src/BLEAdvertisementData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ADVERTISEMENT_DATA_H_
1919
#define NIMBLE_CPP_ADVERTISEMENT_DATA_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2323

2424
#include <cstdint>

libraries/NimBLE/src/BLEAdvertising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2020

2121
#include "services/gap/ble_svc_gap.h"

libraries/NimBLE/src/BLEAdvertising.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ADVERTISING_H_
1919
#define NIMBLE_CPP_ADVERTISING_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV)
2323

2424
#include "host/ble_gap.h"

libraries/NimBLE/src/BLEAttValue.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED)
2020

2121
#include "nimble/nimble_npl.h"
@@ -33,7 +33,6 @@ BLEAttValue::BLEAttValue(uint16_t init_len, uint16_t max_len)
3333
m_timestamp{}
3434
#endif
3535
{
36-
NIMBLE_CPP_DEBUG_ASSERT(m_attr_value);
3736
if (m_attr_value == nullptr) {
3837
log_e(LOG_TAG, "Failed to calloc ctx");
3938
}
@@ -80,7 +79,6 @@ BLEAttValue &BLEAttValue::operator=(const BLEAttValue &source) {
8079
// Copy all the data from the source object to this object, including allocated space.
8180
void BLEAttValue::deepCopy(const BLEAttValue &source) {
8281
uint8_t *res = static_cast<uint8_t *>(realloc(m_attr_value, source.m_capacity + 1));
83-
NIMBLE_CPP_DEBUG_ASSERT(res);
8482
if (res == nullptr) {
8583
log_e(LOG_TAG, "Failed to realloc deepCopy");
8684
return;
@@ -120,7 +118,6 @@ BLEAttValue &BLEAttValue::append(const uint8_t *value, uint16_t len) {
120118
res = static_cast<uint8_t *>(realloc(m_attr_value, (new_len + 1)));
121119
m_capacity = new_len;
122120
}
123-
NIMBLE_CPP_DEBUG_ASSERT(res);
124121
if (res == nullptr) {
125122
log_e(LOG_TAG, "Failed to realloc append");
126123
return *this;
@@ -144,7 +141,6 @@ BLEAttValue &BLEAttValue::append(const uint8_t *value, uint16_t len) {
144141
}
145142

146143
uint8_t BLEAttValue::operator[](int pos) const {
147-
NIMBLE_CPP_DEBUG_ASSERT(pos < m_attr_len);
148144
if (pos >= m_attr_len) {
149145
log_e(LOG_TAG, "pos >= len, pos=%u, len=%u", pos, m_attr_len);
150146
return 0;

libraries/NimBLE/src/BLEAttValue.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717

1818
#ifndef NIMBLE_CPP_ATTVALUE_H
1919
#define NIMBLE_CPP_ATTVALUE_H
20-
#include "nimconfig.h"
20+
#include "sdkconfig.h"
2121
#if defined(CONFIG_BT_ENABLED)
2222

23-
#ifdef NIMBLE_CPP_ARDUINO_STRING_AVAILABLE
2423
#include <Arduino.h>
25-
#endif
2624

2725
#include <string>
2826
#include <vector>
@@ -117,14 +115,12 @@ class BLEAttValue {
117115
*/
118116
BLEAttValue(const std::vector<uint8_t> vec, uint16_t max_len = BLE_ATT_ATTR_MAX_LEN) : BLEAttValue(&vec[0], vec.size(), max_len) {}
119117

120-
#ifdef NIMBLE_CPP_ARDUINO_STRING_AVAILABLE
121118
/**
122119
* @brief Construct with an initial value from an Arduino String.
123120
* @param str An Arduino String containing to the initial value to set.
124121
* @param[in] max_len The max size in bytes that the value can be.
125122
*/
126123
BLEAttValue(const String str, uint16_t max_len = BLE_ATT_ATTR_MAX_LEN) : BLEAttValue(reinterpret_cast<const uint8_t *>(str.c_str()), str.length(), max_len) {}
127-
#endif
128124

129125
/** @brief Copy constructor */
130126
BLEAttValue(const BLEAttValue &source) {
@@ -365,12 +361,10 @@ class BLEAttValue {
365361
return !(*this == source);
366362
}
367363

368-
#ifdef NIMBLE_CPP_ARDUINO_STRING_AVAILABLE
369364
/** @brief Operator; Get the value as an Arduino String value. */
370365
operator String() const {
371366
return String(reinterpret_cast<char *>(m_attr_value));
372367
}
373-
#endif
374368
};
375369

376370
#endif /*(CONFIG_BT_ENABLED) */

libraries/NimBLE/src/BLEAttribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_ATTRIBUTE_H_
1919
#define NIMBLE_CPP_ATTRIBUTE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && (defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) || defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL))
2323

2424
#include "BLEUUID.h"

libraries/NimBLE/src/BLEBeacon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
2020

2121
#include "BLEBeacon.h"

libraries/NimBLE/src/BLEBeacon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_BEACON_H_
1919
#define NIMBLE_CPP_BEACON_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
2323

2424
class BLEUUID;

libraries/NimBLE/src/BLECharacteristic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2020

2121
#include "BLECharacteristic.h"

libraries/NimBLE/src/BLECharacteristic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#ifndef NIMBLE_CPP_CHARACTERISTIC_H_
1919
#define NIMBLE_CPP_CHARACTERISTIC_H_
20-
#include "nimconfig.h"
20+
#include "sdkconfig.h"
2121
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2222

2323
class BLECharacteristicCallbacks;

libraries/NimBLE/src/BLEClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)
2020

2121
#include "BLEClient.h"

libraries/NimBLE/src/BLEClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_CLIENT_H_
1919
#define NIMBLE_CPP_CLIENT_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)
2323

2424
#include "host/ble_gap.h"

libraries/NimBLE/src/BLEDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2020

2121
#include "BLEService.h"

libraries/NimBLE/src/BLEDescriptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_DESCRIPTOR_H_
1919
#define NIMBLE_CPP_DESCRIPTOR_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include "BLELocalValueAttribute.h"

libraries/NimBLE/src/BLEDevice.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED)
2020

2121
#include "BLEDevice.h"
@@ -1194,17 +1194,4 @@ std::string BLEDevice::toString() {
11941194
return getAddress().toString();
11951195
} // toString
11961196

1197-
#if CONFIG_NIMBLE_CPP_DEBUG_ASSERT_ENABLED
1198-
/**
1199-
* @brief Debug assert - weak function.
1200-
* @param [in] file The file where the assert occurred.
1201-
* @param [in] line The line number where the assert occurred.
1202-
*/
1203-
void nimble_cpp_assert(const char *file, unsigned line) {
1204-
console_printf("Assertion failed at %s:%u\n", file, line);
1205-
ble_npl_time_delay(10);
1206-
abort();
1207-
}
1208-
#endif // CONFIG_NIMBLE_CPP_DEBUG_ASSERT_ENABLED
1209-
12101197
#endif // CONFIG_BT_ENABLED

libraries/NimBLE/src/BLEDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_DEVICE_H_
1919
#define NIMBLE_CPP_DEVICE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED)
2323
#ifndef CONFIG_IDF_TARGET_ESP32P4
2424
#include <esp_bt.h>

libraries/NimBLE/src/BLEEddystoneTLM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
2020

2121
#include "BLEEddystoneTLM.h"

libraries/NimBLE/src/BLEEddystoneTLM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_EDDYSTONETLM_H_
1919
#define NIMBLE_CPP_EDDYSTONETLM_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)
2323

2424
class BLEUUID;

libraries/NimBLE/src/BLEExtAdvertising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && CONFIG_BT_NIMBLE_EXT_ADV
2020

2121
#include "services/gap/ble_svc_gap.h"

libraries/NimBLE/src/BLEExtAdvertising.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_EXTADVERTISING_H_
1919
#define NIMBLE_CPP_EXTADVERTISING_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && CONFIG_BT_NIMBLE_EXT_ADV
2323

2424
#include "host/ble_gap.h"

libraries/NimBLE/src/BLEHIDDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "nimconfig.h"
18+
#include "sdkconfig.h"
1919
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2020

2121
#include "BLEHIDDevice.h"

libraries/NimBLE/src/BLEHIDDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_HIDDEVICE_H_
1919
#define NIMBLE_CPP_HIDDEVICE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include <stdint.h>

libraries/NimBLE/src/BLELocalAttribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_CPP_LOCAL_ATTRIBUTE_H_
1919
#define NIMBLE_CPP_LOCAL_ATTRIBUTE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include "BLEAttribute.h"

libraries/NimBLE/src/BLELocalValueAttribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef NIMBLE_LOCAL_VALUE_ATTRIBUTE_H_
1919
#define NIMBLE_LOCAL_VALUE_ATTRIBUTE_H_
2020

21-
#include "nimconfig.h"
21+
#include "sdkconfig.h"
2222
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
2323

2424
#include "host/ble_hs.h"

0 commit comments

Comments
 (0)