changeset 209:d0547d47260a

uartfax.c: sync with Magnetite (Tango RI output)
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Oct 2020 01:58:41 +0000
parents 68184e15d92c
children b81101e50fc6
files src/cs/drivers/drv_app/uart/uartfax.c
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/uart/uartfax.c	Fri Oct 16 05:20:43 2020 +0000
+++ b/src/cs/drivers/drv_app/uart/uartfax.c	Tue Oct 20 01:58:41 2020 +0000
@@ -4875,7 +4875,22 @@
     }
 
 #endif /* BOARD 8 or 9 or 40 or 41 or CHIPSET 12 */
-        
+
+#ifdef CONFIG_TANGO_MODEM
+
+    if (mask & (1 << RI) && AI_Tango_pinmux[0] == 0x83) {
+
+        if (state & (1 << RI)) {
+            /* Turn on RI */
+            AI_ResetBit(1);
+        } else {
+            /* Turn off RI */
+            AI_SetBit(1);
+        }
+    }
+
+#endif	/* Tango modem */
+
     if ((mask & (1 << X)) &&
         (uart->flow_control_mode != fc_none)) {