# HG changeset patch # User Mychaela Falconia # Date 1615665187 0 # Node ID 8a94593fb7ef58794e58c199ee62b22e245d8599 # Parent 8196bba46318e0ff1f7c031d42c8daf4ed911e78 simagent: Tx delays reduced in spenh mode diff -r 8196bba46318 -r 8a94593fb7ef target-utils/simagent/tx.c --- a/target-utils/simagent/tx.c Sat Mar 13 19:47:06 2021 +0000 +++ b/target-utils/simagent/tx.c Sat Mar 13 19:53:07 2021 +0000 @@ -11,11 +11,15 @@ u8 *bytes; unsigned count; { - unsigned n, timeout; + unsigned n, timeout, delay; + if (conf1_reg & SIM_CONF1_ETU) + delay = 6000; + else + delay = 30000; SIMREGS.conf1 = conf1_reg |= SIM_CONF1_TXRX; if (count == 1) - wait_ARM_cycles(30000); + wait_ARM_cycles(delay); (void) SIMREGS.it; for (n = 0; ; ) { SIMREGS.dtx = bytes[n++]; @@ -23,7 +27,7 @@ SIMREGS.conf1 = conf1_reg &= ~SIM_CONF1_TXRX; return(0); } - wait_ARM_cycles(30000); + wait_ARM_cycles(delay); for (timeout = 12000; timeout; timeout--) if (SIMREGS.it & SIM_IT_ITTX) break;