mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
9a5b92c3d1
commit
8f1ce60a14
20 changed files with 2353 additions and 2347 deletions
|
|
@ -544,7 +544,7 @@ static int _freertos_create_task(struct task_struct *ptask, const char *name,
|
|||
|
||||
priority += tskIDLE_PRIORITY + PRIORITIE_OFFSET;
|
||||
|
||||
#if CONFIG_USE_TCM_HEAP
|
||||
#if 0 // CONFIG_USE_TCM_HEAP
|
||||
void *stack_addr = tcm_heap_malloc(stack_size*sizeof(int));
|
||||
//void *stack_addr = rtw_malloc(stack_size*sizeof(int));
|
||||
if(stack_addr == NULL){
|
||||
|
|
|
|||
|
|
@ -100,10 +100,10 @@ extern "C" {
|
|||
//-----------
|
||||
#if defined(CONFIG_PLATFORM_8195A)
|
||||
#ifndef CONFIG_USE_TCM_HEAP
|
||||
#define CONFIG_USE_TCM_HEAP
|
||||
#define CONFIG_USE_TCM_HEAP 1
|
||||
#endif
|
||||
#ifndef configUSE_STACK_TCM_HEAP
|
||||
#define configUSE_STACK_TCM_HEAP 1
|
||||
#define configUSE_STACK_TCM_HEAP 5 // min priority use tcm
|
||||
#endif
|
||||
#else
|
||||
#undef configUSE_STACK_TCM_HEAP
|
||||
|
|
|
|||
|
|
@ -104,10 +104,10 @@ extern "C" {
|
|||
//-----------
|
||||
#if defined(CONFIG_PLATFORM_8195A)
|
||||
#ifndef CONFIG_USE_TCM_HEAP
|
||||
#define CONFIG_USE_TCM_HEAP
|
||||
#define CONFIG_USE_TCM_HEAP 1
|
||||
#endif
|
||||
#ifndef configUSE_STACK_TCM_HEAP
|
||||
#define configUSE_STACK_TCM_HEAP 1
|
||||
#define configUSE_STACK_TCM_HEAP 5 // priority
|
||||
#endif
|
||||
#else
|
||||
#undef configUSE_STACK_TCM_HEAP
|
||||
|
|
|
|||
|
|
@ -724,10 +724,14 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) PRIVILEGED_FUNCTION;
|
|||
{
|
||||
StackType_t *pxStack = puxStackBuffer;
|
||||
#if configUSE_STACK_TCM_HEAP
|
||||
if (pxStack == NULL) {
|
||||
if(pxStack == NULL
|
||||
#if 0 // configUSE_STACK_TCM_HEAP > 1
|
||||
&& uxPriority >= configUSE_STACK_TCM_HEAP
|
||||
#endif
|
||||
)
|
||||
|
||||
pxStack = ( StackType_t * ) tcm_heap_malloc((( size_t ) usStackDepth) * sizeof(StackType_t));
|
||||
if(pxStack == NULL) pxStack = ( StackType_t * ) pvPortMalloc((( size_t ) usStackDepth) * sizeof(StackType_t));
|
||||
}
|
||||
if(pxStack == NULL) pxStack = ( StackType_t * ) pvPortMalloc((( size_t ) usStackDepth) * sizeof(StackType_t));
|
||||
#else
|
||||
/* Allocate space for the stack used by the task being created. */
|
||||
pxStack = ( StackType_t * ) pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
||||
|
|
|
|||
|
|
@ -772,9 +772,9 @@ static u32 _rtx_GetFreeHeapSize(void)
|
|||
}
|
||||
|
||||
|
||||
#if CONFIG_USE_TCM_HEAP
|
||||
void *tcm_heap_malloc(int size);
|
||||
#endif
|
||||
//#if CONFIG_USE_TCM_HEAP
|
||||
//void *tcm_heap_malloc(int size);
|
||||
//#endif
|
||||
static int _rtx_create_task(struct task_struct *ptask, const char *name,
|
||||
u32 stack_size, u32 priority, thread_func_t func, void *thctx)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue