123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722 |
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral : PORT_CI
- * 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.
- ==================================================================================================*/
- #ifndef PORT_CFG_H
- #define PORT_CFG_H
- /**
- * @file Port_Cfg.h
- *
- * @implements Port_Cfg.h_Artifact
- * @defgroup Port_CFG Port 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 "Port_VS_0_PBcfg.h"
- #include "Port_Ci_Port_Ip_Types.h"
- /*=================================================================================================
- * SOURCE FILE VERSION INFORMATION
- =================================================================================================*/
- /**
- * @brief Parameters that shall be published within the Port driver header file and also in the
- * module description file
- * @details The integration of incompatible files shall be avoided.
- *
- */
- #define PORT_VENDOR_ID_CFG_H 43
- #define PORT_AR_RELEASE_MAJOR_VERSION_CFG_H 4
- #define PORT_AR_RELEASE_MINOR_VERSION_CFG_H 4
- #define PORT_AR_RELEASE_REVISION_VERSION_CFG_H 0
- #define PORT_SW_MAJOR_VERSION_CFG_H 1
- #define PORT_SW_MINOR_VERSION_CFG_H 0
- #define PORT_SW_PATCH_VERSION_CFG_H 0
- /*=================================================================================================
- * FILE VERSION CHECKS
- =================================================================================================*/
- /* Check if the files Port_Cfg.h and Port_VS_0_PBcfg.h are of the same version */
- #if (PORT_VENDOR_ID_CFG_H != PORT_VENDOR_ID_VS_0_PBCFG_H)
- #error "Port_Cfg.h and Port_VS_0_PBcfg.h have different vendor IDs"
- #endif
- /* Check if the files Port_Cfg.h and Port_VS_0_PBcfg.h are of the same Autosar version */
- #if ((PORT_AR_RELEASE_MAJOR_VERSION_CFG_H != PORT_AR_RELEASE_MAJOR_VERSION_VS_0_PBCFG_H) || \
- (PORT_AR_RELEASE_MINOR_VERSION_CFG_H != PORT_AR_RELEASE_MINOR_VERSION_VS_0_PBCFG_H) || \
- (PORT_AR_RELEASE_REVISION_VERSION_CFG_H != PORT_AR_RELEASE_REVISION_VERSION_VS_0_PBCFG_H) \
- )
- #error "AutoSar Version Numbers of Port_Cfg.h and Port_VS_0_PBcfg.h are different"
- #endif
- /* Check if the files Port_Cfg.h and Port_VS_0_PBcfg.h are of the same software version */
- #if ((PORT_SW_MAJOR_VERSION_CFG_H != PORT_SW_MAJOR_VERSION_VS_0_PBCFG_H) || \
- (PORT_SW_MINOR_VERSION_CFG_H != PORT_SW_MINOR_VERSION_VS_0_PBCFG_H) || \
- (PORT_SW_PATCH_VERSION_CFG_H != PORT_SW_PATCH_VERSION_VS_0_PBCFG_H) \
- )
- #error "Software Version Numbers of Port_Cfg.h and Port_VS_0_PBcfg.h are different"
- #endif
- /* Check if the files Port_Cfg.h and Port_Ci_Port_Ip_Types.h are of the same version */
- #if (PORT_VENDOR_ID_CFG_H != PORT_CI_PORT_IP_VENDOR_ID_TYPES_H)
- #error "Port_Cfg.h and Port_Ci_Port_Ip_Types.h have different vendor IDs"
- #endif
- /* Check if the files Port_Cfg.h and Port_Ci_Port_Ip_Types.h are of the same Autosar version */
- #if ((PORT_AR_RELEASE_MAJOR_VERSION_CFG_H != PORT_CI_PORT_IP_AR_RELEASE_MAJOR_VERSION_TYPES_H) || \
- (PORT_AR_RELEASE_MINOR_VERSION_CFG_H != PORT_CI_PORT_IP_AR_RELEASE_MINOR_VERSION_TYPES_H) || \
- (PORT_AR_RELEASE_REVISION_VERSION_CFG_H != PORT_CI_PORT_IP_AR_RELEASE_REVISION_VERSION_TYPES_H) \
- )
- #error "AutoSar Version Numbers of Port_Cfg.h and Port_Ci_Port_Ip_Types.h are different"
- #endif
- /* Check if the files Port_Cfg.h and Port_Ci_Port_Ip_Types.h are of the same software version */
- #if ((PORT_SW_MAJOR_VERSION_CFG_H != PORT_CI_PORT_IP_SW_MAJOR_VERSION_TYPES_H) || \
- (PORT_SW_MINOR_VERSION_CFG_H != PORT_CI_PORT_IP_SW_MINOR_VERSION_TYPES_H) || \
- (PORT_SW_PATCH_VERSION_CFG_H != PORT_CI_PORT_IP_SW_PATCH_VERSION_TYPES_H) \
- )
- #error "Software Version Numbers of Port_Cfg.h and Port_Ci_Port_Ip_Types.h are different"
- #endif
- /*=================================================================================================
- * CONSTANTS
- =================================================================================================*/
- /* @implements Port_PinType_typedef */
- typedef uint32 Port_PinType;
- /**
- * @brief Different port pin modes.
- * @details A port pin shall be configurable with a number of port pin modes (type Port_PinModeType).
- * The type Port_PinModeType shall be used with the function call Port_SetPinMode
- * @implements Port_PinModeType_typedef
- */
- typedef uint8 Port_PinModeType;
- /**
- * @brief Possible directions of a port pin.
- * @implements Port_PinDirectionType_enumeration
- */
- typedef enum
- {
- PORT_PIN_DISABLED = 0, /**< @brief Sets port pin as bidirectional. */
- PORT_PIN_IN, /**< @brief Sets port pin as input. */
- PORT_PIN_OUT, /**< @brief Sets port pin as output. */
- PORT_PIN_HIGH_Z /**< @brief Sets port pin as high_z. */
- } Port_PinDirectionType;
- /*=================================================================================================
- * DEFINES AND MACROS
- =================================================================================================*/
- #define PORT_CONFIG_EXT \
- PORT_CONFIG_VS_0_PB \
- /**
- * @brief Ensure better readability of the configuration
- * @note
- */
- #define SHL_PAD_U16(x) ((uint16)(((uint16)1) << (x)))
- /** @brief Port Alternate 0 Mode */
- #define PORT_ALT0_FUNC_MODE ((Port_PinModeType)0)
- /** @brief Port GPIO Mode */
- #define PORT_GPIO_MODE ((Port_PinModeType)1)
- /** @brief Port Alternate 2 Mode */
- #define PORT_ALT2_FUNC_MODE ((Port_PinModeType)2)
- /** @brief Port Alternate 3 Mode */
- #define PORT_ALT3_FUNC_MODE ((Port_PinModeType)3)
- /** @brief Port Alternate 4 Mode */
- #define PORT_ALT4_FUNC_MODE ((Port_PinModeType)4)
- /** @brief Port Alternate 5 Mode */
- #define PORT_ALT5_FUNC_MODE ((Port_PinModeType)5)
- /** @brief Port Alternate 6 Mode */
- #define PORT_ALT6_FUNC_MODE ((Port_PinModeType)6)
- /** @brief Port Alternate 7 Mode */
- #define PORT_ALT7_FUNC_MODE ((Port_PinModeType)7)
-
- #define PORT0_ADC0_SE0_CMP0_IN0 (PORT_ALT0_FUNC_MODE)
- #define PORT0_GPIO (PORT_GPIO_MODE)
- #define PORT0_FTM2_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT0_LPI2C0_SCLS (PORT_ALT3_FUNC_MODE)
- #define PORT0_FXIO_D2 (PORT_ALT4_FUNC_MODE)
- #define PORT0_FTM2_QD_PHA (PORT_ALT5_FUNC_MODE)
- #define PORT0_LPUART0_CTS (PORT_ALT6_FUNC_MODE)
- #define PORT0_TRGMUX_OUT3 (PORT_ALT7_FUNC_MODE)
- #define PORT1_ADC0_SE1_CMP0_IN1 (PORT_ALT0_FUNC_MODE)
- #define PORT1_GPIO (PORT_GPIO_MODE)
- #define PORT1_FTM1_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT1_LPI2C0_SDAS (PORT_ALT3_FUNC_MODE)
- #define PORT1_FXIO_D3 (PORT_ALT4_FUNC_MODE)
- #define PORT1_FTM1_QD_PHA (PORT_ALT5_FUNC_MODE)
- #define PORT1_LPUART0_RTS (PORT_ALT6_FUNC_MODE)
- #define PORT1_TRGMUX_OUT0 (PORT_ALT7_FUNC_MODE)
- #define PORT2_ADC1_SE0 (PORT_ALT0_FUNC_MODE)
- #define PORT2_GPIO (PORT_GPIO_MODE)
- #define PORT2_FTM3_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT2_LPI2C0_SDA (PORT_ALT3_FUNC_MODE)
- #define PORT2_EWM_OUT_b (PORT_ALT4_FUNC_MODE)
- #define PORT2_FXIO_D4 (PORT_ALT5_FUNC_MODE)
- #define PORT2_LPUART0_RX (PORT_ALT6_FUNC_MODE)
- #define PORT3_ADC1_SE1 (PORT_ALT0_FUNC_MODE)
- #define PORT3_GPIO (PORT_GPIO_MODE)
- #define PORT3_FTM3_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT3_LPI2C0_SCL (PORT_ALT3_FUNC_MODE)
- #define PORT3_EWM_IN (PORT_ALT4_FUNC_MODE)
- #define PORT3_FXIO_D5 (PORT_ALT5_FUNC_MODE)
- #define PORT3_LPUART0_TX (PORT_ALT6_FUNC_MODE)
- #define PORT4_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT4_GPIO (PORT_GPIO_MODE)
- #define PORT4_CMP0_OUT (PORT_ALT4_FUNC_MODE)
- #define PORT4_EWM_OUT_b (PORT_ALT5_FUNC_MODE)
- #define PORT4_JTAG_TMS_SWD_DIO (PORT_ALT7_FUNC_MODE)
- #define PORT5_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT5_GPIO (PORT_GPIO_MODE)
- #define PORT5_TCLK1 (PORT_ALT3_FUNC_MODE)
- #define PORT5_RESET_b (PORT_ALT7_FUNC_MODE)
- #define PORT6_ADC0_SE2 (PORT_ALT0_FUNC_MODE)
- #define PORT6_GPIO (PORT_GPIO_MODE)
- #define PORT6_FTM0_FLT1 (PORT_ALT2_FUNC_MODE)
- #define PORT6_LPSPI1_PCS1 (PORT_ALT3_FUNC_MODE)
- #define PORT6_FTM5_CH5 (PORT_ALT4_FUNC_MODE)
- #define PORT6_LPUART1_CTS (PORT_ALT6_FUNC_MODE)
- #define PORT7_ADC0_SE3 (PORT_ALT0_FUNC_MODE)
- #define PORT7_GPIO (PORT_GPIO_MODE)
- #define PORT7_FTM0_FLT2 (PORT_ALT2_FUNC_MODE)
- #define PORT7_FTM5_CH3 (PORT_ALT3_FUNC_MODE)
- #define PORT7_RTC_CLKIN (PORT_ALT4_FUNC_MODE)
- #define PORT7_LPUART1_RTS (PORT_ALT6_FUNC_MODE)
- #define PORT10_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT10_GPIO (PORT_GPIO_MODE)
- #define PORT10_FTM1_CH4 (PORT_ALT2_FUNC_MODE)
- #define PORT10_FXIO_D0 (PORT_ALT4_FUNC_MODE)
- #define PORT10_JTAG_TDO (PORT_ALT7_FUNC_MODE)
- #define PORT11_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT11_GPIO (PORT_GPIO_MODE)
- #define PORT11_FTM1_CH5 (PORT_ALT2_FUNC_MODE)
- #define PORT11_FXIO_D1 (PORT_ALT4_FUNC_MODE)
- #define PORT11_CMP0_RRT (PORT_ALT5_FUNC_MODE)
- #define PORT12_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT12_GPIO (PORT_GPIO_MODE)
- #define PORT12_FTM1_CH6 (PORT_ALT2_FUNC_MODE)
- #define PORT12_CAN1_RX (PORT_ALT3_FUNC_MODE)
- #define PORT12_FTM2_QD_PHB (PORT_ALT6_FUNC_MODE)
- #define PORT13_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT13_GPIO (PORT_GPIO_MODE)
- #define PORT13_FTM1_CH7 (PORT_ALT2_FUNC_MODE)
- #define PORT13_CAN1_TX (PORT_ALT3_FUNC_MODE)
- #define PORT13_FTM2_QD_PHA (PORT_ALT6_FUNC_MODE)
- #define PORT32_ADC0_SE4_ADC1_SE14 (PORT_ALT0_FUNC_MODE)
- #define PORT32_GPIO (PORT_GPIO_MODE)
- #define PORT32_LPUART0_RX (PORT_ALT2_FUNC_MODE)
- #define PORT32_LPSPI0_PCS0 (PORT_ALT3_FUNC_MODE)
- #define PORT32_LPTMR0_ALT3 (PORT_ALT4_FUNC_MODE)
- #define PORT32_CAN0_RX (PORT_ALT5_FUNC_MODE)
- #define PORT32_FTM4_CH6 (PORT_ALT6_FUNC_MODE)
- #define PORT33_ADC0_SE5_ADC1_SE15 (PORT_ALT0_FUNC_MODE)
- #define PORT33_GPIO (PORT_GPIO_MODE)
- #define PORT33_LPUART0_TX (PORT_ALT2_FUNC_MODE)
- #define PORT33_LPSPI0_SOUT (PORT_ALT3_FUNC_MODE)
- #define PORT33_TCLK0 (PORT_ALT4_FUNC_MODE)
- #define PORT33_CAN0_TX (PORT_ALT5_FUNC_MODE)
- #define PORT33_FTM4_CH5 (PORT_ALT6_FUNC_MODE)
- #define PORT34_ADC0_SE6 (PORT_ALT0_FUNC_MODE)
- #define PORT34_GPIO (PORT_GPIO_MODE)
- #define PORT34_FTM1_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT34_LPSPI0_SCK (PORT_ALT3_FUNC_MODE)
- #define PORT34_FTM1_QD_PHB (PORT_ALT4_FUNC_MODE)
- #define PORT34_TRGMUX_IN3 (PORT_ALT6_FUNC_MODE)
- #define PORT35_ADC0_SE7 (PORT_ALT0_FUNC_MODE)
- #define PORT35_GPIO (PORT_GPIO_MODE)
- #define PORT35_FTM1_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT35_LPSPI0_SIN (PORT_ALT3_FUNC_MODE)
- #define PORT35_FTM1_QD_PHA (PORT_ALT4_FUNC_MODE)
- #define PORT35_TRGMUX_IN2 (PORT_ALT6_FUNC_MODE)
- #define PORT36_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT36_GPIO (PORT_GPIO_MODE)
- #define PORT36_FTM0_CH4 (PORT_ALT2_FUNC_MODE)
- #define PORT36_LPSPI0_SOUT (PORT_ALT3_FUNC_MODE)
- #define PORT36_TRGMUX_IN1 (PORT_ALT6_FUNC_MODE)
- #define PORT37_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT37_GPIO (PORT_GPIO_MODE)
- #define PORT37_FTM0_CH5 (PORT_ALT2_FUNC_MODE)
- #define PORT37_LPSPI0_PCS1 (PORT_ALT3_FUNC_MODE)
- #define PORT37_LPSPI0_PCS0 (PORT_ALT4_FUNC_MODE)
- #define PORT37_CLKOUT (PORT_ALT5_FUNC_MODE)
- #define PORT37_TRGMUX_IN0 (PORT_ALT6_FUNC_MODE)
- #define PORT38_XTAL (PORT_ALT0_FUNC_MODE)
- #define PORT38_GPIO (PORT_GPIO_MODE)
- #define PORT38_LPI2C0_SDA (PORT_ALT2_FUNC_MODE)
- #define PORT39_EXTAL (PORT_ALT0_FUNC_MODE)
- #define PORT39_GPIO (PORT_GPIO_MODE)
- #define PORT39_LPI2C0_SCL (PORT_ALT2_FUNC_MODE)
- #define PORT44_ADC1_SE7 (PORT_ALT0_FUNC_MODE)
- #define PORT44_GPIO (PORT_GPIO_MODE)
- #define PORT44_FTM0_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT44_FTM3_FLT2 (PORT_ALT3_FUNC_MODE)
- #define PORT44_CAN2_RX (PORT_ALT4_FUNC_MODE)
- #define PORT45_ADC1_SE8_ADC0_SE8 (PORT_ALT0_FUNC_MODE)
- #define PORT45_GPIO (PORT_GPIO_MODE)
- #define PORT45_FTM0_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT45_FTM3_FLT1 (PORT_ALT3_FUNC_MODE)
- #define PORT45_CAN2_TX (PORT_ALT4_FUNC_MODE)
- #define PORT64_ADC0_SE8 (PORT_ALT0_FUNC_MODE)
- #define PORT64_GPIO (PORT_GPIO_MODE)
- #define PORT64_FTM0_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT64_LPSPI2_SIN (PORT_ALT3_FUNC_MODE)
- #define PORT64_FTM1_CH6 (PORT_ALT6_FUNC_MODE)
- #define PORT65_ADC0_SE9 (PORT_ALT0_FUNC_MODE)
- #define PORT65_GPIO (PORT_GPIO_MODE)
- #define PORT65_FTM0_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT65_LPSPI2_SOUT (PORT_ALT3_FUNC_MODE)
- #define PORT65_FTM1_CH7 (PORT_ALT6_FUNC_MODE)
- #define PORT66_ADC0_SE10_CMP0_IN5 (PORT_ALT0_FUNC_MODE)
- #define PORT66_GPIO (PORT_GPIO_MODE)
- #define PORT66_FTM0_CH2 (PORT_ALT2_FUNC_MODE)
- #define PORT66_CAN0_RX (PORT_ALT3_FUNC_MODE)
- #define PORT66_LPUART0_RX (PORT_ALT4_FUNC_MODE)
- #define PORT67_ADC0_SE11_CMP0_IN4 (PORT_ALT0_FUNC_MODE)
- #define PORT67_GPIO (PORT_GPIO_MODE)
- #define PORT67_FTM0_CH3 (PORT_ALT2_FUNC_MODE)
- #define PORT67_CAN0_TX (PORT_ALT3_FUNC_MODE)
- #define PORT67_LPUART0_TX (PORT_ALT4_FUNC_MODE)
- #define PORT68_CMP0_IN2 (PORT_ALT0_FUNC_MODE)
- #define PORT68_GPIO (PORT_GPIO_MODE)
- #define PORT68_FTM1_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT68_RTC_CLKOUT (PORT_ALT3_FUNC_MODE)
- #define PORT68_EWM_IN (PORT_ALT5_FUNC_MODE)
- #define PORT68_FTM1_QD_PHB (PORT_ALT6_FUNC_MODE)
- #define PORT68_JTAG_TCLK_SWD_CLK (PORT_ALT7_FUNC_MODE)
- #define PORT69_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT69_GPIO (PORT_GPIO_MODE)
- #define PORT69_FTM2_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT69_RTC_CLKOUT (PORT_ALT3_FUNC_MODE)
- #define PORT69_FTM2_QD_PHB (PORT_ALT6_FUNC_MODE)
- #define PORT69_JTAG_TDI (PORT_ALT7_FUNC_MODE)
- #define PORT70_ADC1_SE4 (PORT_ALT0_FUNC_MODE)
- #define PORT70_GPIO (PORT_GPIO_MODE)
- #define PORT70_LPUART1_RX (PORT_ALT2_FUNC_MODE)
- #define PORT70_CAN1_RX (PORT_ALT3_FUNC_MODE)
- #define PORT70_FTM3_CH2 (PORT_ALT4_FUNC_MODE)
- #define PORT70_FTM1_QD_PHB (PORT_ALT6_FUNC_MODE)
- #define PORT71_ADC1_SE5 (PORT_ALT0_FUNC_MODE)
- #define PORT71_GPIO (PORT_GPIO_MODE)
- #define PORT71_LPUART1_TX (PORT_ALT2_FUNC_MODE)
- #define PORT71_CAN1_TX (PORT_ALT3_FUNC_MODE)
- #define PORT71_FTM3_CH3 (PORT_ALT4_FUNC_MODE)
- #define PORT71_FTM1_QD_PHA (PORT_ALT6_FUNC_MODE)
- #define PORT72_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT72_GPIO (PORT_GPIO_MODE)
- #define PORT72_LPUART1_RX (PORT_ALT2_FUNC_MODE)
- #define PORT72_FTM1_FLT0 (PORT_ALT3_FUNC_MODE)
- #define PORT72_FTM5_CH1 (PORT_ALT4_FUNC_MODE)
- #define PORT72_LPUART0_CTS (PORT_ALT6_FUNC_MODE)
- #define PORT73_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT73_GPIO (PORT_GPIO_MODE)
- #define PORT73_LPUART1_TX (PORT_ALT2_FUNC_MODE)
- #define PORT73_FTM1_FLT1 (PORT_ALT3_FUNC_MODE)
- #define PORT73_FTM5_CH0 (PORT_ALT4_FUNC_MODE)
- #define PORT73_LPUART0_RTS (PORT_ALT6_FUNC_MODE)
- #define PORT78_ADC0_SE12 (PORT_ALT0_FUNC_MODE)
- #define PORT78_GPIO (PORT_GPIO_MODE)
- #define PORT78_FTM1_CH2 (PORT_ALT2_FUNC_MODE)
- #define PORT78_LPSPI2_PCS0 (PORT_ALT3_FUNC_MODE)
- #define PORT78_TRGMUX_IN9 (PORT_ALT6_FUNC_MODE)
- #define PORT79_ADC0_SE13 (PORT_ALT0_FUNC_MODE)
- #define PORT79_GPIO (PORT_GPIO_MODE)
- #define PORT79_FTM1_CH3 (PORT_ALT2_FUNC_MODE)
- #define PORT79_LPSPI2_SCK (PORT_ALT3_FUNC_MODE)
- #define PORT79_TRGMUX_IN8 (PORT_ALT6_FUNC_MODE)
- #define PORT80_ADC0_SE14 (PORT_ALT0_FUNC_MODE)
- #define PORT80_GPIO (PORT_GPIO_MODE)
- #define PORT80_FTM1_FLT2 (PORT_ALT2_FUNC_MODE)
- #define PORT80_CAN2_RX (PORT_ALT3_FUNC_MODE)
- #define PORT81_ADC0_SE15 (PORT_ALT0_FUNC_MODE)
- #define PORT81_GPIO (PORT_GPIO_MODE)
- #define PORT81_FTM1_FLT3 (PORT_ALT2_FUNC_MODE)
- #define PORT81_CAN2_TX (PORT_ALT3_FUNC_MODE)
- #define PORT96_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT96_GPIO (PORT_GPIO_MODE)
- #define PORT96_FTM0_CH2 (PORT_ALT2_FUNC_MODE)
- #define PORT96_LPSPI1_SCK (PORT_ALT3_FUNC_MODE)
- #define PORT96_FTM2_CH0 (PORT_ALT4_FUNC_MODE)
- #define PORT96_FXIO_D0 (PORT_ALT6_FUNC_MODE)
- #define PORT96_TRGMUX_OUT1 (PORT_ALT7_FUNC_MODE)
- #define PORT97_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT97_GPIO (PORT_GPIO_MODE)
- #define PORT97_FTM0_CH3 (PORT_ALT2_FUNC_MODE)
- #define PORT97_LPSPI1_SIN (PORT_ALT3_FUNC_MODE)
- #define PORT97_FTM2_CH1 (PORT_ALT4_FUNC_MODE)
- #define PORT97_FXIO_D1 (PORT_ALT6_FUNC_MODE)
- #define PORT97_TRGMUX_OUT2 (PORT_ALT7_FUNC_MODE)
- #define PORT98_ADC1_SE2 (PORT_ALT0_FUNC_MODE)
- #define PORT98_GPIO (PORT_GPIO_MODE)
- #define PORT98_FTM3_CH4 (PORT_ALT2_FUNC_MODE)
- #define PORT98_LPSPI1_SOUT (PORT_ALT3_FUNC_MODE)
- #define PORT98_FXIO_D4 (PORT_ALT4_FUNC_MODE)
- #define PORT98_FXIO_D6 (PORT_ALT5_FUNC_MODE)
- #define PORT98_TRGMUX_IN5 (PORT_ALT6_FUNC_MODE)
- #define PORT99_ADC1_SE3 (PORT_ALT0_FUNC_MODE)
- #define PORT99_GPIO (PORT_GPIO_MODE)
- #define PORT99_FTM3_CH5 (PORT_ALT2_FUNC_MODE)
- #define PORT99_LPSPI1_PCS0 (PORT_ALT3_FUNC_MODE)
- #define PORT99_FXIO_D5 (PORT_ALT4_FUNC_MODE)
- #define PORT99_FXIO_D7 (PORT_ALT5_FUNC_MODE)
- #define PORT99_TRGMUX_IN4 (PORT_ALT6_FUNC_MODE)
- #define PORT99_NMI_b (PORT_ALT7_FUNC_MODE)
- #define PORT100_ADC1_SE6 (PORT_ALT0_FUNC_MODE)
- #define PORT100_GPIO (PORT_GPIO_MODE)
- #define PORT100_FTM0_FLT3 (PORT_ALT2_FUNC_MODE)
- #define PORT100_FTM3_FLT3 (PORT_ALT3_FUNC_MODE)
- #define PORT101_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT101_GPIO (PORT_GPIO_MODE)
- #define PORT101_FTM2_CH3 (PORT_ALT2_FUNC_MODE)
- #define PORT101_LPTMR0_ALT2 (PORT_ALT3_FUNC_MODE)
- #define PORT101_FTM2_FLT1 (PORT_ALT4_FUNC_MODE)
- #define PORT101_TRGMUX_IN7 (PORT_ALT6_FUNC_MODE)
- #define PORT102_CMP0_IN7 (PORT_ALT0_FUNC_MODE)
- #define PORT102_GPIO (PORT_GPIO_MODE)
- #define PORT102_LPUART2_RX (PORT_ALT2_FUNC_MODE)
- #define PORT102_FTM2_FLT2 (PORT_ALT4_FUNC_MODE)
- #define PORT103_CMP0_IN6 (PORT_ALT0_FUNC_MODE)
- #define PORT103_GPIO (PORT_GPIO_MODE)
- #define PORT103_LPUART2_TX (PORT_ALT2_FUNC_MODE)
- #define PORT103_FTM2_FLT3 (PORT_ALT4_FUNC_MODE)
- #define PORT111_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT111_GPIO (PORT_GPIO_MODE)
- #define PORT111_FTM0_CH0 (PORT_ALT2_FUNC_MODE)
- #define PORT111_LPSPI0_SCK (PORT_ALT4_FUNC_MODE)
- #define PORT112_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT112_GPIO (PORT_GPIO_MODE)
- #define PORT112_FTM0_CH1 (PORT_ALT2_FUNC_MODE)
- #define PORT112_LPSPI0_SIN (PORT_ALT4_FUNC_MODE)
- #define PORT112_CMP0_RRT (PORT_ALT5_FUNC_MODE)
- #define PORT128_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT128_GPIO (PORT_GPIO_MODE)
- #define PORT128_LPSPI0_SCK (PORT_ALT2_FUNC_MODE)
- #define PORT128_TCLK1 (PORT_ALT3_FUNC_MODE)
- #define PORT128_LPSPI1_SOUT (PORT_ALT5_FUNC_MODE)
- #define PORT128_FTM1_FLT2 (PORT_ALT6_FUNC_MODE)
- #define PORT129_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT129_GPIO (PORT_GPIO_MODE)
- #define PORT129_LPSPI0_SIN (PORT_ALT2_FUNC_MODE)
- #define PORT129_LPI2C0_HREQ (PORT_ALT3_FUNC_MODE)
- #define PORT129_LPSPI1_PCS0 (PORT_ALT5_FUNC_MODE)
- #define PORT129_FTM1_FLT1 (PORT_ALT6_FUNC_MODE)
- #define PORT130_ADC1_SE10 (PORT_ALT0_FUNC_MODE)
- #define PORT130_GPIO (PORT_GPIO_MODE)
- #define PORT130_LPSPI0_SOUT (PORT_ALT2_FUNC_MODE)
- #define PORT130_LPTMR0_ALT3 (PORT_ALT3_FUNC_MODE)
- #define PORT130_FTM3_CH6 (PORT_ALT4_FUNC_MODE)
- #define PORT130_LPUART1_CTS (PORT_ALT6_FUNC_MODE)
- #define PORT131_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT131_GPIO (PORT_GPIO_MODE)
- #define PORT131_FTM0_FLT0 (PORT_ALT2_FUNC_MODE)
- #define PORT131_LPUART2_RTS (PORT_ALT3_FUNC_MODE)
- #define PORT131_FTM2_FLT0 (PORT_ALT4_FUNC_MODE)
- #define PORT131_TRGMUX_IN6 (PORT_ALT6_FUNC_MODE)
- #define PORT131_CMP0_OUT (PORT_ALT7_FUNC_MODE)
- #define PORT132_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT132_GPIO (PORT_GPIO_MODE)
- #define PORT132_FTM2_QD_PHB (PORT_ALT3_FUNC_MODE)
- #define PORT132_FTM2_CH2 (PORT_ALT4_FUNC_MODE)
- #define PORT132_CAN0_RX (PORT_ALT5_FUNC_MODE)
- #define PORT132_FXIO_D6 (PORT_ALT6_FUNC_MODE)
- #define PORT132_EWM_OUT_b (PORT_ALT7_FUNC_MODE)
- #define PORT133_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT133_GPIO (PORT_GPIO_MODE)
- #define PORT133_TCLK2 (PORT_ALT2_FUNC_MODE)
- #define PORT133_FTM2_QD_PHA (PORT_ALT3_FUNC_MODE)
- #define PORT133_FTM2_CH3 (PORT_ALT4_FUNC_MODE)
- #define PORT133_CAN0_TX (PORT_ALT5_FUNC_MODE)
- #define PORT133_FXIO_D7 (PORT_ALT6_FUNC_MODE)
- #define PORT133_EWM_IN (PORT_ALT7_FUNC_MODE)
- #define PORT134_ADC1_SE11 (PORT_ALT0_FUNC_MODE)
- #define PORT134_GPIO (PORT_GPIO_MODE)
- #define PORT134_LPSPI0_PCS2 (PORT_ALT2_FUNC_MODE)
- #define PORT134_FTM3_CH7 (PORT_ALT4_FUNC_MODE)
- #define PORT134_LPUART1_RTS (PORT_ALT6_FUNC_MODE)
- #define PORT135_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT135_GPIO (PORT_GPIO_MODE)
- #define PORT135_FTM0_CH7 (PORT_ALT2_FUNC_MODE)
- #define PORT135_FTM3_FLT0 (PORT_ALT3_FUNC_MODE)
- #define PORT136_CMP0_IN3 (PORT_ALT0_FUNC_MODE)
- #define PORT136_GPIO (PORT_GPIO_MODE)
- #define PORT136_FTM0_CH6 (PORT_ALT2_FUNC_MODE)
- #define PORT137_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT137_GPIO (PORT_GPIO_MODE)
- #define PORT137_FTM0_CH7 (PORT_ALT2_FUNC_MODE)
- #define PORT137_LPUART2_CTS (PORT_ALT3_FUNC_MODE)
- #define PORT138_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT138_GPIO (PORT_GPIO_MODE)
- #define PORT138_CLKOUT (PORT_ALT2_FUNC_MODE)
- #define PORT138_LPSPI2_PCS1 (PORT_ALT3_FUNC_MODE)
- #define PORT138_FTM2_CH4 (PORT_ALT4_FUNC_MODE)
- #define PORT138_FXIO_D4 (PORT_ALT6_FUNC_MODE)
- #define PORT138_TRGMUX_OUT4 (PORT_ALT7_FUNC_MODE)
- #define PORT139_DISABLED (PORT_ALT0_FUNC_MODE)
- #define PORT139_GPIO (PORT_GPIO_MODE)
- #define PORT139_LPSPI2_PCS0 (PORT_ALT2_FUNC_MODE)
- #define PORT139_LPTMR0_ALT1 (PORT_ALT3_FUNC_MODE)
- #define PORT139_FTM2_CH5 (PORT_ALT4_FUNC_MODE)
- #define PORT139_FXIO_D5 (PORT_ALT6_FUNC_MODE)
- #define PORT139_TRGMUX_OUT5 (PORT_ALT7_FUNC_MODE)
- /**
- * @brief Enable/Disable Development Error Detection
- *
- * @implements PORT_DEV_ERROR_DETECT_define
- */
- #define PORT_DEV_ERROR_DETECT (STD_ON)
- /**
- * @brief Use/remove Port_SetPinDirection function from the compiled driver
- *
- * @implements PORT_SET_PIN_DIRECTION_API_define
- */
- #define PORT_SET_PIN_DIRECTION_API (STD_ON)
- /**
- * @brief Use/remove Port_Set2PinsDirection function from the compiled driver
- *
- * PORT_SET_2_PINS_DIRECTION_API_define
- */
- #define PORT_SET_2_PINS_DIRECTION_API (STD_OFF)
- /**
- * @brief Enable/Disable multicore function from the driver
- */
- #define PORT_MULTICORE_ENABLED (STD_OFF)
- /**
- * @brief Use/remove Port_SetPinMode function from the compiled driver
- *
- * @implements PORT_SET_PIN_MODE_API_define
- */
- #define PORT_SET_PIN_MODE_API (STD_ON)
- /**
- * @brief Use/remove Port_SetAsUnusedPin/Port_SetAsUsedPin function from the compiled driver.
- *
- */
- #define PORT_SET_AS_UNUSED_PIN_API (STD_ON)
- /**
- * @brief Use/remove Port_ResetPinMode function from the compiled driver.
- *
- */
- #define PORT_RESET_PIN_MODE_API (STD_ON)
- /**
- * @brief Enable/Disable Port_SetPinMode function updating the output level of the pins configured at runtime as GPIO
- */
- #define PORT_SETPINMODE_DOES_NOT_TOUCH_GPIO_LEVEL (STD_OFF)
- /**
- * @brief Use/remove Port_GetVersionInfo function from the compiled driver
- *
- * @implements PORT_VERSION_INFO_API_define
- */
- #define PORT_VERSION_INFO_API (STD_ON)
- /**
- * @brief The number of configured partition on the platform
- */
- #define PORT_MAX_PARTITION (1U)
- /**
- * @brief Port Pin symbolic names
- * @details Get All Symbolic Names from configuration tool
- *
- */
- #define PortConfigSet_PortContainer_LPUART_PTC3_LPUART0_TX_MCU_RS485_TX 0
- #define PortConfigSet_PortContainer_LPUART_PTC2_LPUART0_RX_MCU_RS485_RX 1
- #define PortConfigSet_PortContainer_LPUART_PTC9_LPUART1_TX_MCU_4G_TX 2
- #define PortConfigSet_PortContainer_LPUART_PTC8_LPUART1_RX_MCU_4G_RX 3
- #define PortConfigSet_PortContainer_LPUART_PTD7_LPUART2_TX_MCU_GPS_TX 4
- #define PortConfigSet_PortContainer_LPUART_PTD6_LPUART2_RX_MCU_GPS_RX 5
- #define PortConfigSet_PortContainer_CAN_PTE5_CAN0_TX_MCU_CAN0_TX 6
- #define PortConfigSet_PortContainer_CAN_PTE4_CAN0_RX_MCU_CAN0_RX 7
- #define PortConfigSet_PortContainer_CAN_PTA12_CAN1_RX_MCU_CAN1_RX 8
- #define PortConfigSet_PortContainer_CAN_PTA13_CAN1_TX_MCU_CAN1_TX 9
- #define PortConfigSet_PortContainer_ADC_PTB12_ADC1_SE7_MCU_TP1 10
- #define PortConfigSet_PortContainer_ADC_PTD4_ADC1_SE6_MCU_TP2 11
- #define PortConfigSet_PortContainer_ADC_PTC7_ADC1_SE5_MCU_TP3 12
- #define PortConfigSet_PortContainer_ADC_PTC6_ADC1_SE4_MCU_TP4 13
- #define PortConfigSet_PortContainer_ADC_PTE6_ADC1_SE11_MCU_SYS_TP 14
- #define PortConfigSet_PortContainer_I2C_PTA3_I2C0_SCL_MCU_VOC_SCL 15
- #define PortConfigSet_PortContainer_I2C_PTA2_I2C0_SDA_MCU_VOC_SDA 16
- #define PortConfigSet_PortContainer_SPI_PTC15_SPI2_SCK_MCU_3D_SPC 17
- #define PortConfigSet_PortContainer_SPI_PTC0_SPI2_SIN_MCU_3D_SDI 18
- #define PortConfigSet_PortContainer_SPI_PTC1_SPI2_SOUT_MCU_3D_SDO 19
- #define PortConfigSet_PortContainer_SPI_PTC14_SPI2_PCS0_MCU_3D_CS 20
- #define PortConfigSet_PortContainer_INT_PTE11_GPIO_IN_MCU_3D_INT1 21
- #define PortConfigSet_PortContainer_INT_PTD5_GPIO_IN_MCU_3D_INT2 22
- #define PortConfigSet_PortContainer_INT_PTB0_GPIO_IN_MCU_WAKEUP1 23
- #define PortConfigSet_PortContainer_INT_PTE2_GPIO_IN_MCU_WAKEUP2 24
- #define PortConfigSet_PortContainer_GPIO_PTB1_GPIO_IN_MCU_4G_STATUS 25
- #define PortConfigSet_PortContainer_GPIO_PTB2_GPIO_IN_MCU_4G_RI 26
- #define PortConfigSet_PortContainer_GPIO_PTA7_GPIO_OUT_MCU_4G_PWRKEY 27
- #define PortConfigSet_PortContainer_GPIO_PTA6_GPIO_OUT_MCU_4G_POW_EN 28
- #define PortConfigSet_PortContainer_GPIO_PTD2_GPIO_OUT_MCU_4G_DTR 29
- #define PortConfigSet_PortContainer_GPIO_PTD3_GPIO_OUT_MCU_4G_RESET 30
- #define PortConfigSet_PortContainer_GPIO_PTD0_GPIO_OUT_MCU_GPS_RESET 31
- #define PortConfigSet_PortContainer_GPIO_PTD1_GPIO_OUT_MCU_GPS_POW_EN 32
- #define PortConfigSet_PortContainer_GPIO_PTE0_GPIO_OUT_MCU_LED1 33
- #define PortConfigSet_PortContainer_GPIO_PTE1_GPIO_OUT_MCU_LED2 34
- #define PortConfigSet_PortContainer_GPIO_PTE7_GPIO_OUT_MCU_LED3 35
- #define PortConfigSet_PortContainer_GPIO_PTB4_GPIO_OUT_MCU_RS485_EN 36
- #define PortConfigSet_PortContainer_GPIO_PTA11_GPIO_OUT_MCU_HIGH_OUT1_CTRL 37
- #define PortConfigSet_PortContainer_GPIO_PTD15_GPIO_OUT_MCU_HIGH_OUT2_CTRL 38
- #define PortConfigSet_PortContainer_GPIO_PTD16_GPIO_OUT_MCU_LOW_DRV_EN 39
- #define PortConfigSet_PortContainer_GPIO_PTC17_GPIO_OUT_MCU_CAN0_STB 40
- #define PortConfigSet_PortContainer_GPIO_PTC16_GPIO_OUT_MCU_CAN1_STB 41
- /**
- * @brief Number of available pad modes options
- * @details Platform constant
- */
- #define PAD_MODE_OPTIONS_U8 ((uint8)8)
- /**
- * @brief Number of pad 16 blocks
- * @details Platform constant
- */
- #define PAD_16BLOCK_NO_U8 ((uint8)9)
- /**
- * @brief The last supported pin number
- */
- #define PORT_MAX_PIN_PACKAGE_U16 ((uint16)153)
- /**
- * @brief The maximum number of configured pins
- */
- #define PORT_MAX_CONFIGURED_PADS_U16 ((uint16)42)
- /**
- * @brief Number of UnUsed pin array
- */
- #define PORT_MAX_UNUSED_PADS_U16 (79U)
- /**
- * @brief Port driver Pre-Compile configuration switch
- */
- #define PORT_PRECOMPILE_SUPPORT (STD_ON)
- /*=================================================================================================
- * ENUMS
- =================================================================================================*/
- /*=================================================================================================
- * STRUCTURES AND OTHER TYPEDEFS
- =================================================================================================*/
- typedef struct
- {
- uint32 u32PCR; /**< Content of Mscr Register */
- Port_PinDirectionType ePadDir; /**< @brief Pad Data Direction */
- uint8 u8PDO; /**< Pad Data Output */
- } Port_UnUsedPinConfigType;
- /**
- * @brief Single pin configuration.
- * @details This structure contains all configuration parameters of a single pin
- * identified by @p SIUPin.
- */
- typedef struct
- {
- uint16 Pin; /**< @brief Index of the pin's Mscr */
- uint32 u32PCR; /**< @brief Pad Control Register */
- uint8 u8PDO; /**< @brief Pad Data Output */
- Port_PinDirectionType ePadDir; /**< @brief Pad Data Direction */
- boolean bGPIO; /**< @brief GPIO initial mode*/
- boolean bDC; /**< @brief Direction changebility*/
- boolean bMC; /**< @brief Mode changebility*/
- } Port_PinConfigType;
- /**
- * @brief Structure needed by @p Port_Init().
- * @details The structure @p Port_ConfigType is a type for the external data
- * structure containing the initialization data for the PORT Driver.
- * @note The user must use the symbolic names defined in the configuration
- * tool.
- *
- * @implements Port_ConfigType_struct
- */
- typedef struct
- {
- uint16 u16NumPins; /**< @brief Number of used pads (to be configured) */
- uint16 u16NumUnusedPins; /**< @brief Number of unused pads */
- const uint16 * pUnusedPads; /**< @brief Unused pad id's array */
- const Port_UnUsedPinConfigType * pUnusedPadConfig; /**< @brief Unused pad configuration */
- const Port_PinConfigType * pUsedPadConfig; /**< @brief Used pads data configuration */
- uint8 u8NumDigitalFilterPorts; /**< @brief Number of configured digital filter ports */
- const Port_Ci_Port_Ip_DigitalFilterConfigType * pDigitalFilterConfig; /**< @brief Digital filter ports configuration */
- const uint32 *pau32Port_PinToPartitionMap; /**< @brief Pointer to pin partition mapping */
- const uint8 *pau8Port_PartitionList; /**< @brief Pointer to used partitions */
- const Port_Ci_Port_Ip_PinSettingsConfig *IpConfigPtr; /**< @brief Ip configuration */
- } Port_ConfigType;
- /*=================================================================================================
- GLOBAL VARIABLE DECLARATIONS
- =================================================================================================*/
- #define PORT_START_SEC_CONST_16
- #include "Port_MemMap.h"
- #if (STD_ON == PORT_SET_PIN_MODE_API)
- /**
- * @brief External declaration of the Port pin description array
- */
- extern const uint16 Port_au16PinDescription[8][9];
- #endif
- #define PORT_STOP_SEC_CONST_16
- #include "Port_MemMap.h"
- /*=================================================================================================
- * FUNCTION PROTOTYPES
- =================================================================================================*/
- #ifdef __cplusplus
- }
- #endif
- /** @} */
- #endif /* PORT_CFG_H */
- /* End of File */
|