Part Number: MSP432E401Y
Tool/software: TI-RTOS
Hello,
I am using Toggle switches on IO's in my applications and i have two doubts:
1. When i am using GPIOMSP432E4_PE0 & GPIOMSP432E4_PE1 in combined, the code seems to be hanging somewhere.
However if i use each IO's individually, my code working properly.
I am connecting these i/o's to the push buttons on launchpad.
and in the msp432e401y.c & msp432e401y.h files i have initialised in sequence as mentioned in the header file.
What might be the problem here?
2. If i use a two pole toggle switch,with three terminals, one end terminal is connected to PE0, other end to the PE1 and centre terminal to the GND. So automatically one terminal will be connected to the ground initially.
so here i would like to send command on uart as per the switch position. I have written the code similar to the gpiointerrupt.c.
I have configured io pins as
GPIO_setConfig(Board_GPIO_1, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);
GPIO_setConfig(Board_GPIO_2, GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RAISING);
In call back functions i have used one flag, based on that flag i am sending command on uart.
It is also not working?.
Since either of the pin is grounded in hardware as per the switch position, what must be the ideal configurations for the IO pins for writing an interrupt basedprogram.
Thank you
Regards
Kalyan.

