nvic.c.017i.build_ssa_passes 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. NVIC_SetPriority (uint8 IRQn, uint8 priority)
  2. {
  3. uint8 shift;
  4. <bb 2> :
  5. # DEBUG BEGIN_STMT
  6. shift = 4;
  7. # DEBUG BEGIN_STMT
  8. _1 = (long unsigned int) priority;
  9. _2 = (int) shift;
  10. _3 = _1 << _2;
  11. _4 = 3758153984B;
  12. _5 = (long unsigned int) IRQn;
  13. _6 = (unsigned char) _3;
  14. _4->IP[_5] = _6;
  15. return;
  16. }
  17. NVIC_DisableIRQ (uint8 IRQn)
  18. {
  19. <bb 2> :
  20. # DEBUG BEGIN_STMT
  21. _1 = (long unsigned int) IRQn;
  22. _2 = _1 & 31;
  23. _3 = 3758153984B;
  24. _4 = IRQn >> 5;
  25. _5 = (long unsigned int) _4;
  26. _6 = 1 << _2;
  27. _3->ICER[_5] = _6;
  28. return;
  29. }
  30. NVIC_EnableIRQ (uint8 IRQn)
  31. {
  32. <bb 2> :
  33. # DEBUG BEGIN_STMT
  34. _1 = (long unsigned int) IRQn;
  35. _2 = _1 & 31;
  36. _3 = 3758153984B;
  37. _4 = IRQn >> 5;
  38. _5 = (long unsigned int) _4;
  39. _6 = 1 << _2;
  40. _3->ISER[_5] = _6;
  41. return;
  42. }
  43. NVIC_SetPriorityGrouping (uint32 PriorityGroup)
  44. {
  45. <bb 2> :
  46. # DEBUG BEGIN_STMT
  47. _1 = 3758153728B;
  48. _2 = _1->AIRCR;
  49. _3 = _2 & 4294965503;
  50. _4 = 3758153728B;
  51. _5 = PriorityGroup | _3;
  52. _4->AIRCR = _5;
  53. return;
  54. }