Tool/software: Code Composer Studio
Hello, I have started to go through the 1-Day Workshop for the C2000. <http://processors.wiki.ti.com/index.php/C2000_One-Day_Workshop>
In the Lab1_cpu01 project, in the c code, there are these initialization lines for the LED:
GpioCtrlRegs.GPADIR.bit.GPIO31 = 1;
GPIO_SetupPinOptions(34, GPIO_OUTPUT, GPIO_PUSHPULL);
The GPIO_SetupPinOptions takes a parameter "pin" and it is set by the line above to 34. What is the relation of the number 34 to GPIO31? I cannot see where these two are related. If I want to change the GPIO, what does the "pin" argument get set to?
Thank you,
David