Skip to content

Commit

Permalink
esp-nimble: Conditionally include nimble config for ESP platform
Browse files Browse the repository at this point in the history
This change segregates nimble config for ESP platform from upstream
config. This should ease process of maintaining esp-nimble repository.
  • Loading branch information
sagb2015 authored and ESPAbhinav committed Feb 14, 2024
1 parent 38470b3 commit 68e5f51
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions porting/nimble/include/syscfg/syscfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1551,3 +1559,4 @@
#define MYNEWT_PKG_apache_mynewt_nimble__porting_targets_porting_default 1

#endif
#endif

0 comments on commit 68e5f51

Please sign in to comment.