Altera_vic_driver.enable_preemption – Altera Embedded Peripherals IP User Manual

Page 286

Advertising
background image

VIC BSP Settings

The VIC driver scripts provide settings to the BSP. The number and naming of these settings depends on

your hardware system's configuration, specifically, the number of optional shadow register sets in the

Nios II processor, the number of VIC controllers in the system, and the number of interrupt ports each

VIC has.
Certain settings apply to all VIC instances in the system, while others apply to a specific VIC instance.

Settings that apply to each interrupt port apply only to the specified interrupt port number on that VIC

instance.
The remainder of this section lists details and descriptions of each VIC BSP setting.

altera_vic_driver.enable_preemption

Identifier: ALTERA_VIC_DRIVER_ISR_PREEMPTION_ENABLED
Type:

BooleanDefineOnly

Default

value:

1 when all components connected to the VICs support

preemption. 0 when any of the connected components don’t

support preemption.

Destina‐

tion file:

system.h

Descrip‐

tion:

Enables global interrupt preemption (nesting). When enabled

(set to 1), the macro

ALTERA_VIC_DRIVER_ISR_PREEMPTION_

ENABLED

is defined in

system.h

.

Two types of ISR preemption are available. This setting must be

enabled along with other settings to enable specific types of

preemption.
All preemption settings are dependant on whether the device

drivers in your BSP support interrupt preemption. For more

information about preemption, refer to the Exception Handling

chapter of the Nios II Software Developer’s Handbook.

Occurs:

Once per VIC

altera_vic_driver.enable_preemption_into_new_register_set

Identifier: ALTERA_VIC_DRIVER_PREEMPTION_INTO_NEW_

REGISTER_SET_ENABLED

Type:

BooleanDefineOnly

Default

value:

0

Destina‐

tion file:

system.h

UG-01085

2014.24.07

altera_vic_driver.enable_preemption

28-17

Vectored Interrupt Controller Core

Altera Corporation

Send Feedback

Advertising