omit unused code.

This commit is contained in:
Gatsby Van
2023-12-21 14:47:36 +08:00
parent 9e798cb8b0
commit 97b46fb0e8
+6 -8
View File
@@ -39,10 +39,6 @@
#include "networking/phy_layer/phy_layer.h"
#include "networking/link_layer/link_layer.h"
/* D0-D7 D16-D31 was save and restored (standalone asm_vectors.S:83) */
#define save_extra_fpu_context() __asm("VPUSH {d7-d15}")
#define restore_extra_fpu_context() __asm("VPOP {d7-d15}")
/************************** Function Prototypes ******************************/
int32_t SetupInterruptSystem(struct irq_ctrl_desc* descPtr);
void Phy_IntrHandler(void *context);
@@ -53,18 +49,22 @@ struct callback_desc phy_callback_desc = {
.callback = Phy_IntrHandler,
.ctx = NULL
};
struct callback_desc sysbus_rx_callback_desc = {
.callback = Systembus_RxIntrHandler,
.ctx = NULL
};
struct callback_desc sysbus_tx_callback_desc = {
.callback = Systembus_RxIntrHandler,
.ctx = NULL
};
struct callback_desc scutm_callback_desc = {
.callback = ScuTimer_IntrHandler,
.ctx = NULL
};
static PHY_CONFIG phyConfig = {
.devId = 0,
.baseAddr = PHY_BASEADDR,
@@ -215,8 +215,6 @@ int32_t SetupInterruptSystem(struct irq_ctrl_desc* descPtr) {
return SUCCESS;
} // SetupInterruptSystem
/****************************************************************************/
/**
* This function is a interrupt service routine for IRQ_F2P[1:1], IRQ_F2P[1:1]
@@ -472,9 +470,9 @@ int Hardware_Init(void) {
XGpioPs_Config *ConfigPtr;
ConfigPtr = XGpioPs_LookupConfig(AD9361_GPIO_DEVICE_ID);
Status = XGpioPs_CfgInitialize(&Gpio, ConfigPtr, ConfigPtr->BaseAddr);
if (Status != XST_SUCCESS)
if (Status != SUCCESS)
{
return XST_FAILURE;
return FAILURE;
}
/**********************************************************/