Advertisement
xdxdxd123

Untitled

Jun 17th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Find out the NVIC functions for the following operation
  2.  
  3. Resets the whole system including peripherals.
  4.  
  5. Sets the priority grouping.
  6.  
  7. Returns the value of the current priority grouping.
  8.  
  9. Enables the interrupt IRQn.
  10.  
  11. Disables the interrupt IRQn.
  12.  
  13. Sets the priority for the interrupt IRQn.
  14.  
  15. Returns the priority for the specified interrupt.
  16.  
  17. Sets the interrupt IRQn pending.
  18.  
  19. Returns the pending status of the interrupt IRQn.
  20.  
  21. Clears the pending status of the interrupt IRQn, if it is not already running or active.
  22.  
  23. Returns the active status for the interrupt IRQn.
  24.  
  25.  
  26. Anonymous answered this Was this answer helpful?
  27. 0
  28. 0
  29. 142 answers
  30. Answer:
  31.  
  32. Resets the whole system including peripherals=void NVIC_systemReset(void)
  33.  
  34. ->Enable the interrupt IRQn=void NVIC_EnableIRQ(IRQ_Type IRQn)
  35.  
  36. ->Disables the interrupt IRQn=void NVIC_DisableIRQ(IRQn_Type IRQn)
  37.  
  38. ->sets the priority for the interrupt IRQn=void NVIC_SetPriority(IRQn_Type IRQn,int32_t priority)
  39.  
  40. ->Return the priority for the specified interrupt=unit32_t NVIC_GetPriority(IRQn_Type IRQn)
  41.  
  42. ->Sets the interrupt IRQN pending=void NVIC_SetsPendingIRQ(IRQn_Type IRQn)
  43.  
  44. ->Return the pending status of the interrupt IRQn=IRQn_Type NVIC_GetPendingIRQ(IRQn_Type IRQn)
  45.  
  46. ->Clear th pending status of the interrupt IRQn,if it is not already running or active=void NVIC_ClearPendingIRQ(IRQn_Type IRQn)
  47.  
  48. Comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement