hi,
I have three pin set up as input (with resistance of pull up)…
with this function I succeed to understand which pin changed value?
void App_Gpio_Event_Handler ( s32 GpioHandle, adl_ioEvent_e Event, u32 Size, void * Param ){
u32 My_Loop;
s32 ReadValue_IN;
s32 ReadValue_OUT;
TRACE (( 1, "EVENT" ));
// Check event
switch ( Event ){
case ADL_IO_EVENT_INPUT_CHANGED :
TRACE (( 1, "GPIO %d new value: %d",( Param ) & ADL_IO_NUM_MSK ,( Param ) & ADL_IO_LEV_MSK ) && ADL_IO_LEV_HIGH ));
break;
}
}
The answer of the TRACE:
GPIO 1 new value: 1
Thanks