/* * Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT * * Licensed under the MIT License. See the LICENSE accompanying this file * for the specific language governing permissions and limitations under * the License. */ #include "FreeRTOS.h" #include "task.h" #include "timers.h" void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer, StackType_t ** ppxTimerTaskStackBuffer, uint32_t * pulTimerTaskStackSize ) { static StaticTask_t timerTaskTCB; static StackType_t timerTaskStack[ configTIMER_TASK_STACK_DEPTH ]; *ppxTimerTaskTCBBuffer = &timerTaskTCB; *ppxTimerTaskStackBuffer = timerTaskStack; *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; } void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer, StackType_t ** ppxIdleTaskStackBuffer, uint32_t * pulIdleTaskStackSize ) { static StaticTask_t idleTaskTCB; static StackType_t idleTaskStack[ configMINIMAL_STACK_SIZE ]; *ppxIdleTaskTCBBuffer = &idleTaskTCB; *ppxIdleTaskStackBuffer = idleTaskStack; *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; }