1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174 |
- /* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
- !!GlobalInfo
- product: Clocks v7.0
- processor: S32K144
- package_id: S32K144_LQFP100
- mcu_data: PlatformSDK_S32K1_2021_08
- processor_version: 0.0.0
- * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral :
- * 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_ASR_REL_4_4_REV_0000_20210810
- *
- * (c) Copyright 2020 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 Clock_Ip_PBcfg.c
- * @version 1.0.0
- *
- * @brief AUTOSAR Mcu - Post-Build(PB) configuration file code template.
- * @details Code template for Post-Build(PB) configuration file generation.
- *
- * @addtogroup CLOCK_DRIVER_CONFIGURATION Clock Driver
- * @{
- */
- #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 "Clock_Ip_PBcfg.h"
- #include "StandardTypes.h"
- #include "Clock_Ip.h"
- #include "Clock_Ip_Private.h"
- /*==================================================================================================
- * SOURCE FILE VERSION INFORMATION
- ==================================================================================================*/
- #define CLOCK_IP_PBCFG_VENDOR_ID_C 43
- #define CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION_C 4
- #define CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION_C 4
- #define CLOCK_IP_PBCFG_AR_RELEASE_REVISION_VERSION_C 0
- #define CLOCK_IP_PBCFG_SW_MAJOR_VERSION_C 1
- #define CLOCK_IP_PBCFG_SW_MINOR_VERSION_C 0
- #define CLOCK_IP_PBCFG_SW_PATCH_VERSION_C 0
- /*==================================================================================================
- * FILE VERSION CHECKS
- ==================================================================================================*/
- /* Check if source file and Clock_Ip_PBcfg.h file are of the same vendor */
- #if (CLOCK_IP_PBCFG_VENDOR_ID_C != CLOCK_IP_PBCFG_VENDOR_ID)
- #error "Clock_Ip_PBcfg.c and Clock_Ip_PBcfg.h have different vendor ids"
- #endif
- /* Check if source file and Clock_Ip_PBcfg.h file are of the same Autosar version */
- #if ((CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION_C != CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION_C != CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_REVISION_VERSION_C != CLOCK_IP_PBCFG_AR_RELEASE_REVISION_VERSION) \
- )
- #error "AutoSar Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip_PBcfg.h are different"
- #endif
- /* Check if source file and Clock_Ip_PBcfg.h file are of the same Software version */
- #if ((CLOCK_IP_PBCFG_SW_MAJOR_VERSION_C != CLOCK_IP_PBCFG_SW_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_MINOR_VERSION_C != CLOCK_IP_PBCFG_SW_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_PATCH_VERSION_C != CLOCK_IP_PBCFG_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip_PBcfg.h are different"
- #endif
- #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
- /* Check if source file and StandardTypes.h file are of the same Autosar version */
- #if ((CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION_C != STD_AR_RELEASE_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION_C != STD_AR_RELEASE_MINOR_VERSION) \
- )
- #error "AutoSar Version Numbers of Clock_Ip_PBcfg.c and StandardTypes.h are different"
- #endif
- #endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
- /* Check if source file and Clock_Ip.h file are of the same vendor */
- #if (CLOCK_IP_PBCFG_VENDOR_ID_C != CLOCK_IP_VENDOR_ID)
- #error "Clock_Ip_PBcfg.c and Clock_Ip.h have different vendor ids"
- #endif
- /* Check if source file and Clock_Ip.h file are of the same Autosar version */
- #if ((CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION_C != CLOCK_IP_AR_RELEASE_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION_C != CLOCK_IP_AR_RELEASE_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_REVISION_VERSION_C != CLOCK_IP_AR_RELEASE_REVISION_VERSION) \
- )
- #error "AutoSar Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip.h are different"
- #endif
- /* Check if source file and Clock_Ip.h file are of the same Software version */
- #if ((CLOCK_IP_PBCFG_SW_MAJOR_VERSION_C != CLOCK_IP_SW_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_MINOR_VERSION_C != CLOCK_IP_SW_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_PATCH_VERSION_C != CLOCK_IP_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip.h are different"
- #endif
- /* Check if source file and Clock_Ip_Private.h file are of the same vendor */
- #if (CLOCK_IP_PBCFG_VENDOR_ID_C != CLOCK_IP_PRIVATE_VENDOR_ID)
- #error "Clock_Ip_PBcfg.c and Clock_Ip_Private.h have different vendor ids"
- #endif
- /* Check if source file and Clock_Ip_Private.h file are of the same Autosar version */
- #if ((CLOCK_IP_PBCFG_AR_RELEASE_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_MINOR_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_AR_RELEASE_REVISION_VERSION_C != CLOCK_IP_PRIVATE_AR_RELEASE_REVISION_VERSION) \
- )
- #error "AutoSar Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip_Private.h are different"
- #endif
- /* Check if source file and Clock_Ip_Private.h file are of the same Software version */
- #if ((CLOCK_IP_PBCFG_SW_MAJOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MAJOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_MINOR_VERSION_C != CLOCK_IP_PRIVATE_SW_MINOR_VERSION) || \
- (CLOCK_IP_PBCFG_SW_PATCH_VERSION_C != CLOCK_IP_PRIVATE_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of Clock_Ip_PBcfg.c and Clock_Ip_Private.h are different"
- #endif
- /*==================================================================================================
- LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
- ==================================================================================================*/
- /*==================================================================================================
- LOCAL MACROS
- ==================================================================================================*/
- /*==================================================================================================
- LOCAL CONSTANTS
- ==================================================================================================*/
- /*==================================================================================================
- LOCAL VARIABLES
- ==================================================================================================*/
- /*==================================================================================================
- GLOBAL CONSTANTS
- ==================================================================================================*/
- /*==================================================================================================
- GLOBAL VARIABLES
- ==================================================================================================*/
- #define MCU_START_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Mcu_MemMap.h"
- /* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
- !!Configuration
- name: BOARD_BootClockRUN
- called_from_default_init: true
- outputs:
- - {id: ADC0_CLK.outFreq, value: 8 MHz}
- - {id: ADC1_CLK.outFreq, value: 8 MHz}
- - {id: BUS_CLK.outFreq, value: 48 MHz}
- - {id: CLKOUT0_CLK.outFreq, value: 48 MHz}
- - {id: CMP0_CLK.outFreq, value: 48 MHz}
- - {id: CORE_CLK.outFreq, value: 48 MHz}
- - {id: CRC0_CLK.outFreq, value: 48 MHz}
- - {id: DMA0_CLK.outFreq, value: 48 MHz}
- - {id: DMAMUX0_CLK.outFreq, value: 48 MHz}
- - {id: EIM0_CLK.outFreq, value: 48 MHz}
- - {id: ERM0_CLK.outFreq, value: 48 MHz}
- - {id: EWM0_CLK.outFreq, value: 48 MHz}
- - {id: FIRCDIV1_CLK.outFreq, value: 48 MHz}
- - {id: FIRCDIV2_CLK.outFreq, value: 48 MHz}
- - {id: FIRCOUT.outFreq, value: 48 MHz}
- - {id: FLASH_CLK.outFreq, value: 12 MHz}
- - {id: FLEXCAN0_CLK.outFreq, value: 48 MHz}
- - {id: FLEXCAN1_CLK.outFreq, value: 48 MHz}
- - {id: FLEXCAN2_CLK.outFreq, value: 48 MHz}
- - {id: FTFC0_CLK.outFreq, value: 12 MHz}
- - {id: FTM0_CLK.outFreq, value: 8 MHz}
- - {id: FTM1_CLK.outFreq, value: 8 MHz}
- - {id: FTM2_CLK.outFreq, value: 8 MHz}
- - {id: FTM3_CLK.outFreq, value: 8 MHz}
- - {id: FlexIO0_CLK.outFreq, value: 8 MHz}
- - {id: FlexIO_CLK.outFreq, value: 8 MHz}
- - {id: LPI2C0_CLK.outFreq, value: 8 MHz}
- - {id: LPIT0_CLK.outFreq, value: 8 MHz}
- - {id: LPO_128K_CLK.outFreq, value: 128 kHz}
- - {id: LPO_1K_CLK.outFreq, value: 1 kHz}
- - {id: LPO_32K_CLK.outFreq, value: 32 kHz}
- - {id: LPO_CLK.outFreq, value: 128 kHz}
- - {id: LPSPI0_CLK.outFreq, value: 8 MHz}
- - {id: LPSPI1_CLK.outFreq, value: 8 MHz}
- - {id: LPSPI2_CLK.outFreq, value: 8 MHz}
- - {id: LPTMR0_CLK.outFreq, value: 8 MHz}
- - {id: LPUART0_CLK.outFreq, value: 8 MHz}
- - {id: LPUART1_CLK.outFreq, value: 8 MHz}
- - {id: LPUART2_CLK.outFreq, value: 8 MHz}
- - {id: MPU0_CLK.outFreq, value: 48 MHz}
- - {id: MSCM0_CLK.outFreq, value: 48 MHz}
- - {id: PDB0_CLK.outFreq, value: 48 MHz}
- - {id: PDB1_CLK.outFreq, value: 48 MHz}
- - {id: PORTA_CLK.outFreq, value: 48 MHz}
- - {id: PORTB_CLK.outFreq, value: 48 MHz}
- - {id: PORTC_CLK.outFreq, value: 48 MHz}
- - {id: PORTD_CLK.outFreq, value: 48 MHz}
- - {id: PORTE_CLK.outFreq, value: 48 MHz}
- - {id: RTC0_CLK.outFreq, value: 8 MHz}
- - {id: RTC_CLK.outFreq, value: 8 MHz}
- - {id: RTC_CLKIN.outFreq, value: 32.768 kHz}
- - {id: SCGCLKOUT_CLK.outFreq, value: 48 MHz}
- - {id: SIRCDIV1_CLK.outFreq, value: 8 MHz}
- - {id: SIRCDIV2_CLK.outFreq, value: 8 MHz}
- - {id: SIRCOUT.outFreq, value: 8 MHz}
- - {id: SOSCDIV1_CLK.outFreq, value: 8 MHz}
- - {id: SOSCDIV2_CLK.outFreq, value: 8 MHz}
- - {id: SOSCOUT.outFreq, value: 8 MHz}
- - {id: SPLLDIV1_CLK.outFreq, value: 48 MHz}
- - {id: SPLLDIV2_CLK.outFreq, value: 24 MHz}
- - {id: SYS_CLK.outFreq, value: 48 MHz}
- - {id: TRACE_CLK.outFreq, value: 48 MHz}
- settings:
- - {id: DIVBUS.scale, value: '1', locked: true}
- - {id: DIVCORE.scale, value: '1', locked: true}
- - {id: DIVSLOW.scale, value: '4', locked: true}
- - {id: 'HSRUN:DIVBUS.scale', value: '1', locked: true}
- - {id: 'HSRUN:DIVCORE.scale', value: '1', locked: true}
- - {id: 'HSRUN:DIVSLOW.scale', value: '4', locked: true}
- - {id: PREDIV.scale, value: '1', locked: true}
- - {id: 'RUN:DIVBUS.scale', value: '1', locked: true}
- - {id: 'RUN:DIVCORE.scale', value: '1', locked: true}
- - {id: 'RUN:DIVSLOW.scale', value: '4', locked: true}
- - {id: SCG_SOSCCSR_SOSCEN_CFG, value: Enabled}
- - {id: SCG_SPLLCSR_SPLLEN_CFG, value: Enabled}
- - {id: SIRCDIV1.scale, value: '1', locked: true}
- - {id: SIRCDIV2.scale, value: '1', locked: true}
- - {id: SPLLDIV1.scale, value: '2', locked: true}
- - {id: SPLLDIV2.scale, value: '4', locked: true}
- - {id: SPLL_mul.scale, value: '24', locked: true}
- - {id: 'VLPR:DIVBUS.scale', value: '1', locked: true}
- - {id: 'VLPR:DIVCORE.scale', value: '8', locked: true}
- - {id: 'VLPR:DIVSLOW.scale', value: '4', locked: true}
- - {id: 'VLPR:SCSSEL.sel', value: SIRC}
- sources:
- - {id: RTC.RTC_CLK_EXT_IN.outFreq, value: 32.768 kHz, enabled: true}
- - {id: SOSC.SOSC.outFreq, value: 8 MHz, enabled: true}
- * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
- /* *************************************************************************
- * Configuration structure for Clock Configuration
- * ************************************************************************* */
- /*! @brief User Configuration structure clock_Cfg_0 */
- const Clock_Ip_ClockConfigType Mcu_aClockConfigPB[1] = {
- {
- 0U, /* clkConfigId */
- 2U, /* ircoscsCount */
- 1U, /* xoscsCount */
- 1U, /* pllsCount */
- 28U, /* selectorsCount */
- 20U, /* dividersCount */
- 0U, /* dividerTriggersCount */
- 0U, /* fracDivsCount */
- 4U, /* extClksCount */
- 40U, /* gatesCount */
- 0U, /* pcfsCount */
- 0U, /* cmusCount */
- 0U, /* configureFrequenciesCount */
- /* IRCOSC initialization. */
- {
- #if CLOCK_IRCOSCS_NO > 0U
- {
- SIRC_CLK, /* name */
- 1U, /* Enabled ircosc */
- 0U, /* Disabled regulator */
- 1U, /* Ircosc range */
- 1U, /* Ircosc enable in VLP mode */
- 0U, /* Ircosc disable in STOP mode */
- },
- #endif
- #if CLOCK_IRCOSCS_NO > 1U
- {
- FIRC_CLK, /* name */
- 1U, /* Enabled ircosc */
- 0U, /* Disabled regulator */
- 0U, /* Ircosc range */
- 0U, /* Ircosc disable in VLP mode */
- 0U, /* Ircosc disable in STOP mode */
- },
- #endif
- },
- /* XOSC initialization. */
- {
- #if CLOCK_XOSCS_NO > 0U
- {
- SOSC_CLK, /* Clock name associated to xosc */
- 8000000U, /* External oscillator frequency */
- 1U, /* Enable xosc */
- 0U, /* Startup stabilization time */
- 0U, /* XOSC bypass option */
- 0U, /* Comparator is not enabled */
- 0U, /* Crystal overdrive protection */
- 0U, /* High gain value */
- FEATURE_CLOCK_IP_HAS_MONITOR_DISABLE, /* Monitor type */
- },
- #endif
- },
- /* PLL initialization. */
- {
- #if CLOCK_PLLS_NO > 0U
- {
- SPLL_CLK, /* name */
- 1U, /* enable */
- SOSC_CLK, /* inputReference */
- 0U, /* Bypass */
- 1U, /* predivider */
- 0U, /* numeratorFracLoopDiv */
- 24U, /* mulFactorDiv */
- 0U, /* modulation */
- 0U, /* Modulaton type: Spread spectrum modulation not bypassed */
- 0U, /* modulationPeriod */
- 1U, /* incrementStep */
- 0U, /* sigmaDelta */
- 0U, /* ditherControl */
- 0U, /* ditherControlValue */
- FEATURE_CLOCK_IP_HAS_MONITOR_DISABLE, /* Monitor type */
- },
- #endif
- },
- /* SELECTOR initialization. */
- {
- #if CLOCK_SELECTORS_NO > 0U
- {
- SCS_RUN_CLK, /* Clock name associated to selector */
- FIRC_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 1U
- {
- SCS_VLPR_CLK, /* Clock name associated to selector */
- SIRC_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 2U
- {
- SCS_HSRUN_CLK, /* Clock name associated to selector */
- FIRC_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 3U
- {
- SCG_CLKOUT_CLK, /* Clock name associated to selector */
- FIRC_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 4U
- {
- RTC_CLK, /* Clock name associated to selector */
- SOSCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 5U
- {
- LPO_CLK, /* Clock name associated to selector */
- LPO_128K_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 6U
- {
- TRACE_CLK, /* Clock name associated to selector */
- CORE_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 7U
- {
- CLKOUT0_CLK, /* Clock name associated to selector */
- SCG_CLKOUT_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 8U
- {
- FTM0_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 9U
- {
- FTM1_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 10U
- {
- FTM2_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 11U
- {
- FTM3_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 12U
- {
- FTM0_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 13U
- {
- FTM1_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 14U
- {
- FTM2_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 15U
- {
- FTM3_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 16U
- {
- ADC1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 17U
- {
- LPSPI0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 18U
- {
- LPSPI1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 19U
- {
- LPSPI2_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 20U
- {
- LPIT0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 21U
- {
- ADC0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 22U
- {
- FlexIO_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 23U
- {
- LPI2C0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 24U
- {
- LPUART0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 25U
- {
- LPUART1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 26U
- {
- LPUART2_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 27U
- {
- LPTMR0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- },
- /* DIVIDER initialization. */
- {
- #if CLOCK_DIVIDERS_NO > 0U
- {
- SIRCDIV1_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 1U
- {
- SIRCDIV2_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 2U
- {
- FIRCDIV1_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 3U
- {
- FIRCDIV2_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 4U
- {
- SOSCDIV1_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 5U
- {
- SOSCDIV2_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 6U
- {
- SPLLDIV1_CLK, /* name */
- 2U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 7U
- {
- SPLLDIV2_CLK, /* name */
- 4U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 8U
- {
- CORE_RUN_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 9U
- {
- CORE_VLPR_CLK, /* name */
- 8U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 10U
- {
- CORE_HSRUN_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 11U
- {
- BUS_RUN_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 12U
- {
- BUS_VLPR_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 13U
- {
- BUS_HSRUN_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 14U
- {
- SLOW_RUN_CLK, /* name */
- 4U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 15U
- {
- SLOW_VLPR_CLK, /* name */
- 4U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 16U
- {
- SLOW_HSRUN_CLK, /* name */
- 4U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 17U
- {
- CLKOUT0_CLK, /* name */
- 1U, /* value */
- {
- 0U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 18U
- {
- LPTMR0_CLK, /* name */
- 1U, /* value */
- {
- 1U,
- }
- },
- #endif
- #if CLOCK_DIVIDERS_NO > 19U
- {
- TRACE_CLK, /* name */
- 1U, /* value */
- {
- 1U,
- }
- },
- #endif
- },
- /* DIVIDER TRIGGER Initialization. */
- {
- #if CLOCK_DIVIDER_TRIGGERS_NO > 0U
- {
- RESERVED_CLK, /* divider name */
- IMMEDIATE_DIVIDER_UPDATE, /* trigger value */
- RESERVED_CLK, /* input source name */
- },
- #endif
- },
- /* FRACTIONAL DIVIDER initialization. */
- {
- {
- RESERVED_CLK,
- 0U,
- {
- 0U,
- 0U,
- },
- },
- },
- /* EXTERNAL CLOCKS initialization. */
- {
- #if CLOCK_EXT_CLKS_NO > 0U
- {
- TCLK0_REF_CLK, /* name */
- 0U, /* value */
- },
- #endif
- #if CLOCK_EXT_CLKS_NO > 1U
- {
- TCLK1_REF_CLK, /* name */
- 0U, /* value */
- },
- #endif
- #if CLOCK_EXT_CLKS_NO > 2U
- {
- TCLK2_REF_CLK, /* name */
- 0U, /* value */
- },
- #endif
- #if CLOCK_EXT_CLKS_NO > 3U
- {
- RTC_CLKIN, /* name */
- 32768U, /* value */
- },
- #endif
- },
- /* CLOCK GATES initialization. */
- {
- #if CLOCK_GATES_NO > 0U
- {
- LPO_32K_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 1U
- {
- LPO_1K_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 2U
- {
- ADC0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 3U
- {
- ADC1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 4U
- {
- CLKOUT0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 5U
- {
- CMP0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 6U
- {
- CRC0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 7U
- {
- DMA0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 8U
- {
- DMAMUX0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 9U
- {
- EIM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 10U
- {
- ERM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 11U
- {
- EWM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 12U
- {
- FLEXCAN0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 13U
- {
- FLEXCAN1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 14U
- {
- FLEXCAN2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 15U
- {
- FlexIO_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 16U
- {
- FTFC_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 17U
- {
- FTM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 18U
- {
- FTM1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 19U
- {
- FTM2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 20U
- {
- FTM3_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 21U
- {
- LPI2C0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 22U
- {
- LPIT0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 23U
- {
- LPSPI0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 24U
- {
- LPSPI1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 25U
- {
- LPSPI2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 26U
- {
- LPTMR0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 27U
- {
- LPUART0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 28U
- {
- LPUART1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 29U
- {
- LPUART2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 30U
- {
- MPU0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 31U
- {
- MSCM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 32U
- {
- PDB0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 33U
- {
- PDB1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 34U
- {
- PORTA_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 35U
- {
- PORTB_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 36U
- {
- PORTC_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 37U
- {
- PORTD_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 38U
- {
- PORTE_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 39U
- {
- RTC0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- },
- /* Progressive clock switching */
- {
- {
- RESERVED_CLK,
- 0,
- 0,
- RESERVED_CLK,
- 0,
- },
- },
- /* Clock monitor */
- {
- {
- RESERVED_CLK,
- 0U,
- 0U,
- 0U,
- },
- },
- /* Specific peripheral initialization. */
- {
- 0U,
- {
- {
- RESERVED_VALUE,
- 0U,
- },
- },
- },
- /* Configured frequency values. */
- {
- {
- RESERVED_CLK,
- 0U,
- },
- },
- },
- };
- #define MCU_STOP_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Mcu_MemMap.h"
- /*==================================================================================================
- LOCAL FUNCTION PROTOTYPES
- ==================================================================================================*/
- /*==================================================================================================
- LOCAL FUNCTIONS
- ==================================================================================================*/
- /*==================================================================================================
- GLOBAL FUNCTIONS
- ==================================================================================================*/
- #ifdef __cplusplus
- }
- #endif
- /** @} */
|