mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
81 lines
1.6 KiB
Plaintext
81 lines
1.6 KiB
Plaintext
NVIC_SetPriority (uint8 IRQn, uint8 priority)
|
|
{
|
|
long unsigned int _1;
|
|
long unsigned int _2;
|
|
long unsigned int _3;
|
|
unsigned char _4;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG shift => 4
|
|
# DEBUG BEGIN_STMT
|
|
_1 = (long unsigned int) priority_5(D);
|
|
_2 = _1 << 4;
|
|
_3 = (long unsigned int) IRQn_6(D);
|
|
_4 = (unsigned char) _2;
|
|
MEM[(struct S32_NVIC_Type *)3758153728B].IP[_3] ={v} _4;
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
NVIC_DisableIRQ (uint8 IRQn)
|
|
{
|
|
long unsigned int _1;
|
|
unsigned char _2;
|
|
unsigned char _3;
|
|
long unsigned int _4;
|
|
long unsigned int _5;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
_2 = IRQn_6(D) & 31;
|
|
_1 = (long unsigned int) _2;
|
|
_3 = IRQn_6(D) >> 5;
|
|
_4 = (long unsigned int) _3;
|
|
_5 = 1 << _1;
|
|
MEM[(struct S32_NVIC_Type *)3758153728B].ICER[_4] ={v} _5;
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
NVIC_EnableIRQ (uint8 IRQn)
|
|
{
|
|
long unsigned int _1;
|
|
unsigned char _2;
|
|
unsigned char _3;
|
|
long unsigned int _4;
|
|
long unsigned int _5;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
_2 = IRQn_6(D) & 31;
|
|
_1 = (long unsigned int) _2;
|
|
_3 = IRQn_6(D) >> 5;
|
|
_4 = (long unsigned int) _3;
|
|
_5 = 1 << _1;
|
|
MEM[(struct S32_NVIC_Type *)3758153728B].ISER[_4] ={v} _5;
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
NVIC_SetPriorityGrouping (uint32 PriorityGroup)
|
|
{
|
|
long unsigned int _1;
|
|
long unsigned int _2;
|
|
long unsigned int _3;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 ={v} MEM[(struct S32_SCB_Type *)3758153728B].AIRCR;
|
|
_2 = _1 & 4294965503;
|
|
_3 = _2 | PriorityGroup_5(D);
|
|
MEM[(struct S32_SCB_Type *)3758153728B].AIRCR ={v} _3;
|
|
return;
|
|
|
|
}
|
|
|
|
|