This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS: PIN_init and PIN_open

Other Parts Discussed in Thread: CC2640

Tool/software: TI-RTOS

hi:

recently,i use the PIN_init  and PIN_open to configurate io pin.But,there is a problem.firstly,i use PIN_init  to init io pin in the beginning of  main.c. And i use the PIN_open to open io pin in my task.So,this is

right ???  above using , the power is more than only using PIN_open to configurate the one io pin??? what i can do .

  • Hi,

    I need more information to help you with this issue. First, which version of TI-RTOS or SDK are you using? Which device are you working with? Have you modified the BoardGpioInitTable content in your Board.c file? If so, can you share the new definition? Which IO pin are you attempting to configure? Can you share the Pin_Config table you are using to configure the pin?

    Alan
  • Version of TI-RTOS is tirtos-simplelink2_13_00_06.the device is cc2640. I dont change the BoardGpioInitTable content .i add a new BoardGpioInitTable named NewBoardGpioInitTable.All io pins of the NewBoardGpioInitTable is used the PIN_PULLDOWN to decrease the power. That is right ? lately,ill configurate the nessesary io pin with PIN_open in my task .But i cant use PIN_close to decrease the power.the power is 3-4ma. i try to configurate the input or output io pin. The result is same . how can i use the PIN_init and PIN_open ??? And i try to not configurate the io pin in NewBoardGpioInitTable.Ex:the io pin 5. lately using the PIN_open and PIN_close to open and close the io 5 pin,the power is normal.
  • PIN_close() will put the pin back into the configuration specified in the in the BoardGpioInitTable. If the pin does not appear in that table, PIN_close() will leave the pin configured as specified in the PIN_open() call.

    You should either add the pin to BoardGpioInitTable or manually change the pin configuration prior to calling PIN_close().

    Alan

  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.