Machine-translated by Google. Questions are authored in English.
Top

Discussion

An interrupt service routine written in C should

  • A.do the minimum and signal a task for the rest
  • B.be declared static so no other file can call it
  • C.return a status value the kernel can examine
  • D.take its parameters from the peripheral registers

Answer: A

Keeping it short protects the latency of everything else, and the deferred work belongs in a task where the priority scheme can order it. A handler takes no parameters and returns nothing, being called by the hardware rather than by any code.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.