Good afternoon everyone, im trying to use some GPIO as outputs and inputs but im recieving a PARAM_ERROR when i suscribe them.
This is the code, but i dont know what im doing wrong. Im using a Q2867Hclassic whith the R74 Firmware.
I really need some help here, thanks a lot.
adl_ioDefs_t IODet1 = ( ADL_IO_GPIO | 20 ) | ADL_IO_DIR_IN | ADL_IO_LEV_HIGH ; //I need GPIO 20
adl_ioDefs_t IODet2 = ( ADL_IO_GPIO | 7 ) | ADL_IO_DIR_IN | ADL_IO_LEV_HIGH ;//I need GPIO 7
adl_ioDefs_t Simsel = ( ADL_IO_GPIO | 32 ) | ADL_IO_DIR_OUT | ADL_IO_LEV_HIGH ;//I need GPIO 32
adl_ioDefs_t Simpres =( ADL_IO_GPIO | 18 ) | ADL_IO_DIR_IN | ADL_IO_LEV_HIGH ;//I need GPIO 18
adl_ioDefs_t Out18V = ( ADL_IO_GPIO | 4 ) | ADL_IO_DIR_OUT | ADL_IO_LEV_HIGH ;//I need GPIO 4
........
IODet1Handle=adl_ioSubscribe(1,&IODet1,0,0,0);
.......