mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
154 lines
7.0 KiB
C
154 lines
7.0 KiB
C
/*==================================================================================================
|
|
* Project : RTD AUTOSAR 4.4
|
|
* Platform : CORTEXM
|
|
* Peripheral : Stm_Pit_Rtc_Emios
|
|
* Dependencies : none
|
|
*
|
|
* Autosar Version : 4.4.0
|
|
* Autosar Revision : ASR_REL_4_4_REV_0000
|
|
* Autosar Conf.Variant :
|
|
* SW Version : 0.9.0
|
|
* Build Version : S32K3_RTD_0_9_0__ASR_REL_4_4_REV_0000_20210326
|
|
*
|
|
* (c) Copyright 2020 - 2021 NXP Semiconductors
|
|
* All Rights Reserved.
|
|
*
|
|
* 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.
|
|
==================================================================================================*/
|
|
|
|
#ifndef PIT_IP_CFG_H
|
|
#define PIT_IP_CFG_H
|
|
|
|
/**
|
|
* @file Pit_Ip_Cfg.h
|
|
*
|
|
* @addtogroup pit_ip Pit IPL
|
|
*
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"{
|
|
#endif
|
|
|
|
/*==================================================================================================
|
|
* INCLUDE FILES
|
|
* 1) system and project includes
|
|
* 2) needed interfaces from external units
|
|
* 3) internal and external interfaces from this unit
|
|
==================================================================================================*/
|
|
#include "Pit_Ip_BOARD_INITPERIPHERALS_PBcfg.h"
|
|
|
|
/*==================================================================================================
|
|
* SOURCE FILE VERSION INFORMATION
|
|
==================================================================================================*/
|
|
#define PIT_IP_VENDOR_ID_CFG 43
|
|
#define PIT_IP_AR_RELEASE_MAJOR_VERSION_CFG 4
|
|
#define PIT_IP_AR_RELEASE_MINOR_VERSION_CFG 4
|
|
#define PIT_IP_AR_RELEASE_REVISION_VERSION_CFG 0
|
|
#define PIT_IP_SW_MAJOR_VERSION_CFG 0
|
|
#define PIT_IP_SW_MINOR_VERSION_CFG 9
|
|
#define PIT_IP_SW_PATCH_VERSION_CFG 0
|
|
|
|
/*==================================================================================================
|
|
* FILE VERSION CHECKS
|
|
==================================================================================================*/
|
|
#if (PIT_IP_VENDOR_ID_CFG != PIT_IP_VENDOR_ID_BOARD_INITPERIPHERALS_PBCFG_H)
|
|
#error "Pit_Ip_Cfg.h and Pit_Ip_BOARD_INITPERIPHERALS_PBcfg.h have different vendor ids"
|
|
#endif
|
|
/* Check if this header file and header file are of the same Autosar version */
|
|
#if ((PIT_IP_AR_RELEASE_MAJOR_VERSION_CFG != PIT_IP_AR_RELEASE_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) || \
|
|
(PIT_IP_AR_RELEASE_MINOR_VERSION_CFG != PIT_IP_AR_RELEASE_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) || \
|
|
(PIT_IP_AR_RELEASE_REVISION_VERSION_CFG != PIT_IP_AR_RELEASE_REVISION_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) \
|
|
)
|
|
#error "AutoSar Version Numbers of Pit_Ip_Cfg.h and Pit_Ip_BOARD_INITPERIPHERALS_PBcfg.h are different"
|
|
#endif
|
|
/* Check if this header file and header file are of the same Software version */
|
|
#if ((PIT_IP_SW_MAJOR_VERSION_CFG != PIT_IP_SW_MAJOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) || \
|
|
(PIT_IP_SW_MINOR_VERSION_CFG != PIT_IP_SW_MINOR_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) || \
|
|
(PIT_IP_SW_PATCH_VERSION_CFG != PIT_IP_SW_PATCH_VERSION_BOARD_INITPERIPHERALS_PBCFG_H) \
|
|
)
|
|
#error "Software Version Numbers of Pit_Ip_Cfg.h and Pit_Ip_BOARD_INITPERIPHERALS_PBcfg.h are different"
|
|
#endif
|
|
/*==================================================================================================
|
|
* CONSTANTS
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
* DEFINES AND MACROS
|
|
==================================================================================================*/
|
|
/**
|
|
* @brief Dev error detect switch
|
|
*/
|
|
#define PIT_IP_DEV_ERROR_DETECT (STD_OFF)
|
|
/*==================================================================================================*/
|
|
/**
|
|
* @brief PIT_IP_CHAIN_MODE switch
|
|
* @details Enable/disable API for Chain Mode.
|
|
*/
|
|
#define PIT_IP_CHAIN_MODE (STD_OFF)
|
|
/*================================================================================================*/
|
|
|
|
/**
|
|
* @brief PIT_IP_CHANGE_NEXT_TIMEOUT_VALUE switch
|
|
* @details Enable/disable support for changing timeout value during timer running
|
|
*/
|
|
#define PIT_IP_CHANGE_NEXT_TIMEOUT_VALUE (STD_OFF)
|
|
/*================================================================================================*/
|
|
|
|
/**
|
|
* @brief PIT_IP_ENABLE_USER_MODE_SUPPORT switch
|
|
* @details Enable/disable support usermode.If this parameter has been configured to TRUE the GPT driver code can be executed from both supervisor and user mode.
|
|
*/
|
|
#define PIT_IP_ENABLE_USER_MODE_SUPPORT (STD_OFF)
|
|
/*================================================================================================*/
|
|
|
|
/*================================================================================================*/
|
|
/**
|
|
* @brief PIT_IP_TIMEOUT_COUNTER
|
|
* @details This is a timeout value which is used to wait till PIT_RTI_LDVAL is synchronized into the RTI clock domain
|
|
*/
|
|
|
|
#define PIT_IP_TIMEOUT_COUNTER (100UL)
|
|
#define PIT_IP_TIMEOUT_TYPE (OSIF_COUNTER_SYSTEM)
|
|
|
|
/* Channels number instance PIT_0 */
|
|
#define PIT_0_CHANNELS_NUMBER (5U)
|
|
#define PIT_0_EXISTS
|
|
/* Channels number instance PIT_1 */
|
|
#define PIT_1_CHANNELS_NUMBER (4U)
|
|
#define PIT_1_EXISTS
|
|
/* Channels number instance PIT_2 */
|
|
#define PIT_2_CHANNELS_NUMBER (4U)
|
|
#define PIT_2_EXISTS
|
|
|
|
/*==================================================================================================
|
|
* ENUMS
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
* STRUCTURES AND OTHER TYPEDEFS
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
* GLOBAL VARIABLE DECLARATIONS
|
|
==================================================================================================*/
|
|
|
|
/*==================================================================================================
|
|
* FUNCTION PROTOTYPES
|
|
==================================================================================================*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
#endif /* PIT_IP_CFG_H */
|
|
|