123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- Mcu_SleepOnExit (Mcu_SleepOnExitType SleepOnExit)
- {
- <bb 2> :
- Mcu_Ipw_SleepOnExit (SleepOnExit_2(D));
- return;
- }
- Mcu_PerformReset ()
- {
- const struct Mcu_ConfigType * Mcu_pConfigPtr.7_1;
- const struct Mcu_HwIPsConfigType * _2;
- <bb 2> :
- Mcu_pConfigPtr.7_1 = Mcu_pConfigPtr;
- _2 = Mcu_pConfigPtr.7_1->Mcu_pHwIPsConfig;
- Mcu_Ipw_PerformReset (_2);
- return;
- }
- Mcu_GetResetRawValue ()
- {
- Mcu_RawResetType RawResetValue;
- Mcu_RawResetType D.6028;
- Mcu_RawResetType _4;
- <bb 2> :
- RawResetValue_3 = Mcu_Ipw_GetResetRawValue ();
- _4 = RawResetValue_3;
- <bb 3> :
- <L0>:
- return _4;
- }
- Mcu_GetResetReason ()
- {
- Mcu_ResetType eResetReason;
- Mcu_ResetType D.6026;
- Mcu_ResetType _4;
- <bb 2> :
- eResetReason_3 = Mcu_Ipw_GetResetReason ();
- _4 = eResetReason_3;
- <bb 3> :
- <L0>:
- return _4;
- }
- Mcu_GetPllStatus ()
- {
- Mcu_PllStatusType ePllStatus;
- Mcu_PllStatusType D.6024;
- Mcu_PllStatusType _2;
- <bb 2> :
- ePllStatus_1 = 90;
- _2 = ePllStatus_1;
- <bb 3> :
- <L0>:
- return _2;
- }
- Mcu_SetMode (Mcu_ModeType McuMode)
- {
- const struct Mcu_ConfigType * Mcu_pConfigPtr.6_1;
- const struct Mcu_ModeConfigType[1] * _2;
- unsigned char _3;
- int _4;
- const struct Mcu_ModeConfigType * _5;
- <bb 2> :
- SchM_Enter_Mcu_MCU_EXCLUSIVE_AREA_00 ();
- Mcu_pConfigPtr.6_1 = Mcu_pConfigPtr;
- _2 = Mcu_pConfigPtr.6_1->Mcu_apModeConfig;
- _3 = Mcu_au8ModeConfigIds[McuMode_8(D)];
- _4 = (int) _3;
- _5 = &*_2[_4];
- Mcu_Ipw_SetMode (_5);
- SchM_Exit_Mcu_MCU_EXCLUSIVE_AREA_00 ();
- return;
- }
- Mcu_InitClock (Mcu_ClockType ClockSetting)
- {
- Std_ReturnType ClockStatus;
- Std_ReturnType D.6022;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.5_1;
- const struct Mcu_ClockConfigType[1] * _2;
- unsigned char _3;
- int _4;
- const struct Mcu_ClockConfigType * _5;
- Std_ReturnType _10;
- <bb 2> :
- Mcu_pConfigPtr.5_1 = Mcu_pConfigPtr;
- _2 = Mcu_pConfigPtr.5_1->Mcu_apClockConfig;
- _3 = Mcu_au8ClockConfigIds[ClockSetting_7(D)];
- _4 = (int) _3;
- _5 = &*_2[_4];
- Mcu_Ipw_InitClock (_5);
- ClockStatus_9 = 0;
- _10 = ClockStatus_9;
- <bb 3> :
- <L0>:
- return _10;
- }
- Mcu_InitRamSection (Mcu_RamSectionType RamSection)
- {
- Std_ReturnType RamStatus;
- Std_ReturnType D.6020;
- Std_ReturnType _2;
- <bb 2> :
- RamStatus_1 = 1;
- _2 = RamStatus_1;
- <bb 3> :
- <L0>:
- return _2;
- }
- Mcu_Init (const struct Mcu_ConfigType * pConfigPtr)
- {
- uint32 u32NoConfigs;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.0_1;
- const struct Mcu_ModeConfigType[1] * _2;
- long unsigned int _3;
- unsigned char _4;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.1_5;
- long unsigned int _6;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.2_7;
- const struct Mcu_ClockConfigType[1] * _8;
- long unsigned int _9;
- unsigned char _10;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.3_11;
- long unsigned int _12;
- const struct Mcu_ConfigType * Mcu_pConfigPtr.4_13;
- const struct Mcu_HwIPsConfigType * _14;
- <bb 2> :
- Mcu_pConfigPtr = &Mcu_PreCompileConfig;
- u32NoConfigs_21 = 0;
- goto <bb 4>; [INV]
- <bb 3> :
- Mcu_pConfigPtr.0_1 = Mcu_pConfigPtr;
- _2 = Mcu_pConfigPtr.0_1->Mcu_apModeConfig;
- _3 = *_2[u32NoConfigs_15].Power_Ip_ModeConfigId;
- _4 = (unsigned char) u32NoConfigs_15;
- Mcu_au8ModeConfigIds[_3] = _4;
- u32NoConfigs_27 = u32NoConfigs_15 + 1;
- <bb 4> :
- # u32NoConfigs_15 = PHI <u32NoConfigs_21(2), u32NoConfigs_27(3)>
- Mcu_pConfigPtr.1_5 = Mcu_pConfigPtr;
- _6 = Mcu_pConfigPtr.1_5->Mcu_NoModeConfigs;
- if (u32NoConfigs_15 < _6)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- u32NoConfigs_22 = 0;
- goto <bb 7>; [INV]
- <bb 6> :
- Mcu_pConfigPtr.2_7 = Mcu_pConfigPtr;
- _8 = Mcu_pConfigPtr.2_7->Mcu_apClockConfig;
- _9 = *_8[u32NoConfigs_16].ClkConfigId;
- _10 = (unsigned char) u32NoConfigs_16;
- Mcu_au8ClockConfigIds[_9] = _10;
- u32NoConfigs_25 = u32NoConfigs_16 + 1;
- <bb 7> :
- # u32NoConfigs_16 = PHI <u32NoConfigs_22(5), u32NoConfigs_25(6)>
- Mcu_pConfigPtr.3_11 = Mcu_pConfigPtr;
- _12 = Mcu_pConfigPtr.3_11->Mcu_NoClkConfigs;
- if (u32NoConfigs_16 < _12)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 8> :
- Mcu_pConfigPtr.4_13 = Mcu_pConfigPtr;
- _14 = Mcu_pConfigPtr.4_13->Mcu_pHwIPsConfig;
- Mcu_Ipw_Init (_14);
- return;
- }
|