Build a new " Hello world " project based on zed_hw_platform and type main as following:
u8 Bank,PinNumber,Pin=50;
XGpioPs Gpio;
XGpioPs_Config *ConfigPtr;
ConfigPtr = XGpioPs_LookupConfig(0);
XGpioPs_CfgInitialize(&Gpio, ConfigPtr, ConfigPtr->BaseAddr);
u32 data=XGpioPs_IntrGetStatusPin(&Gpio,Pin);
Debug the SIMPLE application . Toggle a breakpoint at XGpioPs_IntrGetStatusPin and step into it . Step over the sentence: XGpioPs_GetBankPin(Pin, &Bank, &PinNumber);
A bug occurs . We see the Bank is 0 at the Variables view. But
the Bank should be 1 obviously.
i do not konwn where is wrong, the XGpioPs_GetBankPin seems right but ... hlep me.