-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2764 from particle-iot/fix/rtl872x-wifi-ble-coex
[Gen 4] change coexistence behavior in wifi connecting or wifi connected states with background BLE low prio activity
- Loading branch information
Showing
45 changed files
with
1,894 additions
and
627 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
MAIN_STACK_SIZE = 4096 | ||
|
||
# # FIXME | ||
# ifeq ("$(MODULE)","prebootloader-part1") | ||
# EXTRA_DEPS = third_party/freertos | ||
# EXTRA_DEPS_INCLUDE_SCRIPTS =$(foreach module,$(EXTRA_DEPS),$(PROJECT_ROOT)/$(module)/import.mk) | ||
# include $(EXTRA_DEPS_INCLUDE_SCRIPTS) | ||
|
||
# EXTRA_LIB_DEP += $(FREERTOS_LIB_DEP) | ||
# LIBS += $(notdir $(EXTRA_DEPS)) | ||
# LIB_DIRS += $(FREERTOS_LIB_DIR) | ||
# endif | ||
|
||
ASFLAGS += -D__STACKSIZE__=$(MAIN_STACK_SIZE) -D__STACK_SIZE=$(MAIN_STACK_SIZE) | ||
|
||
LDFLAGS += -L$(COMMON_BUILD)/arm/linker/rtl872x | ||
LDFLAGS += -L$(BOOTLOADER_SHARED_MODULAR) | ||
LDFLAGS += -Wl,--defsym,__STACKSIZE__=$(MAIN_STACK_SIZE) | ||
LDFLAGS += -Wl,--defsym,__STACK_SIZE=$(MAIN_STACK_SIZE) | ||
LDFLAGS += -u uxTopUsedPriority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright (c) 2024 Particle Industries, Inc. All rights reserved. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation, either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHAN'TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "FreeRTOS.h" | ||
#include "task.h" | ||
|
||
#if configSUPPORT_STATIC_ALLOCATION == 1 | ||
|
||
#define IDLE_TASK_STACK_SIZE (4096 / sizeof(portSTACK_TYPE)) | ||
|
||
/* configSUPPORT_STATIC_ALLOCATION is set to 1, so the application must provide an | ||
implementation of vApplicationGetIdleTaskMemory() to provide the memory that is | ||
used by the Idle task. */ | ||
extern "C" void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, | ||
StackType_t **ppxIdleTaskStackBuffer, | ||
uint32_t *pulIdleTaskStackSize ) | ||
{ | ||
/* If the buffers to be provided to the Idle task are declared inside this | ||
function then they must be declared static - otherwise they will be allocated on | ||
the stack and so not exists after this function exits. */ | ||
static StaticTask_t xIdleTaskTCB; | ||
static StackType_t uxIdleTaskStack[ IDLE_TASK_STACK_SIZE ]; | ||
|
||
/* Pass out a pointer to the StaticTask_t structure in which the Idle task's | ||
state will be stored. */ | ||
*ppxIdleTaskTCBBuffer = &xIdleTaskTCB; | ||
|
||
/* Pass out the array that will be used as the Idle task's stack. */ | ||
*ppxIdleTaskStackBuffer = uxIdleTaskStack; | ||
|
||
/* Pass out the size of the array pointed to by *ppxIdleTaskStackBuffer. | ||
Note that, as the array is necessarily of type StackType_t, | ||
configMINIMAL_STACK_SIZE is specified in words, not bytes. */ | ||
*pulIdleTaskStackSize = IDLE_TASK_STACK_SIZE; | ||
} | ||
/*-----------------------------------------------------------*/ | ||
|
||
/* configSUPPORT_STATIC_ALLOCATION and configUSE_TIMERS are both set to 1, so the | ||
application must provide an implementation of vApplicationGetTimerTaskMemory() | ||
to provide the memory that is used by the Timer service task. */ | ||
extern "C" void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, | ||
StackType_t **ppxTimerTaskStackBuffer, | ||
uint32_t *pulTimerTaskStackSize ) | ||
{ | ||
/* If the buffers to be provided to the Timer task are declared inside this | ||
function then they must be declared static - otherwise they will be allocated on | ||
the stack and so not exists after this function exits. */ | ||
static StaticTask_t xTimerTaskTCB; | ||
static StackType_t uxTimerTaskStack[ configTIMER_TASK_STACK_DEPTH ]; | ||
|
||
/* Pass out a pointer to the StaticTask_t structure in which the Timer | ||
task's state will be stored. */ | ||
*ppxTimerTaskTCBBuffer = &xTimerTaskTCB; | ||
|
||
/* Pass out the array that will be used as the Timer task's stack. */ | ||
*ppxTimerTaskStackBuffer = uxTimerTaskStack; | ||
|
||
/* Pass out the size of the array pointed to by *ppxTimerTaskStackBuffer. | ||
Note that, as the array is necessarily of type StackType_t, | ||
configTIMER_TASK_STACK_DEPTH is specified in words, not bytes. */ | ||
*pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; | ||
} | ||
#endif /* configSUPPORT_STATIC_ALLOCATION == 1 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.