Using same GPIO_PINs as input and output while the port is configured as "OUTPUT PP" AN4666
I'm trying to do something similar to what have been covered by the application note AN4666 "Parallel synchronous transmission using GPIO and DMA" but now I'm testing without DMA functionality. Right now, I can write/send data to GPIO port using:
GPIOC->ODR = DataBuf[i];But when I need to read data back, can I use the following:
ReadBuf[i] = GPIOC->IDR;without any modification to the GPIO Port configurations, or I need to re-configure the post as "INPUT" before I can read data? If port is configured as "OUTPUT OD", can I read the GPIO as stated earlier?