changeset 694:005151e56328

Tango modem RI output implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 20 Oct 2020 00:58:52 +0000
parents c6deddb5e91d
children 530f71d65c20
files src/cs/drivers/drv_app/uart/uartfax.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/uart/uartfax.c	Fri Oct 16 05:05:01 2020 +0000
+++ b/src/cs/drivers/drv_app/uart/uartfax.c	Tue Oct 20 00:58:52 2020 +0000
@@ -4875,6 +4875,21 @@
     }
 
 #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)) {