Skip to content

Commit 82cd7e8

Browse files
committed
Allow the task stack sizes to be configured
1 parent f42cf4b commit 82cd7e8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

cores/nRF5/utility/AdaCallback.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,18 @@
3838

3939
#include "common_inc.h"
4040

41+
#ifndef CFG_CALLBACK_TASK_STACKSIZE
4142
#define CFG_CALLBACK_TASK_STACKSIZE (512*2)
43+
#endif
44+
45+
#ifndef CFG_CALLBACK_QUEUE_LENGTH
4246
#define CFG_CALLBACK_QUEUE_LENGTH 20
47+
#endif
48+
49+
#ifndef CFG_CALLBACK_TIMEOUT
4350
#define CFG_CALLBACK_TIMEOUT 100
51+
#endif
52+
4453

4554
#ifdef __cplusplus
4655
extern "C"{

libraries/Bluefruit52Lib/src/bluefruit.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,23 @@
4242
#include "usb/usb.h"
4343
#endif
4444

45+
#ifndef CFG_BLE_TX_POWER_LEVEL
4546
#define CFG_BLE_TX_POWER_LEVEL 0
47+
#endif
48+
49+
#ifndef CFG_DEFAULT_NAME
4650
#define CFG_DEFAULT_NAME "Bluefruit52"
51+
#endif
52+
4753

54+
#ifndef CFG_BLE_TASK_STACKSIZE
4855
#define CFG_BLE_TASK_STACKSIZE (512*3)
56+
#endif
57+
58+
#ifndef CFG_SOC_TASK_STACKSIZE
4959
#define CFG_SOC_TASK_STACKSIZE (200)
60+
#endif
61+
5062

5163
AdafruitBluefruit Bluefruit;
5264

0 commit comments

Comments
 (0)