Files
NxpNfcRdLib/.svn/pristine/34/34d8b03b4156a3e7fb4d82e13755952a880b6749.svn-base
2024-07-08 21:03:06 +08:00

112 lines
3.1 KiB
Plaintext

/*----------------------------------------------------------------------------*/
/* Copyright 2021 NXP */
/* */
/* NXP Confidential. This software is owned or controlled by NXP and may only */
/* be used strictly in accordance with the applicable license terms. */
/* By expressly accepting such terms or by downloading, installing, */
/* activating and/or otherwise using the software, you are agreeing that you */
/* have read, and that you agree to comply with and are bound by, such */
/* license terms. If you do not agree to be bound by the applicable license */
/* terms, then you may not retain, install, activate or otherwise use the */
/* software. */
/*----------------------------------------------------------------------------*/
/** @file
* Operating System Abstraction Layer Configuration file.
* $Author$
* $Revision$
* History:
*/
#ifndef PHOSAL_INC_PHOSAL_CONFIG_H_
#define PHOSAL_INC_PHOSAL_CONFIG_H_
/** \defgroup phOsal_Config OSAL Config
* \brief This defines various Config Options for the OSAL
* @{
*/
/**
* @{
* @def PH_OSAL_NULLOS
* Macro to Enable NULLOS Support
* @def PH_OSAL_FREERTOS
* Macro to Enable FreeRTOS Support
*
* @def PH_OSAL_LINUX
* Macro to Enable Linux Support
*
*/
/*@}*/
/**
*\brief If RTOS supports Static Memory Allocation and it is Enabled.
* Below mentioned define Max limit for creation of resources.
*
* @{
* @def PH_OSAL_CONFIG_MAX_NUM_TASKS
*
* Maximum No of Statically Created Tasks
* @def PH_OSAL_CONFIG_MAX_NUM_EVENTS
*
* Maximum No of Statically Created Tasks
* @def PH_OSAL_CONFIG_MAX_NUM_SEMAPHORE
*
* Maximum No of Statically Created Semaphores
* @def PH_OSAL_CONFIG_MAX_NUM_MUTEX
*
* Maximum No of Statically Created Mutex
* @def PH_OSAL_CONFIG_MAX_NUM_TIMERS
*
* Maximum No of Statically Created Timers
*/
/*@}*/
/* Enable RTE configuration for OCP(Open cmsis Pack) Support*/
#ifdef _RTE_
#include "RTE_Components.h"
#endif
/* Select one of the phOsal Implementation through defined symbols (-D). */
#ifdef PH_OSAL_FREERTOS
#include "../src/Freertos/phOsal_Freertos.h"
#define PH_OSAL_CONFIG_MAX_NUM_TASKS 4U
#define PH_OSAL_CONFIG_MAX_NUM_EVENTS 5U
#define PH_OSAL_CONFIG_MAX_NUM_SEMAPHORE 8U
#define PH_OSAL_CONFIG_MAX_NUM_MUTEX 2U
#define PH_OSAL_CONFIG_MAX_NUM_TIMERS 2U
#endif /* PH_OSAL_FREERTOS */
#ifdef PH_OSAL_NULLOS
#include "../src/NullOs/phOsal_NullOs.h"
#define PH_OSAL_CONFIG_MAX_NUM_EVENTS 5U
#endif /* PH_OSAL_NULLOS */
#ifdef PH_OSAL_LINUX
#include "../src/Linux/phOsal_Linux.h"
#define PH_OSAL_CONFIG_LINUX_MAX_NUM_TASKS 5U
#define PH_OSAL_CONFIG_LINUX_MAX_NUM_EVENTS 5U
#endif /* PH_OSAL_LINUX */
#ifdef NXPBUILD__PH_OSAL_WINOS
#include "../src/WinOs/phOsal_WinOs.h"
#endif /* NXPBUILD__PH_OSAL_WINOS */
#ifndef PHOSAL_MAX_DELAY
# error "OSAL not selected"
#endif
/*@}*/
#endif /* PHOSAL_INC_PHOSAL_CONFIG_H_ */