OS wrapper for FreeRTOS. More...
#include "OSAL_FreeRTOS.h"
Go to the source code of this file.
Functions | |
OSAL_ERROR | OSW_QueueReceive (OSAL_QUEUE handle, OSAL_MESSAGE *pMsg, OSAL_TIMEOUT timeout, OSAL_ARG *pHighPrioTaskSwitch, OSAL_FLAG callFromISR) |
Enter brief description for this method. | |
void | vApplicationIdleHook () |
Idle Hook function for FreeRTOS. This function will be called when no other task is in active state. Use this function as a background worker to do thing with low priority. Note that the function name is fixed and cannot be changed without modifying the FreeRTOS source code. Therefore, we just call the OSALIdleHook() function which has been declared as WEAK and thus can be overwritten by the application layer. | |
void | vApplicationStackOverflowHook (xTaskHandle *pxTask, signed portCHAR *pcTaskName) |
This function will be called whenever a task overflowed his stack size. The function name is fixed and cannot be changed without changing the FreeRTOS source code. | |
void | vApplicationTickHook () |
System tick hook function for freeRTOS which will be called at every system tick interrupt. We just call the OSALSysTickHook() function, which has been declared as WEAK, thus can be overwritten by the application layer. |
OS wrapper for FreeRTOS.
This module contain code for using FreeRTOS as the underneath OS. At least all functions here must be implemented when using a certain OS with OSAL.
----------------------------------------------------------------------------
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification. ----------------------------------------------------------------------------
Definition in file OSAL_FreeRTOS.c.
OSAL_ERROR OSW_QueueReceive | ( | OSAL_QUEUE | handle, | |
OSAL_MESSAGE * | pMsg, | |||
OSAL_TIMEOUT | timeout, | |||
OSAL_ARG * | pHighPrioTaskSwitch, | |||
OSAL_FLAG | callFromISR | |||
) |
Enter brief description for this method.
[in] | handle | Handle to the queue. |
[out] | *pMsg | Pointer to store the received message. |
[in] | timeout | Timeout to wait. |
[out] | *pHighPrioTaskSwitch | Pointer to the HighPrioTaskSwitch variable used when calling from ISR. |
[in] | callFromISR | Indicates whether or not this function is called from ISR. |
Definition at line 219 of file OSAL_FreeRTOS.c.
References OSAL_ERROR_NONE.
void vApplicationIdleHook | ( | void | ) |
Idle Hook function for FreeRTOS. This function will be called when no other task is in active state. Use this function as a background worker to do thing with low priority. Note that the function name is fixed and cannot be changed without modifying the FreeRTOS source code. Therefore, we just call the OSALIdleHook() function which has been declared as WEAK and thus can be overwritten by the application layer.
Definition at line 423 of file OSAL_FreeRTOS.c.
References OSALIdleHook().
void vApplicationStackOverflowHook | ( | xTaskHandle * | pxTask, | |
signed portCHAR * | pcTaskName | |||
) |
This function will be called whenever a task overflowed his stack size. The function name is fixed and cannot be changed without changing the FreeRTOS source code.
[in] | pxTask | Input Pointer to task handle indicating the task which generated an stack overflow.. |
[in] | pcTaskName | Pointer to the corresponding task name. |
Definition at line 443 of file OSAL_FreeRTOS.c.
References OSALStackOverflowHook().
void vApplicationTickHook | ( | void | ) |
System tick hook function for freeRTOS which will be called at every system tick interrupt. We just call the OSALSysTickHook() function, which has been declared as WEAK, thus can be overwritten by the application layer.
Definition at line 462 of file OSAL_FreeRTOS.c.
References OSALSysTickHook().