Other Parts Discussed in Thread: AM2434, , SYSCONFIG
Hi,
I am new to the AM2434 and trying to get a GPIO read demo running on my LP-AM243 -
Demo Attempt:
//Using J4.10 - GPIO1_2 (BP.31) //Pin Def uint32_t gpioBaseAddr = (uint32_t) AddrTranslateP_getLocalAddr(CSL_GPIO1_BASE); uint32_t pinNum = 2; //Setup GPIO_setDirMode(gpioBaseAddr, pinNum, GPIO_DIRECTION_INPUT); //Read uint32_t val = GPIO_pinRead(gpioBaseAddr, pinNum);
This is not working, I always get '0' for val when I apply 0V or 3.3V.
How do I get the GPIO Read routine to work?