comparison target-utils/simagent/timeout.h @ 772:2e16284d5029

simagent/timeout.h: empirical calibration done
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Mar 2021 20:55:36 +0000
parents
children
comparison
equal deleted inserted replaced
771:9c1d580b50fb 772:2e16284d5029
1 /*
2 * This header file defines the loop-count timeout value that should
3 * be passed to the rx_sim_byte() function. By the spec we have to wait
4 * 9600 etu's; at 3.25 MHz SIM clock and the default slow mode (no speed
5 * enhancement) this 9600 etu number translates to about 1.10 s.
6 *
7 * The constant defined here has been calibrated empirically; the measured
8 * timeout is about 1.38 s, giving us reasonable safety margin.
9 */
10
11 #define SIM_WAIT_TIMEOUT 6000000