From b20d8cb16c86bf93790d0f1df0852ebefeb7b6d3 Mon Sep 17 00:00:00 2001 From: baohongde Date: Tue, 4 Aug 2020 22:52:16 +0800 Subject: [PATCH] component/hli: Fix hli queue send error --- components/bt/bt.c | 2 ++ components/bt/lib | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index 0fc8e4a480..0409197ae1 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -484,6 +484,7 @@ static int32_t IRAM_ATTR semphr_take_from_isr_wrapper(void *semphr, void *hptw) static int32_t IRAM_ATTR semphr_give_from_isr_wrapper(void *semphr, void *hptw) { + assert(xPortGetCoreID() == CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE); return hli_semaphore_give(semphr); } @@ -562,6 +563,7 @@ static int32_t queue_send_hlevel_wrapper(void *queue, void *item, uint32_t block static int32_t IRAM_ATTR queue_send_from_isr_hlevel_wrapper(void *queue, void *item, void *hptw) { + assert(xPortGetCoreID() == CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE); return hli_queue_put(queue, item); } diff --git a/components/bt/lib b/components/bt/lib index 66de1f426a..5aad1d330c 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 66de1f426a8f8ce7ba5e064c3652b6816e6977bc +Subproject commit 5aad1d330c1a92e6a14b5008bb75665c92a4521c