Skip to content

Commit 6842c87

Browse files
revert macros
1 parent 6a2b6b8 commit 6842c87

File tree

1 file changed

+9
-9
lines changed
  • features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg

1 file changed

+9
-9
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/stack/cordio_stack/ble-host/sources/stack/cfg/cfg_stack.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,23 @@ extern "C" {
7676
/**@{*/
7777
/*! \brief Maximum number of connections */
7878
#ifndef DM_CONN_MAX
79-
#define DM_CONN_MAX CORDIO_CFG_MAX_CONNECTIONS
79+
#define DM_CONN_MAX 3
8080
#endif
8181

8282
/*! \brief Maximum number of periodic advertising synchronizations */
8383
#ifndef DM_SYNC_MAX
84-
#define DM_SYNC_MAX CORDIO_CFG_MAX_SYNCS
84+
#define DM_SYNC_MAX 1
8585
#endif
8686

8787
/*! \brief Number of supported advertising sets: must be set to 1 for legacy advertising */
8888
#ifndef DM_NUM_ADV_SETS
89-
#define DM_NUM_ADV_SETS CORDIO_CFG_MAX_ADVERTISING_SETS
89+
#define DM_NUM_ADV_SETS 3
9090
#endif
9191

9292
/*! \brief Number of scanner and initiator PHYs (LE 1M, LE 2M and LE Coded): must be set to 1 for
9393
legacy scanner and initiator */
9494
#ifndef DM_NUM_PHYS
95-
#define DM_NUM_PHYS CORDIO_CFG_MAX_PHYS
95+
#define DM_NUM_PHYS 3
9696
#endif
9797
/**@}*/
9898

@@ -106,12 +106,12 @@ extern "C" {
106106
/**@{*/
107107
/*! \brief Maximum number of connection oriented channels */
108108
#ifndef L2C_COC_CHAN_MAX
109-
#define L2C_COC_CHAN_MAX CORDIO_CFG_MAX_L2CAP_CHANNELS
109+
#define L2C_COC_CHAN_MAX 8
110110
#endif
111111

112112
/*! \brief Maximum number of connection oriented channel registered clients */
113113
#ifndef L2C_COC_REG_MAX
114-
#define L2C_COC_REG_MAX CORDIO_CFG_MAX_L2CAP_CLIENTS
114+
#define L2C_COC_REG_MAX 4
115115
#endif
116116
/**@}*/
117117

@@ -125,12 +125,12 @@ extern "C" {
125125
/**@{*/
126126
/*! \brief Maximum number of simultaneous ATT write commands */
127127
#ifndef ATT_NUM_SIMUL_WRITE_CMD
128-
#define ATT_NUM_SIMUL_WRITE_CMD CORDIO_CFG_MAX_ATT_WRITES
128+
#define ATT_NUM_SIMUL_WRITE_CMD 1
129129
#endif
130130

131131
/*! \brief Maximum number of simultaneous ATT notifications */
132132
#ifndef ATT_NUM_SIMUL_NTF
133-
#define ATT_NUM_SIMUL_NTF CORDIO_CFG_MAX_ATT_NOTIFICATIONS
133+
#define ATT_NUM_SIMUL_NTF 1
134134
#endif
135135
/**@}*/
136136

@@ -144,7 +144,7 @@ extern "C" {
144144
/**@{*/
145145
/*! Max number of devices in the database */
146146
#ifndef SMP_DB_MAX_DEVICES
147-
#define SMP_DB_MAX_DEVICES CORDIO_CFG_MAX_SMP_DEVICES
147+
#define SMP_DB_MAX_DEVICES 3
148148
#endif
149149
/**@}*/
150150

0 commit comments

Comments
 (0)