From 34c36c1d50f7173d3ed2f11e7e1764980a1616d2 Mon Sep 17 00:00:00 2001 From: Christopher Collins Date: Mon, 5 Feb 2018 11:25:58 -0800 Subject: [PATCH 1/2] Use `task_priority` type for task priority syscfg. This allows newt to report priority conflicts at build time. X-Original-Commit: 1672c2983e0ce7eac6704397d489021a10b318df --- nimble/host/mesh/syscfg.yml | 1 + nimble/transport/emspi/syscfg.yml | 1 + nimble/transport/socket/syscfg.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/nimble/host/mesh/syscfg.yml b/nimble/host/mesh/syscfg.yml index 7ed342ca2..89c377dd8 100644 --- a/nimble/host/mesh/syscfg.yml +++ b/nimble/host/mesh/syscfg.yml @@ -104,6 +104,7 @@ syscfg.defs: BLE_MESH_ADV_TASK_PRIO: description: > Advertising task prio (FIXME) + type: task_priority value: 9 BLE_MESH_MSG_CACHE_SIZE: diff --git a/nimble/transport/emspi/syscfg.yml b/nimble/transport/emspi/syscfg.yml index 066deb7f1..193944aaa 100644 --- a/nimble/transport/emspi/syscfg.yml +++ b/nimble/transport/emspi/syscfg.yml @@ -85,6 +85,7 @@ syscfg.defs: BLE_HCI_EMSPI_PRIO: description: The priority of the emspi task. + type: task_priority value: 5 BLE_HCI_EMSPI_STACK_SIZE: diff --git a/nimble/transport/socket/syscfg.yml b/nimble/transport/socket/syscfg.yml index bbb35f383..c41d28e3a 100644 --- a/nimble/transport/socket/syscfg.yml +++ b/nimble/transport/socket/syscfg.yml @@ -66,6 +66,7 @@ syscfg.defs: BLE_SOCK_TASK_PRIO: description: 'Priority of the HCI socket task.' + type: task_priority value: 9 BLE_SOCK_STACK_SIZE: From 347d3f13ae1124a6e5f424074107097f3f093936 Mon Sep 17 00:00:00 2001 From: Christopher Collins Date: Mon, 5 Feb 2018 11:33:51 -0800 Subject: [PATCH 2/2] BLE LL - Fix prio conflict with UART in unit tests X-Original-Commit: e01480a0cee16dc41a30c4687d9e258ec6ad3742 --- nimble/controller/test/syscfg.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nimble/controller/test/syscfg.yml b/nimble/controller/test/syscfg.yml index 979e7a026..217575c09 100644 --- a/nimble/controller/test/syscfg.yml +++ b/nimble/controller/test/syscfg.yml @@ -20,3 +20,6 @@ syscfg.vals: BLE_LL_CFG_FEAT_LE_CSA2: 1 + + # Prevent priority conflict with controller task. + MCU_UART_POLLER_PRIO: 16