mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-19 00:09:58 +00:00
esp-nimble: Conditionally include nimble config for ESP platform
This change segregates nimble config for ESP platform from upstream config. This should ease process of maintaining esp-nimble repository.
This commit is contained in:
committed by
Abhinav Kudnar
parent
38470b3bcc
commit
68e5f51df9
@@ -5,6 +5,10 @@
|
||||
#ifndef H_MYNEWT_SYSCFG_
|
||||
#define H_MYNEWT_SYSCFG_
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
#include "esp_nimble_cfg.h"
|
||||
#else
|
||||
|
||||
/**
|
||||
* This macro exists to ensure code includes this header when needed. If code
|
||||
* checks the existence of a setting directly via ifdef without including this
|
||||
@@ -100,7 +104,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_MSYS_1_BLOCK_COUNT
|
||||
#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (12)
|
||||
#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (20)
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_MSYS_1_BLOCK_SIZE
|
||||
@@ -458,7 +462,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_MAX_CONNECTIONS
|
||||
#define MYNEWT_VAL_BLE_MAX_CONNECTIONS (2)
|
||||
#define MYNEWT_VAL_BLE_MAX_CONNECTIONS (4)
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS
|
||||
@@ -1370,6 +1374,10 @@
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT (4)
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT
|
||||
#define MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT (30)
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT
|
||||
#define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT (16)
|
||||
#endif
|
||||
@@ -1551,3 +1559,4 @@
|
||||
#define MYNEWT_PKG_apache_mynewt_nimble__porting_targets_porting_default 1
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user