Cortex_M.NVIC

Entities

Simple Types

Constants

Subprograms

Description

the Nested Vectored Interrupt Controller

Clear_Pending

procedure Clear_Pending (IRQn : Interrupt_ID)
Parameters
IRQn

Disable_Interrupt

procedure Disable_Interrupt (IRQn : Interrupt_ID)
Parameters
IRQn

Enable_Interrupt

procedure Enable_Interrupt (IRQn : Interrupt_ID)
Parameters
IRQn

Enabled

function Enabled (IRQn : Interrupt_ID) return Boolean
Parameters
IRQn
Return Value

Interrupt_ID

type Interrupt_ID is new Natural range 0 .. 31;

Interrupt_Priority

type Interrupt_Priority is new UInt8 range 0 .. (2**NVIC_PRIO_BITS - 1);

NVIC_PRIO_BITS

NVIC_PRIO_BITS : constant := 2;

All Cortex M0 parts have 2 bit priority mask

Pending

function Pending (IRQn : Interrupt_ID) return Boolean
Parameters
IRQn
Return Value

Set_Pending

procedure Set_Pending (IRQn : Interrupt_ID)
Parameters
IRQn

Set_Priority

procedure Set_Priority
  (IRQn     : Interrupt_ID;
   Priority : Interrupt_Priority)
Parameters
IRQn
Priority