Nested Vector Interrupt Controller (NVIC) support.
NVIC register map type.
Public Members
- __io uint32 ISER[8]
Interrupt Set Enable Registers.
- uint32 RESERVED0[24]
Reserved.
- __io uint32 ICER[8]
Interrupt Clear Enable Registers.
- uint32 RSERVED1[24]
Reserved.
- __io uint32 ISPR[8]
Interrupt Set Pending Registers.
- uint32 RESERVED2[24]
Reserved.
- __io uint32 ICPR[8]
Interrupt Clear Pending Registers.
- uint32 RESERVED3[24]
Reserved.
- __io uint32 IABR[8]
Interrupt Active bit Registers.
- uint32 RESERVED4[56]
Reserved.
- __io uint8 IP[240]
Interrupt Priority Registers.
- uint32 RESERVED5[644]
Reserved.
- __io uint32 STIR
Software Trigger Interrupt Registers.
Interrupt vector table interrupt numbers.
Each positive-valued enumerator is the position of the corresponding interrupt in the vector table. Negative-valued enumerators correspond to interrupts controlled by the system handler block.
See: | scb.h |
---|
Values:
Non-maskable interrupt.
Hard fault (all class of fault)
Memory management.
Bus fault: prefetch fault, memory access fault.
Usage fault: Undefined instruction or illegal state.
System service call via SWI insruction.
Debug monitor.
Pendable request for system service.
System tick timer.
Window watchdog interrupt.
PVD through EXTI line detection.
Tamper.
Real-time clock.
Flash.
Reset and clock control.
EXTI line 0.
EXTI line 1.
EXTI line 2.
EXTI line 3.
EXTI line 4.
DMA1 channel 1.
DMA1 channel 2.
DMA1 channel 3.
DMA1 channel 4.
DMA1 channel 5.
DMA1 channel 6.
DMA1 channel 7.
ADC1 and ADC2.
USB high priority or CAN TX.
USB low priority or CAN RX0.
CAN RX1.
CAN SCE.
EXTI line [9:5].
Timer 1 break.
Timer 1 update.
Timer 1 trigger and commutation.
Timer 1 capture/compare.
Timer 2.
Timer 3.
Timer 4.
I2C1 event.
I2C1 error.
I2C2 event.
I2C2 error.
SPI1.
SPI2.
USART1.
USART2.
USART3.
EXTI line [15:10].
RTC alarm through EXTI line.
USB wakeup from suspend through EXTI line.
Timer 8 break.
Timer 8 update.
Timer 8 trigger and commutation.
Timer 8 capture/compare.
ADC3.
FSMC.
SDIO.
Timer 5.
SPI3.
UART4.
UART5.
Timer 6.
Timer 7.
DMA2 channel 1.
DMA2 channel 2.
DMA2 channel 3.
DMA2 channels 4 and 5.
Initialize the NVIC.
Parameters: |
|
---|
Reset the vector table address.
Nested interrupt controller routines.
Set interrupt priority for an interrupt line
Note: The STM32 only implements 4 bits of priority, ignoring the lower 4 bits. This means there are only 16 levels of priority. Bits[3:0] read as zero and ignore writes.
Parameters: |
|
---|
Enables interrupts and configurable fault handlers (clear PRIMASK).
Disable interrupts and configurable fault handlers (set PRIMASK).
Enable interrupt irq_num.
Parameters: |
|
---|
Disable interrupt irq_num.
Parameters: |
|
---|
Quickly disable all interrupts.
Calling this function is significantly faster than calling nvic_irq_disable() in a loop.
NVIC register map base pointer.
None at this time.