Hi,
I want to use GPIO2 as an input, but it doesn't work. I defined it as output, it worked ok and also GPIO1 as input works as well.
My configuration:
#define BIT_0 1
#define BIT_1 2
GPIO_Config(GPIO1_DIR_INPUT | GPIO2_DIR_INPUT,
GPIO1_PUSH_PULL | GPIO2_PUSH_PULL);
and I use GET_GPIO2(); to get the GPIO2 status.
Could you please tell what is the problem?
Thanks
Hassn