User`s guide

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