MATLAB XPC TARGET 4 - DEVICE DRIVERS Guida Utente Pagina 55

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 111
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 54
Adding Interrupt Support
Adding Interrupt Support
In this section...
“Introduction” on page 5-7
“Guidelines for Creating Interrupt Functions” on page 5-9
“Filling in the Drive r board Structure” on page 5-10
Introduction
To add interrupt handling for a custom driver, you must create
A des criptor file to connect a board type to the functions needed to start,
handle, and stop interrupts
A C file to implement these functions
Include the following functions. See “Hook Function Prototypes
Alphabetical List” on page 5-1 5 for the prototyp e details.
Functio
n
Descrip
tion
PreHook
Runs just before either a function-call subsystem
or entire model is called. Program this function to
acknowledge the interrupt and cause the board to
stop issuing the interrupt signal.
PostHook
Runs after return from function call on interrupt,
and before model execution. It is typically not used.
5-7
Vedere la pagina 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 110 111

Commenti su questo manuale

Nessun commento