nvic.c.022i.opt_local_passes 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. NVIC_SetPriority (uint8 IRQn, uint8 priority)
  2. {
  3. uint8 shift;
  4. long unsigned int _1;
  5. int _2;
  6. long unsigned int _3;
  7. struct S32_NVIC_Type * _4;
  8. long unsigned int _5;
  9. unsigned char _6;
  10. <bb 2> :
  11. # DEBUG BEGIN_STMT
  12. shift_7 = 4;
  13. # DEBUG shift => shift_7
  14. # DEBUG BEGIN_STMT
  15. _1 = (long unsigned int) priority_8(D);
  16. _2 = (int) shift_7;
  17. _3 = _1 << _2;
  18. _4 = 3758153984B;
  19. _5 = (long unsigned int) IRQn_9(D);
  20. _6 = (unsigned char) _3;
  21. _4->IP[_5] ={v} _6;
  22. return;
  23. }
  24. NVIC_DisableIRQ (uint8 IRQn)
  25. {
  26. long unsigned int _1;
  27. long unsigned int _2;
  28. struct S32_NVIC_Type * _3;
  29. unsigned char _4;
  30. long unsigned int _5;
  31. long unsigned int _6;
  32. <bb 2> :
  33. # DEBUG BEGIN_STMT
  34. _1 = (long unsigned int) IRQn_7(D);
  35. _2 = _1 & 31;
  36. _3 = 3758153984B;
  37. _4 = IRQn_7(D) >> 5;
  38. _5 = (long unsigned int) _4;
  39. _6 = 1 << _2;
  40. _3->ICER[_5] ={v} _6;
  41. return;
  42. }
  43. NVIC_EnableIRQ (uint8 IRQn)
  44. {
  45. long unsigned int _1;
  46. long unsigned int _2;
  47. struct S32_NVIC_Type * _3;
  48. unsigned char _4;
  49. long unsigned int _5;
  50. long unsigned int _6;
  51. <bb 2> :
  52. # DEBUG BEGIN_STMT
  53. _1 = (long unsigned int) IRQn_7(D);
  54. _2 = _1 & 31;
  55. _3 = 3758153984B;
  56. _4 = IRQn_7(D) >> 5;
  57. _5 = (long unsigned int) _4;
  58. _6 = 1 << _2;
  59. _3->ISER[_5] ={v} _6;
  60. return;
  61. }
  62. NVIC_SetPriorityGrouping (uint32 PriorityGroup)
  63. {
  64. struct S32_SCB_Type * _1;
  65. long unsigned int _2;
  66. long unsigned int _3;
  67. struct S32_SCB_Type * _4;
  68. long unsigned int _5;
  69. <bb 2> :
  70. # DEBUG BEGIN_STMT
  71. _1 = 3758153728B;
  72. _2 ={v} _1->AIRCR;
  73. _3 = _2 & 4294965503;
  74. _4 = 3758153728B;
  75. _5 = PriorityGroup_7(D) | _3;
  76. _4->AIRCR ={v} _5;
  77. return;
  78. }