Download Salvo User Manual
Transcript
User-Defined Services OSDisableIntsHook(), OSEnableIntsHook(): Interruptcontrol Hooks Type: Declaration: Called from: Contained in: Function void OSDisableIntsHook( void ) void OSEnableIntsHook( void ) OSDi() and OSEi() salvo.h if left undefined, otherwise in user source code. Enabled by: Affected by: Description: Parameters: Returns: Stack Usage: Notes OSENABLE_INTERRUPT_HOOKS – User-defined. – – Dependent on user definition. You may find it useful or necessary to perform certain operations coincident with Salvo's disabling and (re-)enabling of interrupts during critical sections of code. If these functions are enabled via OSENABLE_INTERRUPT_HOOKS, OSDisableIntsHook() is called immediately after disabling interrupts, and OSEnableIntsHook() is called immediately before (re-)enabling interrupts. Therefore each function is called with interrupts disabled. By default, these functions are undefined. In the example below, two separate counters, diCounter and eiCounter, are used to count the number of times that Salvo disables and (re-)enables interrupts, respectively. See Also 390 OSDi(), OSEi() Chapter 7 • Reference Salvo User Manual
Related documents
Salvo User Manual
Salvo User Manual
Release Notes
Downloading - Pumpkin, Inc.
RM-MSCX86 Salvo Compiler Reference Manual
Application Note
RM-MCC18 Salvo Compiler Reference Manual
GSG-STELLARIS- KRVMDK-ARM Building a Salvo
AVR-GCC - Pumpkin, Inc.
RM-PICC Salvo Compiler Reference Manual – HI
RM-HTARCLITE Salvo Compiler Reference Manual
AN-4 Building a Salvo Application with HI-TECH