nvic.c.082i.materialize-all-clones 1.5 KB

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