mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15454 from world-direct/feature/cellularevents
make cellular event queue size configurablepull/15456/head
commit
b3a5d6a473
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue