STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
representing the generation of the register offset and the index for the irq priority register

Macros

#define BIT_SHIFT(irq)
 
#define IP_IDX(irq)
 

Detailed Description

Macro Definition Documentation

◆ BIT_SHIFT

#define BIT_SHIFT ( irq)
Value:
( ( ( ( (uint32)( irq ) ) ) & 0x03UL ) * 8UL )
unsigned int uint32
Definition Platform_Types.h:98

Calculate the bit shift for IRQ priority

◆ IP_IDX

#define IP_IDX ( irq)
Value:
( ( ( (uint32)( irq ) ) >> 2UL ) )

Calculate the index for IRQ priority register