arch/arm/nrf5x/include/nrf52840.h
/** \brief  Set Interrupt Priority

    The function sets the priority of an interrupt.

    \note The priority cannot be set for every core interrupt.

    \param [in]      IRQn  Interrupt number.
    \param [in]  priority  Priority to set.
 */
\brief  Set Interrupt Priority
The function sets the priority of an interrupt.

\note The priority cannot be set for every core interrupt.

\param [in]      IRQn  Interrupt number.
\param [in]  priority  Priority to set.
\ brief Set Interrupt Priority The function sets the priority of an interrupt . \ note The priority cannot be set for every core interrupt . \ param [ in ] IRQn Interrupt number . \ param [ in ] priority Priority to set .
static inline void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
{
  if((int32_t)IRQn < 0) {
    SCB->SHP[(((uint32_t)(int32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8 - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  }
  else {
    NVIC->IP[((uint32_t)(int32_t)IRQn)]               = (uint8_t)((priority << (8 - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  }
}
static inline void NVIC_SetPriority ( IRQn_Type IRQn , uint32_t priority ) { if ( ( int32_t ) IRQn < 0 ) { SCB -> SHP [ ( ( ( uint32_t ) ( int32_t ) IRQn ) & 0xFUL ) - 4UL ] = ( uint8_t ) ( ( priority << ( 8 - __NVIC_PRIO_BITS ) ) & ( uint32_t ) 0xFFUL ) ; } else { NVIC -> IP [ ( ( uint32_t ) ( int32_t ) IRQn ) ] = ( uint8_t ) ( ( priority << ( 8 - __NVIC_PRIO_BITS ) ) & ( uint32_t ) 0xFFUL ) ; } }
\brief  Set Interrupt Priority
The function sets the priority of an interrupt.
\ brief Set Interrupt Priority The function sets the priority of an interrupt .