/* Set Interrupt Priority Different from CMSIS implementation, this code supports only external (device specific) interrupt.  */
void NVIC_SetPriority(rt_int32_t irqno, rt_uint32_t priority)
/* Set Interrupt Priority Different from CMSIS implementation, this code supports only external (device specific) interrupt.  */
void NVIC_SetPriority(rt_int32_t irqno, rt_uint32_t priority)
{
    rt_uint32_t shift, ipr;
    shift = (irqno % 4) * 8;
    ipr = NVIC_IPR(irqno);
    ipr &= ~(0xffUL << shift);
    ipr |= (priority & 0xff) << shift;
    NVIC_IPR(irqno) = ipr;
}