MATLAB XPC TARGET 4 - DEVICE DRIVERS Betriebsanweisung Seite 55

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 111
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 110 111

Kommentare zu diesen Handbüchern

Keine Kommentare