Power_Ip_CortexM4.c.078i.free-fnsummary2 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Power_Ip_CM4_DisableDeepSleep ()
  2. {
  3. uint32 tempValue;
  4. struct Power_Ip_CM4_Type * pCM4.8_1;
  5. struct Power_Ip_CM4_Type * pCM4.9_2;
  6. <bb 2> :
  7. tempValue_3 = 0;
  8. pCM4.8_1 = pCM4;
  9. tempValue_5 ={v} pCM4.8_1->SCR;
  10. tempValue_6 = tempValue_5 & 4294967291;
  11. pCM4.9_2 = pCM4;
  12. pCM4.9_2->SCR ={v} tempValue_6;
  13. return;
  14. }
  15. Power_Ip_CM4_EnableDeepSleep ()
  16. {
  17. uint32 tempValue;
  18. struct Power_Ip_CM4_Type * pCM4.6_1;
  19. struct Power_Ip_CM4_Type * pCM4.7_2;
  20. <bb 2> :
  21. tempValue_3 = 0;
  22. pCM4.6_1 = pCM4;
  23. tempValue_5 ={v} pCM4.6_1->SCR;
  24. tempValue_6 = tempValue_5 | 4;
  25. pCM4.7_2 = pCM4;
  26. pCM4.7_2->SCR ={v} tempValue_6;
  27. return;
  28. }
  29. Power_Ip_CM4_EnableSleepOnExit ()
  30. {
  31. uint32 tempValue;
  32. struct Power_Ip_CM4_Type * pCM4.4_1;
  33. struct Power_Ip_CM4_Type * pCM4.5_2;
  34. <bb 2> :
  35. tempValue_3 = 0;
  36. pCM4.4_1 = pCM4;
  37. tempValue_5 ={v} pCM4.4_1->SCR;
  38. tempValue_6 = tempValue_5 | 2;
  39. pCM4.5_2 = pCM4;
  40. pCM4.5_2->SCR ={v} tempValue_6;
  41. return;
  42. }
  43. Power_Ip_CM4_DisableSleepOnExit ()
  44. {
  45. uint32 tempValue;
  46. struct Power_Ip_CM4_Type * pCM4.2_1;
  47. struct Power_Ip_CM4_Type * pCM4.3_2;
  48. <bb 2> :
  49. tempValue_3 = 0;
  50. pCM4.2_1 = pCM4;
  51. tempValue_5 ={v} pCM4.2_1->SCR;
  52. tempValue_6 = tempValue_5 & 4294967293;
  53. pCM4.3_2 = pCM4;
  54. pCM4.3_2->SCR ={v} tempValue_6;
  55. return;
  56. }
  57. Power_Ip_CM4_SystemReset ()
  58. {
  59. uint32 u32TmpValue;
  60. struct Power_Ip_CM4_Type * pCM4.0_1;
  61. long unsigned int _2;
  62. struct Power_Ip_CM4_Type * pCM4.1_3;
  63. <bb 2> :
  64. pCM4.0_1 = pCM4;
  65. _2 ={v} pCM4.0_1->AIRCR;
  66. u32TmpValue_5 = _2 & 1792;
  67. u32TmpValue_6 = u32TmpValue_5 | 4;
  68. u32TmpValue_7 = u32TmpValue_6 | 100270080;
  69. __asm__ __volatile__(" dsb");
  70. pCM4.1_3 = pCM4;
  71. pCM4.1_3->AIRCR ={v} u32TmpValue_7;
  72. __asm__ __volatile__(" dsb");
  73. return;
  74. }