MATLAB XPC TARGET 4 - DEVICE DRIVERS Guide de l'utilisateur Page 55

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 111
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 110 111

Commentaires sur ces manuels

Pas de commentaire