1、修改最小stack和入口函数名称

This commit is contained in:
iorebuild 2025-07-01 21:37:19 +08:00
parent 6d16108367
commit 5c01eaf089
3 changed files with 10 additions and 4 deletions

View File

@ -1471,7 +1471,7 @@ UINT _tx_el_interrupt_control(UINT new_posture);
/* Declare the tx_application_define function as having C linkage. */
VOID tx_application_define(VOID *first_unused_memory);
VOID ThreadXTaskInit(VOID *first_unused_memory);
/* Define the function prototypes of the ThreadX API. */

View File

@ -141,7 +141,7 @@ VOID _tx_initialize_kernel_enter(VOID)
/* Call the application provided initialization function. Pass the
first available memory address to it. */
tx_application_define(_tx_initialize_unused_memory);
ThreadXTaskInit(_tx_initialize_unused_memory);
/* Set the system state in preparation for entering the thread
scheduler. */

View File

@ -121,6 +121,12 @@ typedef short SHORT;
typedef unsigned short USHORT;
#define ULONG64_DEFINED
/* Error info check */
#undef TX_BYTE_POOL_ENABLE_PERFORMANCE_INFO
/* Code error check */
#undef TX_DISABLE_ERROR_CHECKING
/* Define the priority levels for ThreadX. Legal values range
from 32 to 1024 and MUST be evenly divisible by 32. */
@ -133,7 +139,7 @@ typedef unsigned short USHORT;
thread creation is less than this value, the thread create call will return an error. */
#ifndef TX_MINIMUM_STACK
#define TX_MINIMUM_STACK 200 /* Minimum stack size for this port */
#define TX_MINIMUM_STACK 32 /* Minimum stack size for this port */
#endif
@ -141,7 +147,7 @@ typedef unsigned short USHORT;
if TX_TIMER_PROCESS_IN_ISR is not defined. */
#ifndef TX_TIMER_THREAD_STACK_SIZE
#define TX_TIMER_THREAD_STACK_SIZE 1024 /* Default timer thread stack size */
#define TX_TIMER_THREAD_STACK_SIZE 128 /* Default timer thread stack size */
#endif
#ifndef TX_TIMER_THREAD_PRIORITY