]> begriffs open source - freertos/commit
Add default implementations of vApplicationGetIdleTaskMemory and vApplicationGetTimer...
authorMehdi <37027977+mehdi-norouzi@users.noreply.github.com>
Wed, 20 Sep 2023 05:39:37 +0000 (09:09 +0330)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 05:39:37 +0000 (11:09 +0530)
commit7cd201c2907723db4602cd9b9af3203ac3374b15
tree891a7cf632ccb2edd7a6f9af3fbc981cd86813b1
parentc3ece081194453d1882564d19c33aa7b141a0b0b
Add default implementations of vApplicationGetIdleTaskMemory and vApplicationGetTimerTaskMemory (#790)

This PR introduces configKERNEL_PROVIDED_STATIC_MEMORY option
which the application can set to 1 to use the default implementations
of vApplicationGetIdleTaskMemory and vApplicationGetTimerTaskMemory
functions.

If the application enables static allocation (i.e. sets
configUSE_STATIC_ALLOCATION to 1) and does not provide the above 2
functions, it will result in linker error. The application has two options:

1. Set configKERNEL_PROVIDED_STATIC_MEMORY to 1 to use the default
    implementations of these functions.
2. Provide implementations of these 2 functions.

Note that default definitions are only available for non-MPU ports. The
reason is that the stack alignment requirements vary for different
architectures.
include/FreeRTOS.h
tasks.c