S32 SDK
clock_S32K144.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 - 2014, Freescale Semiconductor, Inc.
3  * Copyright 2016 NXP
4  * All rights reserved.
5  *
6  * THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
7  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
8  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
9  * IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
10  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
11  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
13  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
14  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
15  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
16  * THE POSSIBILITY OF SUCH DAMAGE.
17  */
18 
19 #if !defined(CLOCK_S32K144_H)
20 #define CLOCK_S32K144_H
21 
22 #include "scg_hal.h"
23 #include "pcc_hal.h"
24 #include "sim_hal.h"
25 #include "smc_hal.h" /* Required for SCG alternative clock usage */
26 #include "pmc_hal.h" /* Required for LPO settings */
27 
36 /*******************************************************************************
37  * Definitions
38  ******************************************************************************/
39 
40 /*******************************************************************************
41  * API
42  ******************************************************************************/
43 
44 #if defined(__cplusplus)
45 extern "C" {
46 #endif /* __cplusplus*/
47 
58 
67 void CLOCK_SYS_SetPccConfiguration(const pcc_config_t *peripheralClockConfig);
68 
77 void CLOCK_SYS_SetSimConfiguration(const sim_clock_config_t *simClockConfig);
78 
87 void CLOCK_SYS_SetPmcConfiguration(const pmc_config_t *pmcConfig);
88 
89 #if defined(__cplusplus)
90 }
91 #endif /* __cplusplus*/
92 
95 #endif /* CLOCK_S32K144_H */
96 /*******************************************************************************
97  * EOF
98  ******************************************************************************/
99 
status_t CLOCK_SYS_SetScgConfiguration(const scg_config_t *scgConfig)
Configures SCG module.
SCG configure structure. Implements scg_config_t_Class.
Definition: scg_hal.h:378
SIM configure structure. Implements sim_clock_config_t_Class.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
Definition: status.h:31
void CLOCK_SYS_SetSimConfiguration(const sim_clock_config_t *simClockConfig)
Configures SIM module.
PMC configure structure.
Definition: pmc_hal.h:70
void CLOCK_SYS_SetPmcConfiguration(const pmc_config_t *pmcConfig)
Configures PMC module.
void CLOCK_SYS_SetPccConfiguration(const pcc_config_t *peripheralClockConfig)
Configures PCC module.
PCC configuration. Implements pcc_config_t_Class.
Definition: pcc_hal.h:176