Mcu.c.064i.free-fnsummary1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. Mcu_SleepOnExit (Mcu_SleepOnExitType SleepOnExit)
  2. {
  3. <bb 2> :
  4. Mcu_Ipw_SleepOnExit (SleepOnExit_2(D));
  5. return;
  6. }
  7. Mcu_PerformReset ()
  8. {
  9. const struct Mcu_ConfigType * Mcu_pConfigPtr.7_1;
  10. const struct Mcu_HwIPsConfigType * _2;
  11. <bb 2> :
  12. Mcu_pConfigPtr.7_1 = Mcu_pConfigPtr;
  13. _2 = Mcu_pConfigPtr.7_1->Mcu_pHwIPsConfig;
  14. Mcu_Ipw_PerformReset (_2);
  15. return;
  16. }
  17. Mcu_GetResetRawValue ()
  18. {
  19. Mcu_RawResetType RawResetValue;
  20. Mcu_RawResetType D.6028;
  21. Mcu_RawResetType _4;
  22. <bb 2> :
  23. RawResetValue_3 = Mcu_Ipw_GetResetRawValue ();
  24. _4 = RawResetValue_3;
  25. <bb 3> :
  26. <L0>:
  27. return _4;
  28. }
  29. Mcu_GetResetReason ()
  30. {
  31. Mcu_ResetType eResetReason;
  32. Mcu_ResetType D.6026;
  33. Mcu_ResetType _4;
  34. <bb 2> :
  35. eResetReason_3 = Mcu_Ipw_GetResetReason ();
  36. _4 = eResetReason_3;
  37. <bb 3> :
  38. <L0>:
  39. return _4;
  40. }
  41. Mcu_GetPllStatus ()
  42. {
  43. Mcu_PllStatusType ePllStatus;
  44. Mcu_PllStatusType D.6024;
  45. Mcu_PllStatusType _2;
  46. <bb 2> :
  47. ePllStatus_1 = 90;
  48. _2 = ePllStatus_1;
  49. <bb 3> :
  50. <L0>:
  51. return _2;
  52. }
  53. Mcu_SetMode (Mcu_ModeType McuMode)
  54. {
  55. const struct Mcu_ConfigType * Mcu_pConfigPtr.6_1;
  56. const struct Mcu_ModeConfigType[1] * _2;
  57. unsigned char _3;
  58. int _4;
  59. const struct Mcu_ModeConfigType * _5;
  60. <bb 2> :
  61. SchM_Enter_Mcu_MCU_EXCLUSIVE_AREA_00 ();
  62. Mcu_pConfigPtr.6_1 = Mcu_pConfigPtr;
  63. _2 = Mcu_pConfigPtr.6_1->Mcu_apModeConfig;
  64. _3 = Mcu_au8ModeConfigIds[McuMode_8(D)];
  65. _4 = (int) _3;
  66. _5 = &*_2[_4];
  67. Mcu_Ipw_SetMode (_5);
  68. SchM_Exit_Mcu_MCU_EXCLUSIVE_AREA_00 ();
  69. return;
  70. }
  71. Mcu_InitClock (Mcu_ClockType ClockSetting)
  72. {
  73. Std_ReturnType ClockStatus;
  74. Std_ReturnType D.6022;
  75. const struct Mcu_ConfigType * Mcu_pConfigPtr.5_1;
  76. const struct Mcu_ClockConfigType[1] * _2;
  77. unsigned char _3;
  78. int _4;
  79. const struct Mcu_ClockConfigType * _5;
  80. Std_ReturnType _10;
  81. <bb 2> :
  82. Mcu_pConfigPtr.5_1 = Mcu_pConfigPtr;
  83. _2 = Mcu_pConfigPtr.5_1->Mcu_apClockConfig;
  84. _3 = Mcu_au8ClockConfigIds[ClockSetting_7(D)];
  85. _4 = (int) _3;
  86. _5 = &*_2[_4];
  87. Mcu_Ipw_InitClock (_5);
  88. ClockStatus_9 = 0;
  89. _10 = ClockStatus_9;
  90. <bb 3> :
  91. <L0>:
  92. return _10;
  93. }
  94. Mcu_InitRamSection (Mcu_RamSectionType RamSection)
  95. {
  96. Std_ReturnType RamStatus;
  97. Std_ReturnType D.6020;
  98. Std_ReturnType _2;
  99. <bb 2> :
  100. RamStatus_1 = 1;
  101. _2 = RamStatus_1;
  102. <bb 3> :
  103. <L0>:
  104. return _2;
  105. }
  106. Mcu_Init (const struct Mcu_ConfigType * pConfigPtr)
  107. {
  108. uint32 u32NoConfigs;
  109. const struct Mcu_ConfigType * Mcu_pConfigPtr.0_1;
  110. const struct Mcu_ModeConfigType[1] * _2;
  111. long unsigned int _3;
  112. unsigned char _4;
  113. const struct Mcu_ConfigType * Mcu_pConfigPtr.1_5;
  114. long unsigned int _6;
  115. const struct Mcu_ConfigType * Mcu_pConfigPtr.2_7;
  116. const struct Mcu_ClockConfigType[1] * _8;
  117. long unsigned int _9;
  118. unsigned char _10;
  119. const struct Mcu_ConfigType * Mcu_pConfigPtr.3_11;
  120. long unsigned int _12;
  121. const struct Mcu_ConfigType * Mcu_pConfigPtr.4_13;
  122. const struct Mcu_HwIPsConfigType * _14;
  123. <bb 2> :
  124. Mcu_pConfigPtr = &Mcu_PreCompileConfig;
  125. u32NoConfigs_21 = 0;
  126. goto <bb 4>; [INV]
  127. <bb 3> :
  128. Mcu_pConfigPtr.0_1 = Mcu_pConfigPtr;
  129. _2 = Mcu_pConfigPtr.0_1->Mcu_apModeConfig;
  130. _3 = *_2[u32NoConfigs_15].Power_Ip_ModeConfigId;
  131. _4 = (unsigned char) u32NoConfigs_15;
  132. Mcu_au8ModeConfigIds[_3] = _4;
  133. u32NoConfigs_27 = u32NoConfigs_15 + 1;
  134. <bb 4> :
  135. # u32NoConfigs_15 = PHI <u32NoConfigs_21(2), u32NoConfigs_27(3)>
  136. Mcu_pConfigPtr.1_5 = Mcu_pConfigPtr;
  137. _6 = Mcu_pConfigPtr.1_5->Mcu_NoModeConfigs;
  138. if (u32NoConfigs_15 < _6)
  139. goto <bb 3>; [INV]
  140. else
  141. goto <bb 5>; [INV]
  142. <bb 5> :
  143. u32NoConfigs_22 = 0;
  144. goto <bb 7>; [INV]
  145. <bb 6> :
  146. Mcu_pConfigPtr.2_7 = Mcu_pConfigPtr;
  147. _8 = Mcu_pConfigPtr.2_7->Mcu_apClockConfig;
  148. _9 = *_8[u32NoConfigs_16].ClkConfigId;
  149. _10 = (unsigned char) u32NoConfigs_16;
  150. Mcu_au8ClockConfigIds[_9] = _10;
  151. u32NoConfigs_25 = u32NoConfigs_16 + 1;
  152. <bb 7> :
  153. # u32NoConfigs_16 = PHI <u32NoConfigs_22(5), u32NoConfigs_25(6)>
  154. Mcu_pConfigPtr.3_11 = Mcu_pConfigPtr;
  155. _12 = Mcu_pConfigPtr.3_11->Mcu_NoClkConfigs;
  156. if (u32NoConfigs_16 < _12)
  157. goto <bb 6>; [INV]
  158. else
  159. goto <bb 8>; [INV]
  160. <bb 8> :
  161. Mcu_pConfigPtr.4_13 = Mcu_pConfigPtr;
  162. _14 = Mcu_pConfigPtr.4_13->Mcu_pHwIPsConfig;
  163. Mcu_Ipw_Init (_14);
  164. return;
  165. }