|
|
ISR declaration. More...
Defines | |
#define | DECLARE_ISR |
Declaration of user ISR. |
ISR declaration.
This file (isr_howto.h) is only for documentation. Do not include it into source code.
The DioneOS uses its own method for user ISR declaration. Like in general case, user needs to write his ISR function, that should be defined like regular C function, e.g.
void user_uart_a0( void ) { //..user ISR code }
In order to connect user ISR to interrupt vector use custom declaration DECLARE_ISR that should be added in assembler file system/app_specific/src/isr_declarations.asm
#define DECLARE_ISR |
Declaration of user ISR.
This is assembler macro that is required to connect user ISR to interrupt vector.
[in] | vector_name | interrupt vector name |
[in] | user_isr_fn | name of the user ISR function |
[in] | early_prolog | macro name that encapsulates code inserted at very beginning in system ISR. This is useful when you need to signal on DEBUG_PORT pin interrupt moment. When this feature is not required use EMPTY_PREPROLOG_ISR as this parameter. |
DECLARE_ISR vector_name, user_isr_fn, early_prolog