STM32G0 MCAL
0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Macros
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 )
uint32
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
Generated by
1.13.0