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

Discussion

Consider the following statements about drivers.

1. The driver should hide the register layout   2. A callback may run in interrupt context   3. A driver called from two tasks needs no protection

  • A.1 and 3 only are correct
  • B.1 and 2 only are correct
  • C.1, 2 and 3 are all correct statements about drivers
  • D.2 and 3 only are correct

Answer: B

Correct answer: 1 and 2 only are correct

Statements 1 and 2 are correct: hiding the register layout is the driver’s purpose, and a callback registered with a driver may well be invoked from its interrupt handler. Statement 3 is the assumption that produces intermittent faults - shared state reached from two tasks needs protection whether or not the fault has yet appeared.

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

Post your comment

Please log in or register to post a comment.