![]() |
Altera HWLIB
16.0
The Altera HW Manager API Reference Manual
|
This group of APIs configures the compile time options for the Interrupt API or provides information about the Interrupt API. It allows the interrupt API to be integrated with operating systems which already provides interrupt support.
Macros | |
#define | ALT_INT_PROVISION_VECTOR_SUPPORT (1) |
#define | ALT_INT_PROVISION_STACK_SUPPORT (1) |
#define | ALT_INT_PROVISION_STACK_SIZE (4096) |
#define | ALT_INT_PROVISION_INT_COUNT (256) |
#define | ALT_INT_PROVISION_CPU_COUNT (1) |
#define ALT_INT_PROVISION_VECTOR_SUPPORT (1) |
This preprocessor definition determines if the Mentor toolchain's interrupt vector table symbol should be used. If a vector table is already provided somewhere else, it is not necessary to have multiple vector tables.
To use another interrupt vector, define ALT_INT_PROVISION_CPU_COUNT=(0) in the Makefile. To connect to the interrupt handling system, configure the ARM IRQ interrupt to call alt_int_handler_irq() in the custom solution. In this case, compiler support for interrupt handler entry and exit sequences will not be added.
#define ALT_INT_PROVISION_STACK_SUPPORT (1) |
This preprocessor definition determines if the stack space for interrupts should be configured by the Interrupt API. If that space is already configured somewhere else, it is not necessary to provide another stack space.
If the interrupt stack is already configured, define ALT_INT_PROVISION_STACK_SUPPORT=(0) in the Makefile.
#define ALT_INT_PROVISION_STACK_SIZE (4096) |
This preprocessor definition determines the size of the interrupt stack if interrupt stack provisioning is requested. The same stack size will be provisioned for each CPU if multiple CPUs are provisioned. While the default should provide more than adequate space for most use cases, if interrupt servicing routines are complicated or uses a lot of stack, the stack provisioned can be adjusted to be larger. The stack size can also be adjust smaller to reduce the memory used. Stack sizes should be a multiple of 32.
To specify another interrupt stack size, ALT_INT_PROVISION_STACK_SIZE should be defined to a multiple of 32 in the Makefile.
#define ALT_INT_PROVISION_INT_COUNT (256) |
This preprocessor definition determines the total number of interrupts that the Interrupt API should support. The default value is corresponds to the number of interrupts defined in the hardware. Valid values are multiples of 16.
This preprocessor definition should not be redefined in the Makefile.
#define ALT_INT_PROVISION_CPU_COUNT (1) |
This preprocessor definition determines the total number of CPUs that the Interrupt API should support. For the SoC FPGA, the definition should be limited to values of 1 or 2 as it is a dual CPU ARM core. Provisioning more CPUs than is used trivially impact performance but may impact the amount of memory used more.
To control the number of CPUs to provision for, define ALT_INT_PROVISION_CPU_COUNT in the Makefile.