123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral : GPIO
- * Dependencies : none
- *
- * Autosar Version : 4.4.0
- * Autosar Revision : ASR_REL_4_4_REV_0000
- * Autosar Conf.Variant :
- * SW Version : 1.0.0
- * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
- *
- * (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.
- ==================================================================================================*/
- /**
- * @file Dio_Cfg.c
- * @implements Dio_Cfg.c_Artifact
- *
- * @addtogroup DIO_CFG
- * @{
- */
- #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 "Dio.h"
- #if (defined(DIO_PRECOMPILE_SUPPORT) || defined(DIO_LINKTIME_SUPPORT))
- /*=================================================================================================
- * SOURCE FILE VERSION INFORMATION
- =================================================================================================*/
- #define DIO_VENDOR_ID_CFG_C 43
- #define DIO_AR_RELEASE_MAJOR_VERSION_CFG_C 4
- #define DIO_AR_RELEASE_MINOR_VERSION_CFG_C 4
- #define DIO_AR_RELEASE_REVISION_VERSION_CFG_C 0
- #define DIO_SW_MAJOR_VERSION_CFG_C 1
- #define DIO_SW_MINOR_VERSION_CFG_C 0
- #define DIO_SW_PATCH_VERSION_CFG_C 0
- /*=================================================================================================
- * FILE VERSION CHECKS
- =================================================================================================*/
- #if (((DIO_AR_RELEASE_MAJOR_VERSION_CFG_C != DIO_AR_RELEASE_MAJOR_VERSION) || \
- (DIO_AR_RELEASE_MINOR_VERSION_CFG_C != DIO_AR_RELEASE_MINOR_VERSION)) || \
- (DIO_AR_RELEASE_REVISION_VERSION_CFG_C != DIO_AR_RELEASE_REVISION_VERSION)\
- )
- #error "AutoSar Version Numbers of Dio_Cfg.c and Dio.h are different"
- #endif
- #if ((DIO_SW_MAJOR_VERSION_CFG_C != DIO_SW_MAJOR_VERSION) || \
- (DIO_SW_MINOR_VERSION_CFG_C != DIO_SW_MINOR_VERSION) || \
- (DIO_SW_PATCH_VERSION_CFG_C != DIO_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Dio_Cfg.c and Dio.h are different"
- #endif
- #if ((DIO_VENDOR_ID_CFG_C != DIO_VENDOR_ID))
- #error "VENDOR ID for Dio_Cfg.c and Dio.h is different"
- #endif
- /*=================================================================================================
- * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
- =================================================================================================*/
- /*=================================================================================================
- * LOCAL MACROS
- =================================================================================================*/
- /*=================================================================================================
- * LOCAL CONSTANTS
- =================================================================================================*/
- /*=================================================================================================
- * LOCAL VARIABLES
- =================================================================================================*/
- /*=================================================================================================
- * GLOBAL CONSTANTS
- =================================================================================================*/
- #define DIO_START_SEC_CONST_32
- #include "Dio_MemMap.h"
- /**
- * @brief Array containing list of mapping channel for partition
- */
- const uint32 au32Dio_ChannelToPartitionMap[DIO_CHANNEL_PARTITION_U16] =
- {
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001
- };
- /**
- * @brief Array containing list of mapping port for partition
- */
- const uint32 au32Dio_PortToPartitionMap[DIO_PORT_PARTITION_U16] =
- {
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001,
- (uint32)0x0000000000000001
- };
- /**
- * @brief Platform implemented port pins representation.
- * @details Array of bit maps reflecting the available pins in each port.
- * The number of elements in the array corresponds to the number of
- * ports implemented in the platform package. Rightmost bit of each
- * array element corresponds to channel 0 of the associated port,
- * while leftmost bit of each array element corresponds to channel 31
- * of the associated port. A 0 bit means that the correspondent channel
- * is not available in the platform package, while a bit of 1 means
- * that the correspondent channel is available in the platform package.
- *
- * @api
- */
- const Dio_PortLevelType Dio_aAvailablePinsForWrite[DIO_NUM_PORTS_U16] =
- {
- (Dio_PortLevelType)0x00003CFFUL,
- (Dio_PortLevelType)0x000030FFUL,
- (Dio_PortLevelType)0x0003C3FFUL,
- (Dio_PortLevelType)0x000180FFUL,
- (Dio_PortLevelType)0x00000FFFUL
- };
- const Dio_PortLevelType Dio_aAvailablePinsForRead[DIO_NUM_PORTS_U16] =
- {
- (Dio_PortLevelType)0x00003CFFUL,
- (Dio_PortLevelType)0x000030FFUL,
- (Dio_PortLevelType)0x0003C3FFUL,
- (Dio_PortLevelType)0x000180FFUL,
- (Dio_PortLevelType)0x00000FFFUL
- };
- #define DIO_STOP_SEC_CONST_32
- #include "Dio_MemMap.h"
- #define DIO_START_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Dio_MemMap.h"
- /* ========== DioConfig ========== */
- /**
- * @brief Data structure for configuration DioConfig.
- */
- const Dio_ConfigType Dio_Config =
- {
- (uint8)0x0,
- NULL_PTR,
- au32Dio_ChannelToPartitionMap,
- au32Dio_PortToPartitionMap
- };
- #define DIO_STOP_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Dio_MemMap.h"
- /*=================================================================================================
- * GLOBAL VARIABLES
- =================================================================================================*/
- /*=================================================================================================
- * LOCAL FUNCTION PROTOTYPES
- =================================================================================================*/
- /*=================================================================================================
- * LOCAL FUNCTIONS
- =================================================================================================*/
- /*=================================================================================================
- * GLOBAL FUNCTIONS
- =================================================================================================*/
- #endif /* (defined(DIO_PRECOMPILE_SUPPORT) || defined(DIO_LINKTIME_SUPPORT)) */
- #ifdef __cplusplus
- }
- #endif
- /** @} */
|