Hi PetrS,
Thanks for your answer.
I tried to do as you suggested but I got an error in the if condition:
<<request for member 'GPDI' in something not a structure or union>>
how to solve the problem?
Here is the corresponding part of my code. The erector signals at the level of the condition in the if
if(SIUL2.GPDI[3].R)
{
PINS_DRV_WritePin(PTA, 10, 1);
}
else
{
PINS_DRV_WritePin(PTA, 10, 0);
}
PS: I have activated PORT PA3 in SIUL2 as an input already. it corresponds to GPIO 3