Hi.
I can't get phhalPcr_GetGpioStatus from HAL API to work since it gives an hard fault at each call.
I'm calling it as in the following snippet to know the status of GPIO4:
(...)
phhalPcr_GetGpioStatus_t status;
phhalPcr_GetGpioStatus(4, &status);
(...)
Anyone there has ever used phhalPcr_GetGpioStatus?
Best regards,
Peppe
Hello,
You may refer to the following code shown in the document. In the document, the GPIOs' values are read, but the initialization example might help you: Copying NDEF text messages from one Tag to another
Hope this helps.
BR,
Ivan.
Hello Ivan, thank you for your prompt reply.
I'm referring to issues about phhalPcr_GetGpioStatus, not about phhalPcr_GetGpioVal: the latter works as expected, the former gives an instant hard fault.
Best regards,
P.