Hi,
I want to turn on GPIO18 GPIO19 GPIO20 GPIO21.
can I use this commands ?
gpioSetOutput(18);gpioSetOutput(19);gpioSetOutput(20);gpioSetOutput(21);
Should I write any other commands ?
Thanks,
Ivgeni.
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.
Hi,
I want to turn on GPIO18 GPIO19 GPIO20 GPIO21.
can I use this commands ?
gpioSetOutput(18);gpioSetOutput(19);gpioSetOutput(20);gpioSetOutput(21);
Should I write any other commands ?
Thanks,
Ivgeni.
Hi IVgeni,
gpioSetOutput function sets the specified GPIO's pin state to 1.
You will find a file evmc665x_gpio.c, there you will find the functions definitions.
Path: \ti\pdk_C6657_1_1_2_6\packages\ti\platform\evmc6657l\platform_lib\src
Thanks,
GPIO 19,20,21,22 are configured as usart , timer pins.
How do I configure them as GPIO (like GPIO 1-15 ) ?
Thanks,
Ivgeni.
Hi Ivgeni,
If you want to test this GPIO 19,20,21,22 pins in EVM6657 board means you need to configure these pins as GPIO.
Thanks,
You will find a file evmc665x_gpio.c, there you will find the functions definitions.
Path: \ti\pdk_C6657_1_1_2_6\packages\ti\platform\evmc6657l\platform_lib\src
Thanks,
The functions in evmc665x_gpio.c are implemented for GPIO pins 0-15.
for example :
Where are the functions for GPIO pins 16-31 ?
Thanks,
Ivgeni.
GPIO user guide needs to be updated for BINTEN register that bit 0 is for Bank 0 (GPIO pins 15:0) and bit 1 is for Bank 1 (GPIO pins 31-16).
So you need to set bit 1 to 1 in BINTEN to enable the GPIO pins 31-16.
GPIO_BITEN = 0x2 ;
Thanks,