Back Ground:
You recommend that unused IF can be used as GPIO function.
[Sierra Answer]
If just one GPIO is missing, how about using the previous recommendation to control UART2 RTS/CTS pins just like what we suggest in the forum for UART1?
i.e.
using linux generic API ioctl() to control UART2_CTS which is stated as output pin in PTS.
using AT command “AT!entercnd=“A710”;!BSGPIO?14” to read the UART2_RTS status which is stated as input pin in PTS.
We try to control as GPIO function in UART2 IF, but we don’t know the way how to set AT command/legato command to operate it.
Question:
Could you tell me AT command and legato command how to set, in order to control as GPIO function in UART2 IF?
First, according to the following SFDC, UART2 can be used as GPIO function if the customer did not use UART2 IF.
And you recommend to operate AT command or ioctl() to fulfill it.
UART2_RTS:
(1) AT!ENTERCND=“A710”
(2) using AT command “AT!entercnd=“A710”;!BSGPIO?14” to read the UART2_RTS status which is stated as input pin in PTS.
UART2_CTS:
Please see the example here which is using UART1:
You just need to change the opened port to /dev/ttyHS1 for UART2 in Component.cdef and UART_Test1.c line 240. ( of course you need to change UART2 to data mode by AT!MAPUART=17,2)