changeset 74:03793f41f9bc

uartfax.c: support RI output on GTM900
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 24 Oct 2020 09:12:01 +0000
parents aee006f1d275
children 8697f358f505
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	Sat Oct 24 08:33:50 2020 +0000
+++ b/src/cs/drivers/drv_app/uart/uartfax.c	Sat Oct 24 09:12:01 2020 +0000
@@ -4891,6 +4891,21 @@
 
 #endif	/* Tango modem */
 
+#ifdef CONFIG_TARGET_GTM900
+
+    if (mask & (1 << RI)) {
+
+        if (state & (1 << RI)) {
+            /* Turn on RI */
+            AI_ResetBit(0);
+        } else {
+            /* Turn off RI */
+            AI_SetBit(0);
+        }
+    }
+
+#endif	/* GTM900 modem */
+
     if ((mask & (1 << X)) &&
         (uart->flow_control_mode != fc_none)) {