rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
fsl_smc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _FSL_SMC_H_
10#define _FSL_SMC_H_
11
12#include "fsl_common.h"
13
14/*! @addtogroup smc */
15/*! @{ */
16
17/*******************************************************************************
18 * Definitions
19 ******************************************************************************/
20
21/*! @name Driver version */
22/*@{*/
23/*! @brief SMC driver version 2.0.4. */
24#define FSL_SMC_DRIVER_VERSION (MAKE_VERSION(2, 0, 4))
25/*@}*/
26
27/*!
28 * @brief Power Modes Protection
29 */
31{
32#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
33 kSMC_AllowPowerModeVlls = SMC_PMPROT_AVLLS_MASK, /*!< Allow Very-low-leakage Stop Mode. */
34#endif
35#if (defined(FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE)
36 kSMC_AllowPowerModeLls = SMC_PMPROT_ALLS_MASK, /*!< Allow Low-leakage Stop Mode. */
37#endif /* FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE */
38 kSMC_AllowPowerModeVlp = SMC_PMPROT_AVLP_MASK, /*!< Allow Very-Low-power Mode. */
39#if (defined(FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE) && FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE)
40 kSMC_AllowPowerModeHsrun = SMC_PMPROT_AHSRUN_MASK, /*!< Allow High-speed Run mode. */
41#endif /* FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE */
43#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
44 |
45 SMC_PMPROT_AVLLS_MASK
46#endif
47#if (defined(FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE)
48 |
49 SMC_PMPROT_ALLS_MASK
50#endif /* FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE */
51 |
52 SMC_PMPROT_AVLP_MASK
53#if (defined(FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE) && FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE)
54 |
56#endif /* FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE */
57 ) /*!< Allow all power mode. */
59
60/*!
61 * @brief Power Modes in PMSTAT
62 */
63typedef enum _smc_power_state
64{
65 kSMC_PowerStateRun = 0x01U << 0U, /*!< 0000_0001 - Current power mode is RUN */
66 kSMC_PowerStateStop = 0x01U << 1U, /*!< 0000_0010 - Current power mode is STOP */
67 kSMC_PowerStateVlpr = 0x01U << 2U, /*!< 0000_0100 - Current power mode is VLPR */
68 kSMC_PowerStateVlpw = 0x01U << 3U, /*!< 0000_1000 - Current power mode is VLPW */
69 kSMC_PowerStateVlps = 0x01U << 4U, /*!< 0001_0000 - Current power mode is VLPS */
70#if (defined(FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE)
71 kSMC_PowerStateLls = 0x01U << 5U, /*!< 0010_0000 - Current power mode is LLS */
72#endif /* FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE */
73#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
74 kSMC_PowerStateVlls = 0x01U << 6U, /*!< 0100_0000 - Current power mode is VLLS */
75#endif
76#if (defined(FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE) && FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE)
77 kSMC_PowerStateHsrun = 0x01U << 7U /*!< 1000_0000 - Current power mode is HSRUN */
78#endif /* FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE */
80
81/*!
82 * @brief Run mode definition
83 */
84typedef enum _smc_run_mode
85{
86 kSMC_RunNormal = 0U, /*!< Normal RUN mode. */
87 kSMC_RunVlpr = 2U, /*!< Very-low-power RUN mode. */
88#if (defined(FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE) && FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE)
89 kSMC_Hsrun = 3U /*!< High-speed Run mode (HSRUN). */
90#endif /* FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE */
92
93/*!
94 * @brief Stop mode definition
95 */
96typedef enum _smc_stop_mode
97{
98 kSMC_StopNormal = 0U, /*!< Normal STOP mode. */
99 kSMC_StopVlps = 2U, /*!< Very-low-power STOP mode. */
100#if (defined(FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE)
101 kSMC_StopLls = 3U, /*!< Low-leakage Stop mode. */
102#endif /* FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE */
103#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
104 kSMC_StopVlls = 4U /*!< Very-low-leakage Stop mode. */
105#endif
107
108#if (defined(FSL_FEATURE_SMC_USE_VLLSCTRL_REG) && FSL_FEATURE_SMC_USE_VLLSCTRL_REG) || \
109 (defined(FSL_FEATURE_SMC_USE_STOPCTRL_VLLSM) && FSL_FEATURE_SMC_USE_STOPCTRL_VLLSM) || \
110 (defined(FSL_FEATURE_SMC_HAS_LLS_SUBMODE) && FSL_FEATURE_SMC_HAS_LLS_SUBMODE)
111/*!
112 * @brief VLLS/LLS stop sub mode definition
113 */
115{
116 kSMC_StopSub0 = 0U, /*!< Stop submode 0, for VLLS0/LLS0. */
117 kSMC_StopSub1 = 1U, /*!< Stop submode 1, for VLLS1/LLS1. */
118 kSMC_StopSub2 = 2U, /*!< Stop submode 2, for VLLS2/LLS2. */
119 kSMC_StopSub3 = 3U /*!< Stop submode 3, for VLLS3/LLS3. */
121#endif
122
123/*!
124 * @brief Partial STOP option
125 */
127{
128 kSMC_PartialStop = 0U, /*!< STOP - Normal Stop mode*/
129 kSMC_PartialStop1 = 1U, /*!< Partial Stop with both system and bus clocks disabled*/
130 kSMC_PartialStop2 = 2U, /*!< Partial Stop with system clock disabled and bus clock enabled*/
132
133/*!
134 * @brief SMC configuration status.
135 */
137{
138 kStatus_SMC_StopAbort = MAKE_STATUS(kStatusGroup_POWER, 0) /*!< Entering Stop mode is abort*/
140
141#if (defined(FSL_FEATURE_SMC_HAS_VERID) && FSL_FEATURE_SMC_HAS_VERID)
142/*!
143 * @brief IP version ID definition.
144 */
145typedef struct _smc_version_id
146{
147 uint16_t feature; /*!< Feature Specification Number. */
148 uint8_t minor; /*!< Minor version number. */
149 uint8_t major; /*!< Major version number. */
151#endif /* FSL_FEATURE_SMC_HAS_VERID */
152
153#if (defined(FSL_FEATURE_SMC_HAS_PARAM) && FSL_FEATURE_SMC_HAS_PARAM)
154/*!
155 * @brief IP parameter definition.
156 */
157typedef struct _smc_param
158{
159 bool hsrunEnable; /*!< HSRUN mode enable. */
160 bool llsEnable; /*!< LLS mode enable. */
161 bool lls2Enable; /*!< LLS2 mode enable. */
162 bool vlls0Enable; /*!< VLLS0 mode enable. */
164#endif /* FSL_FEATURE_SMC_HAS_PARAM */
165
166#if (defined(FSL_FEATURE_SMC_HAS_LLS_SUBMODE) && FSL_FEATURE_SMC_HAS_LLS_SUBMODE) || \
167 (defined(FSL_FEATURE_SMC_HAS_LPOPO) && FSL_FEATURE_SMC_HAS_LPOPO)
168/*!
169 * @brief SMC Low-Leakage Stop power mode configuration.
170 */
172{
173#if (defined(FSL_FEATURE_SMC_HAS_LLS_SUBMODE) && FSL_FEATURE_SMC_HAS_LLS_SUBMODE)
174 smc_stop_submode_t subMode; /*!< Low-leakage Stop sub-mode */
175#endif
176#if (defined(FSL_FEATURE_SMC_HAS_LPOPO) && FSL_FEATURE_SMC_HAS_LPOPO)
177 bool enableLpoClock; /*!< Enable LPO clock in LLS mode */
178#endif
180#endif /* (FSL_FEATURE_SMC_HAS_LLS_SUBMODE || FSL_FEATURE_SMC_HAS_LPOPO) */
181
182#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
183/*!
184 * @brief SMC Very Low-Leakage Stop power mode configuration.
185 */
187{
188#if (defined(FSL_FEATURE_SMC_USE_VLLSCTRL_REG) && FSL_FEATURE_SMC_USE_VLLSCTRL_REG) || \
189 (defined(FSL_FEATURE_SMC_USE_STOPCTRL_VLLSM) && FSL_FEATURE_SMC_USE_STOPCTRL_VLLSM) || \
190 (defined(FSL_FEATURE_SMC_HAS_LLS_SUBMODE) && FSL_FEATURE_SMC_HAS_LLS_SUBMODE)
191 smc_stop_submode_t subMode; /*!< Very Low-leakage Stop sub-mode */
192#endif
193#if (defined(FSL_FEATURE_SMC_HAS_PORPO) && FSL_FEATURE_SMC_HAS_PORPO)
194 bool enablePorDetectInVlls0; /*!< Enable Power on reset detect in VLLS mode */
195#endif
196#if (defined(FSL_FEATURE_SMC_HAS_RAM2_POWER_OPTION) && FSL_FEATURE_SMC_HAS_RAM2_POWER_OPTION)
197 bool enableRam2InVlls2; /*!< Enable RAM2 power in VLLS2 */
198#endif
199#if (defined(FSL_FEATURE_SMC_HAS_LPOPO) && FSL_FEATURE_SMC_HAS_LPOPO)
200 bool enableLpoClock; /*!< Enable LPO clock in VLLS mode */
201#endif
203#endif
204
205/*******************************************************************************
206 * API
207 ******************************************************************************/
208
209#if defined(__cplusplus)
210extern "C" {
211#endif /* __cplusplus */
212
213/*! @name System mode controller APIs*/
214/*@{*/
215
216#if (defined(FSL_FEATURE_SMC_HAS_VERID) && FSL_FEATURE_SMC_HAS_VERID)
217/*!
218 * @brief Gets the SMC version ID.
219 *
220 * This function gets the SMC version ID, including major version number,
221 * minor version number, and feature specification number.
222 *
223 * @param base SMC peripheral base address.
224 * @param versionId Pointer to the version ID structure.
225 */
226static inline void SMC_GetVersionId(SMC_Type *base, smc_version_id_t *versionId)
227{
228 *((uint32_t *)versionId) = base->VERID;
229}
230#endif /* FSL_FEATURE_SMC_HAS_VERID */
231
232#if (defined(FSL_FEATURE_SMC_HAS_PARAM) && FSL_FEATURE_SMC_HAS_PARAM)
233/*!
234 * @brief Gets the SMC parameter.
235 *
236 * This function gets the SMC parameter including the enabled power mdoes.
237 *
238 * @param base SMC peripheral base address.
239 * @param param Pointer to the SMC param structure.
240 */
241void SMC_GetParam(SMC_Type *base, smc_param_t *param);
242#endif
243
244/*!
245 * @brief Configures all power mode protection settings.
246 *
247 * This function configures the power mode protection settings for
248 * supported power modes in the specified chip family. The available power modes
249 * are defined in the smc_power_mode_protection_t. This should be done at an early
250 * system level initialization stage. See the reference manual for details.
251 * This register can only write once after the power reset.
252 *
253 * The allowed modes are passed as bit map. For example, to allow LLS and VLLS,
254 * use SMC_SetPowerModeProtection(kSMC_AllowPowerModeVlls | kSMC_AllowPowerModeVlps).
255 * To allow all modes, use SMC_SetPowerModeProtection(kSMC_AllowPowerModeAll).
256 *
257 * @param base SMC peripheral base address.
258 * @param allowedModes Bitmap of the allowed power modes.
259 */
260static inline void SMC_SetPowerModeProtection(SMC_Type *base, uint8_t allowedModes)
261{
262 base->PMPROT = allowedModes;
263}
264
265/*!
266 * @brief Gets the current power mode status.
267 *
268 * This function returns the current power mode status. After the application
269 * switches the power mode, it should always check the status to check whether it
270 * runs into the specified mode or not. The application should check
271 * this mode before switching to a different mode. The system requires that
272 * only certain modes can switch to other specific modes. See the
273 * reference manual for details and the smc_power_state_t for information about
274 * the power status.
275 *
276 * @param base SMC peripheral base address.
277 * @return Current power mode status.
278 */
279static inline smc_power_state_t SMC_GetPowerModeState(SMC_Type *base)
280{
281 return (smc_power_state_t)base->PMSTAT;
282}
283
284/*!
285 * @brief Prepares to enter stop modes.
286 *
287 * This function should be called before entering STOP/VLPS/LLS/VLLS modes.
288 */
289void SMC_PreEnterStopModes(void);
290
291/*!
292 * @brief Recovers after wake up from stop modes.
293 *
294 * This function should be called after wake up from STOP/VLPS/LLS/VLLS modes.
295 * It is used with @ref SMC_PreEnterStopModes.
296 */
297void SMC_PostExitStopModes(void);
298
299/*!
300 * @brief Prepares to enter wait modes.
301 *
302 * This function should be called before entering WAIT/VLPW modes.
303 */
304void SMC_PreEnterWaitModes(void);
305
306/*!
307 * @brief Recovers after wake up from stop modes.
308 *
309 * This function should be called after wake up from WAIT/VLPW modes.
310 * It is used with @ref SMC_PreEnterWaitModes.
311 */
312void SMC_PostExitWaitModes(void);
313
314/*!
315 * @brief Configures the system to RUN power mode.
316 *
317 * @param base SMC peripheral base address.
318 * @return SMC configuration error code.
319 */
320status_t SMC_SetPowerModeRun(SMC_Type *base);
321
322#if (defined(FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE) && FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE)
323/*!
324 * @brief Configures the system to HSRUN power mode.
325 *
326 * @param base SMC peripheral base address.
327 * @return SMC configuration error code.
328 */
329status_t SMC_SetPowerModeHsrun(SMC_Type *base);
330#endif /* FSL_FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE */
331
332/*!
333 * @brief Configures the system to WAIT power mode.
334 *
335 * @param base SMC peripheral base address.
336 * @return SMC configuration error code.
337 */
338status_t SMC_SetPowerModeWait(SMC_Type *base);
339
340/*!
341 * @brief Configures the system to Stop power mode.
342 *
343 * @param base SMC peripheral base address.
344 * @param option Partial Stop mode option.
345 * @return SMC configuration error code.
346 */
348
349#if (defined(FSL_FEATURE_SMC_HAS_LPWUI) && FSL_FEATURE_SMC_HAS_LPWUI)
350/*!
351 * @brief Configures the system to VLPR power mode.
352 *
353 * @param base SMC peripheral base address.
354 * @param wakeupMode Enter Normal Run mode if true, else stay in VLPR mode.
355 * @return SMC configuration error code.
356 */
357status_t SMC_SetPowerModeVlpr(SMC_Type *base, bool wakeupMode);
358#else
359/*!
360 * @brief Configures the system to VLPR power mode.
361 *
362 * @param base SMC peripheral base address.
363 * @return SMC configuration error code.
364 */
366#endif /* FSL_FEATURE_SMC_HAS_LPWUI */
367
368/*!
369 * @brief Configures the system to VLPW power mode.
370 *
371 * @param base SMC peripheral base address.
372 * @return SMC configuration error code.
373 */
374status_t SMC_SetPowerModeVlpw(SMC_Type *base);
375
376/*!
377 * @brief Configures the system to VLPS power mode.
378 *
379 * @param base SMC peripheral base address.
380 * @return SMC configuration error code.
381 */
382status_t SMC_SetPowerModeVlps(SMC_Type *base);
383
384#if (defined(FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE)
385#if ((defined(FSL_FEATURE_SMC_HAS_LLS_SUBMODE) && FSL_FEATURE_SMC_HAS_LLS_SUBMODE) || \
386 (defined(FSL_FEATURE_SMC_HAS_LPOPO) && FSL_FEATURE_SMC_HAS_LPOPO))
387/*!
388 * @brief Configures the system to LLS power mode.
389 *
390 * @param base SMC peripheral base address.
391 * @param config The LLS power mode configuration structure
392 * @return SMC configuration error code.
393 */
395#else
396/*!
397 * @brief Configures the system to LLS power mode.
398 *
399 * @param base SMC peripheral base address.
400 * @return SMC configuration error code.
401 */
403#endif
404#endif /* FSL_FEATURE_SMC_HAS_LOW_LEAKAGE_STOP_MODE */
405
406#if (defined(FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE) && FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE)
407/*!
408 * @brief Configures the system to VLLS power mode.
409 *
410 * @param base SMC peripheral base address.
411 * @param config The VLLS power mode configuration structure.
412 * @return SMC configuration error code.
413 */
415#endif /* FSL_FEATURE_SMC_HAS_VERY_LOW_LEAKAGE_STOP_MODE */
416
417/*@}*/
418
419#if defined(__cplusplus)
420}
421#endif /* __cplusplus */
422
423/*! @}*/
424
425#endif /* _FSL_SMC_H_ */
static constexpr persistent_config_s * config
int32_t status_t
Type used for all status and error return values.
Definition fsl_common.h:169
@ kStatusGroup_POWER
Definition fsl_common.h:92
bool vlls0Enable
Definition fsl_smc.h:162
struct _smc_power_mode_vlls_config smc_power_mode_vlls_config_t
SMC Very Low-Leakage Stop power mode configuration.
_smc_stop_submode
VLLS/LLS stop sub mode definition.
Definition fsl_smc.h:115
void SMC_GetParam(SMC_Type *base, smc_param_t *param)
Gets the SMC parameter.
Definition fsl_smc.c:85
_smc_stop_mode
Stop mode definition.
Definition fsl_smc.h:97
enum _smc_stop_mode smc_stop_mode_t
Stop mode definition.
struct _smc_power_mode_lls_config smc_power_mode_lls_config_t
SMC Low-Leakage Stop power mode configuration.
void SMC_PostExitStopModes(void)
Recovers after wake up from stop modes.
Definition fsl_smc.c:112
static void SMC_GetVersionId(SMC_Type *base, smc_version_id_t *versionId)
Gets the SMC version ID.
Definition fsl_smc.h:226
smc_stop_submode_t subMode
Definition fsl_smc.h:191
void SMC_PreEnterWaitModes(void)
Prepares to enter wait modes.
Definition fsl_smc.c:123
status_t SMC_SetPowerModeVlpr(SMC_Type *base, bool wakeupMode)
Configures the system to VLPR power mode.
void SMC_PreEnterStopModes(void)
Prepares to enter stop modes.
Definition fsl_smc.c:100
_smc_power_mode_protection
Power Modes Protection.
Definition fsl_smc.h:31
struct _smc_param smc_param_t
IP parameter definition.
status_t SMC_SetPowerModeLls(SMC_Type *base, const smc_power_mode_lls_config_t *config)
Configures the system to LLS power mode.
bool llsEnable
Definition fsl_smc.h:160
status_t SMC_SetPowerModeVlpw(SMC_Type *base)
Configures the system to VLPW power mode.
Definition fsl_smc.c:285
enum _smc_partial_stop_mode smc_partial_stop_option_t
Partial STOP option.
struct _smc_version_id smc_version_id_t
IP version ID definition.
bool hsrunEnable
Definition fsl_smc.h:159
status_t SMC_SetPowerModeVlps(SMC_Type *base)
Configures the system to VLPS power mode.
Definition fsl_smc.c:303
static void SMC_SetPowerModeProtection(SMC_Type *base, uint8_t allowedModes)
Configures all power mode protection settings.
Definition fsl_smc.h:260
static smc_power_state_t SMC_GetPowerModeState(SMC_Type *base)
Gets the current power mode status.
Definition fsl_smc.h:279
uint8_t minor
Definition fsl_smc.h:148
status_t SMC_SetPowerModeRun(SMC_Type *base)
Configures the system to RUN power mode.
Definition fsl_smc.c:147
enum _smc_power_mode_protection smc_power_mode_protection_t
Power Modes Protection.
status_t SMC_SetPowerModeStop(SMC_Type *base, smc_partial_stop_option_t option)
Configures the system to Stop power mode.
Definition fsl_smc.c:205
_smc_partial_stop_mode
Partial STOP option.
Definition fsl_smc.h:127
status_t SMC_SetPowerModeWait(SMC_Type *base)
Configures the system to WAIT power mode.
Definition fsl_smc.c:187
enum _smc_stop_submode smc_stop_submode_t
VLLS/LLS stop sub mode definition.
_smc_status
SMC configuration status.
Definition fsl_smc.h:137
_smc_run_mode
Run mode definition.
Definition fsl_smc.h:85
_smc_power_state
Power Modes in PMSTAT.
Definition fsl_smc.h:64
enum _smc_power_state smc_power_state_t
Power Modes in PMSTAT.
smc_stop_submode_t subMode
Definition fsl_smc.h:174
void SMC_PostExitWaitModes(void)
Recovers after wake up from stop modes.
Definition fsl_smc.c:135
bool lls2Enable
Definition fsl_smc.h:161
uint8_t major
Definition fsl_smc.h:149
enum _smc_run_mode smc_run_mode_t
Run mode definition.
status_t SMC_SetPowerModeVlls(SMC_Type *base, const smc_power_mode_vlls_config_t *config)
Configures the system to VLLS power mode.
Definition fsl_smc.c:400
uint16_t feature
Definition fsl_smc.h:147
status_t SMC_SetPowerModeHsrun(SMC_Type *base)
Configures the system to HSRUN power mode.
Definition fsl_smc.c:167
@ kSMC_StopSub3
Definition fsl_smc.h:119
@ kSMC_StopSub2
Definition fsl_smc.h:118
@ kSMC_StopSub1
Definition fsl_smc.h:117
@ kSMC_StopSub0
Definition fsl_smc.h:116
@ kSMC_StopVlps
Definition fsl_smc.h:99
@ kSMC_StopLls
Definition fsl_smc.h:101
@ kSMC_StopNormal
Definition fsl_smc.h:98
@ kSMC_StopVlls
Definition fsl_smc.h:104
@ kSMC_AllowPowerModeAll
Definition fsl_smc.h:42
@ kSMC_AllowPowerModeVlls
Definition fsl_smc.h:33
@ kSMC_AllowPowerModeVlp
Definition fsl_smc.h:38
@ kSMC_AllowPowerModeHsrun
Definition fsl_smc.h:40
@ kSMC_AllowPowerModeLls
Definition fsl_smc.h:36
@ kSMC_PartialStop
Definition fsl_smc.h:128
@ kSMC_PartialStop1
Definition fsl_smc.h:129
@ kSMC_PartialStop2
Definition fsl_smc.h:130
@ kStatus_SMC_StopAbort
Definition fsl_smc.h:138
@ kSMC_RunNormal
Definition fsl_smc.h:86
@ kSMC_RunVlpr
Definition fsl_smc.h:87
@ kSMC_Hsrun
Definition fsl_smc.h:89
@ kSMC_PowerStateVlls
Definition fsl_smc.h:74
@ kSMC_PowerStateVlpr
Definition fsl_smc.h:67
@ kSMC_PowerStateStop
Definition fsl_smc.h:66
@ kSMC_PowerStateRun
Definition fsl_smc.h:65
@ kSMC_PowerStateVlpw
Definition fsl_smc.h:68
@ kSMC_PowerStateVlps
Definition fsl_smc.h:69
@ kSMC_PowerStateLls
Definition fsl_smc.h:71
@ kSMC_PowerStateHsrun
Definition fsl_smc.h:77
IP parameter definition.
Definition fsl_smc.h:158
SMC Low-Leakage Stop power mode configuration.
Definition fsl_smc.h:172
SMC Very Low-Leakage Stop power mode configuration.
Definition fsl_smc.h:187
IP version ID definition.
Definition fsl_smc.h:146
static tstrWifiInitParam param