changeset 683:81394dcdf4d3

uartfax.c: OM-style wakeup interrupt implemented for Tango
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 26 Jun 2020 03:06:16 +0000
parents 17b7b92e7dba
children 269554439ace
files src/cs/drivers/drv_app/uart/uartfax.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/uart/uartfax.c	Fri Jun 26 02:53:02 2020 +0000
+++ b/src/cs/drivers/drv_app/uart/uartfax.c	Fri Jun 26 03:06:16 2020 +0000
@@ -2600,6 +2600,9 @@
             uart->tx_stopped_by_driver = 0;
             #ifdef CONFIG_TARGET_GTAMODEM
                 AI_ResetBit(1);
+            #elif defined(CONFIG_TANGO_MODEM)
+                if (AI_Tango_pinmux[0] == 0x82)
+                    AI_ResetBit(1);
             #endif
 
 #if ((CHIPSET != 5) && (CHIPSET != 6))
@@ -4381,6 +4384,9 @@
 	#ifdef CONFIG_TARGET_GTAMODEM
 	    if (uart->tx_stopped_by_driver)
 		AI_SetBit(1);
+	#elif defined(CONFIG_TANGO_MODEM)
+	    if (AI_Tango_pinmux[0] == 0x82 && uart->tx_stopped_by_driver)
+		AI_SetBit(1);
 	#endif
 
         /*