nvic.c.017i.build_ssa_passes 902 B

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