IRQn (CMSIS)
The CMSIS enum that numbers every interrupt on a Cortex-M — using negative values for the core's own exceptions.
Every vendor's CMSIS device header defines an enum IRQn_Type with one name per interrupt source: USART1_IRQn, TIM2_IRQn and so on. Peripheral interrupts start at 0. The core's system exceptions get negative numbers: NonMaskableInt_IRQn is −14, HardFault_IRQn −13, PendSV_IRQn −2 and SysTick_IRQn −1. Add 16 and you have the exception number, which is the slot in the vector table.
The split is pragmatic rather than pretty. NVIC_EnableIRQ() only accepts non-negative values, because system exceptions don't live in the NVIC at all. NVIC_SetPriority(), on the other hand, spots a negative value and quietly writes to the SCB's priority registers instead. Two numbering schemes for the same thing, and which one applies depends on whether you ask the datasheet, the debugger or the header.