123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218 |
- /* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
- !!GlobalInfo
- product: Clocks v7.0
- processor: S32K146
- package_id: S32K146_LQFP144
- 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: 24 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: 24 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: FTM4_CLK.outFreq, value: 8 MHz}
- - {id: FTM5_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: '2', locked: true}
- - {id: 'HSRUN:DIVBUS.scale', value: '1', locked: true}
- - {id: 'HSRUN:DIVCORE.scale', value: '1', locked: true}
- - {id: 'HSRUN:DIVSLOW.scale', value: '2', 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: '2', 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 */
- 32U, /* selectorsCount */
- 20U, /* dividersCount */
- 0U, /* dividerTriggersCount */
- 0U, /* fracDivsCount */
- 4U, /* extClksCount */
- 42U, /* 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
- {
- FTM4_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 13U
- {
- FTM5_EXT_CLK, /* Clock name associated to selector */
- TCLK0_REF_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 14U
- {
- FTM0_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 15U
- {
- FTM1_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 16U
- {
- FTM2_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 17U
- {
- FTM3_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 18U
- {
- FTM4_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 19U
- {
- FTM5_CLK, /* Clock name associated to selector */
- SIRCDIV1_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 20U
- {
- ADC1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 21U
- {
- LPSPI0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 22U
- {
- LPSPI1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 23U
- {
- LPSPI2_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 24U
- {
- LPIT0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 25U
- {
- ADC0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 26U
- {
- FlexIO_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 27U
- {
- LPI2C0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 28U
- {
- LPUART0_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 29U
- {
- LPUART1_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 30U
- {
- LPUART2_CLK, /* Clock name associated to selector */
- SIRCDIV2_CLK, /* Name of the selected input source */
- },
- #endif
- #if CLOCK_SELECTORS_NO > 31U
- {
- 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 */
- 2U, /* 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 */
- 2U, /* 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
- {
- FTM4_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 22U
- {
- FTM5_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 23U
- {
- LPI2C0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 24U
- {
- LPIT0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 25U
- {
- LPSPI0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 26U
- {
- LPSPI1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 27U
- {
- LPSPI2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 28U
- {
- LPTMR0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 29U
- {
- LPUART0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 30U
- {
- LPUART1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 31U
- {
- LPUART2_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 32U
- {
- MPU0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 33U
- {
- MSCM0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 34U
- {
- PDB0_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 35U
- {
- PDB1_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 36U
- {
- PORTA_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 37U
- {
- PORTB_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 38U
- {
- PORTC_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 39U
- {
- PORTD_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 40U
- {
- PORTE_CLK, /* name */
- 1U, /* enable */
- },
- #endif
- #if CLOCK_GATES_NO > 41U
- {
- 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
- /** @} */
|