Skip to content

Commit b3a5d6a

Browse files
authored
Merge pull request #15454 from world-direct/feature/cellularevents
make cellular event queue size configurable
2 parents 7049bfc + ab46d51 commit b3a5d6a

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

connectivity/cellular/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
"at-handler-buffer-size" : {
4949
"help": "Size of the AT handler buffer",
5050
"value": 32
51+
},
52+
"event-queue-size": {
53+
"help": "The amount of events the default EventQueue should store",
54+
"value": 10
5155
}
5256
}
5357
}

connectivity/cellular/source/framework/device/CellularDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CellularDevice::CellularDevice() :
3939
#if MBED_CONF_CELLULAR_USE_SMS
4040
_sms_ref_count(0),
4141
#endif //MBED_CONF_CELLULAR_USE_SMS
42-
_info_ref_count(0), _queue(10 * EVENTS_EVENT_SIZE), _state_machine(0),
42+
_info_ref_count(0), _queue(MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE * EVENTS_EVENT_SIZE), _state_machine(0),
4343
_status_cb(), _nw(0)
4444
#ifdef MBED_CONF_RTOS_PRESENT
4545
, _queue_thread(osPriorityNormal, 2048, NULL, "cellular_queue")

connectivity/cellular/tests/UNITTESTS/framework/device/athandler/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ target_compile_definitions(${TEST_NAME}
1515
DEVICE_INTERRUPTIN=1
1616
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
1717
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
18+
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
1819
MBED_CONF_RTOS_PRESENT=1
1920
)
2021

connectivity/cellular/tests/UNITTESTS/framework/device/cellularcontext/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ target_compile_definitions(${TEST_NAME}
2121
DEVICE_INTERRUPTIN=1
2222
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
2323
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
24+
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
2425
)
2526

2627
target_sources(${TEST_NAME}

connectivity/cellular/tests/UNITTESTS/framework/device/cellulardevice/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ target_compile_definitions(${TEST_NAME}
1919
DEVICE_INTERRUPTIN=1
2020
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
2121
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
22+
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
2223
)
2324

2425
target_sources(${TEST_NAME}

connectivity/cellular/tests/UNITTESTS/framework/device/cellularstatemachine/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ target_compile_definitions(${TEST_NAME}
2020
DEVICE_INTERRUPTIN=1
2121
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
2222
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
23+
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
2324
)
2425

2526
target_sources(${TEST_NAME}

0 commit comments

Comments
 (0)