# HG changeset patch # User Mychaela Falconia # Date 1615582536 0 # Node ID 2e16284d50291cd5d01379689e7fadce5411b202 # Parent 9c1d580b50fb61a95f06e77ef000b0042fe03b15 simagent/timeout.h: empirical calibration done diff -r 9c1d580b50fb -r 2e16284d5029 target-utils/simagent/timeout.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/simagent/timeout.h Fri Mar 12 20:55:36 2021 +0000 @@ -0,0 +1,11 @@ +/* + * This header file defines the loop-count timeout value that should + * be passed to the rx_sim_byte() function. By the spec we have to wait + * 9600 etu's; at 3.25 MHz SIM clock and the default slow mode (no speed + * enhancement) this 9600 etu number translates to about 1.10 s. + * + * The constant defined here has been calibrated empirically; the measured + * timeout is about 1.38 s, giving us reasonable safety margin. + */ + +#define SIM_WAIT_TIMEOUT 6000000