Tool/software: TI-RTOS
Hello community,
I am trying to write a small program with TI-RTOS to manipulate external LEDs and external BUTTONs and my question is how can i configure the pins of these external LEDs and Buttons because i think that configuring pins of external LEDs and Buttons and binary Signals is not the the same as configuration mentionned in the examples of TI where there is internal buttons and internal buttons .
in my MSP_EXP430F5529LP.c File i did the following configuration but i'm not sure if i'm right :
GPIO_PinConfig gpioPinConfigs[] = { GPIOMSP430_P6_4 | GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING, /* ----- > this INPUT pin is attached to an external Button and i'm i'm gonna use interruption for it */ GPIOMSP430_P2_4 | GPIO_CFG_OUT_STD | GPIO_CFG_OUT_STR_HIGH | GPIO_CFG_OUT_LOW, /* -----> this OUTPUT pin is attached to an external LED which its value will be "1" or "0" */ GPIOMSP430_P5_4| GPIO_CFG_IN_PU | GPIO_CFG_IN_INT_RISING, /* ------> this INPUT pin is attached to an external signal, the value of this signal might be "1" or "0" */ };
thank you in advance