Skip to content

Commit 4465463

Browse files
committed
Change thread stack sizes
1 parent 95ae967 commit 4465463

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libraries/Wire/Wire.cpp

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

2323
#include "Wire.h"
2424

25-
arduino::MbedI2C::MbedI2C(int sda, int scl) : _sda(sda), _scl(scl), usedTxBuffer(0) {}
25+
arduino::MbedI2C::MbedI2C(int sda, int scl) : _sda(sda), _scl(scl), usedTxBuffer(0), slave_th(osPriorityNormal, 2048) {}
2626

2727
void arduino::MbedI2C::begin() {
2828
master = new mbed::I2C((PinName)_sda, (PinName)_scl);

variants/UNISENSE/conf/mbed_app.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"platform.stdio-baud-rate": 115200,
1313
"platform.default-serial-baud-rate": 115200,
1414
"platform.callback-nontrivial": true,
15+
"rtos.main-thread-stack-size": 2048,
16+
"rtos.thread-stack-size": 1024,
1517
"target.mbed_app_start": "0x10000",
1618
"target.components_add" : ["SPIF"],
1719
"cordio.max-connections": 5

0 commit comments

Comments
 (0)