Skip to content

Commit

Permalink
Merge pull request #15454 from world-direct/feature/cellularevents
Browse files Browse the repository at this point in the history
make cellular event queue size configurable
  • Loading branch information
0xc0170 authored Sep 14, 2023
2 parents 7049bfc + ab46d51 commit b3a5d6a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions connectivity/cellular/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
"at-handler-buffer-size" : {
"help": "Size of the AT handler buffer",
"value": 32
},
"event-queue-size": {
"help": "The amount of events the default EventQueue should store",
"value": 10
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ CellularDevice::CellularDevice() :
#if MBED_CONF_CELLULAR_USE_SMS
_sms_ref_count(0),
#endif //MBED_CONF_CELLULAR_USE_SMS
_info_ref_count(0), _queue(10 * EVENTS_EVENT_SIZE), _state_machine(0),
_info_ref_count(0), _queue(MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE * EVENTS_EVENT_SIZE), _state_machine(0),
_status_cb(), _nw(0)
#ifdef MBED_CONF_RTOS_PRESENT
, _queue_thread(osPriorityNormal, 2048, NULL, "cellular_queue")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target_compile_definitions(${TEST_NAME}
DEVICE_INTERRUPTIN=1
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
MBED_CONF_RTOS_PRESENT=1
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ target_compile_definitions(${TEST_NAME}
DEVICE_INTERRUPTIN=1
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
)

target_sources(${TEST_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ target_compile_definitions(${TEST_NAME}
DEVICE_INTERRUPTIN=1
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
)

target_sources(${TEST_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ target_compile_definitions(${TEST_NAME}
DEVICE_INTERRUPTIN=1
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
MBED_CONF_CELLULAR_AT_HANDLER_BUFFER_SIZE=32
MBED_CONF_CELLULAR_EVENT_QUEUE_SIZE=10
)

target_sources(${TEST_NAME}
Expand Down

0 comments on commit b3a5d6a

Please sign in to comment.