chore: fix compile errors, simplified code.

This commit is contained in:
Gatsby Van
2024-12-24 15:12:51 +08:00
parent 3470b6f6dc
commit 250190baef
9 changed files with 53 additions and 143 deletions
+1 -9
View File
@@ -37,6 +37,7 @@
/***************************** Include Files ********************************/
#include "headless.h"
#include "delay.h"
/************************** Constant Definitions *****************************/
@@ -46,9 +47,6 @@
/************************** Variable Definitions *****************************/
// XGpio GpioFreqCtrl;
// XGpio GpioGainCtrl;
// XGpio GpioAttnCtrl;
XScuGic Intc;
/************************** Function Prototypes ******************************/
@@ -284,12 +282,6 @@ int HW_adiCfgProfileInit(void)
return ADIERR_FAILED;
}
if (!&mykDevice)
{
HW_PRINT("Cannot find ad9371 configuration profile with name 'mykDevice'!");
return ADIERR_FAILED;
}
ad9528Init->spiSettings->chipSelectIndex = AD9528_CS;
mykDevice.spiSettings->chipSelectIndex = AD9371_CS;