xilpm example: Remove GicEnableInterrupt()
The function is just a trivial wrapper => inline. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
This commit is contained in:
parent
fcd1ad8d4e
commit
92747ad56a
2 changed files with 1 additions and 11 deletions
|
@ -39,14 +39,6 @@
|
|||
|
||||
XScuGic GicInst;
|
||||
|
||||
/**
|
||||
* GicEnableInterrupt() - Enable interrupt in gic
|
||||
*/
|
||||
void GicEnableInterrupt(uint32_t IntId)
|
||||
{
|
||||
XScuGic_Enable(&GicInst, IntId);
|
||||
}
|
||||
|
||||
/**
|
||||
* GicInit() - Initialize gic
|
||||
*
|
||||
|
@ -99,7 +91,7 @@ int32_t GicSetupInterruptSystem(uint32_t IntId,
|
|||
if(XST_SUCCESS != Status)
|
||||
return Status;
|
||||
|
||||
GicEnableInterrupt(IntId);
|
||||
XScuGic_Enable(&GicInst, IntId);
|
||||
|
||||
Xil_ExceptionEnable();
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@
|
|||
|
||||
extern XScuGic GicInst;
|
||||
|
||||
void GicEnableInterrupt(uint32_t IntId);
|
||||
|
||||
int32_t GicSetupInterruptSystem(uint32_t IntId,
|
||||
void *PeriphInstPtr, Xil_ExceptionHandler Handler);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue