diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-11-04 20:00:38 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-11-11 20:08:26 +0000 |
commit | 1b75e4bbd1780a1fbd949fe679cb908820188d3d (patch) | |
tree | 1d5644fa7ab67a6552205c27a3cd213b8ddfe25a /git-version-gen | |
parent | a4939dc8461c0a2d8e67aa3bb95bfb73ad9225b7 (diff) |
tdef: Introduce OSMO_TDEF_US unit
Some applications may need submillisecond timers, such as those
interacting with modbus serial lines (RS-485, RTU), which require
timers of values around 1.5 char-time (T1.5), where a data char is
composed of 11 bits sent on the line: 1 start bit, 8 data bits,
1 stop bit, and and parity bit (or 2nd stop bits if no parity).
For instance, for a baudrate of 9600:
1.5 * 11 / 9600 = 1.718 ms = 1718 us
So having a granularity of MS is not enough here.
Change-Id: I71848d7c1ee0649929ce07680ee7320bb2a42f0e
Diffstat (limited to 'git-version-gen')
0 files changed, 0 insertions, 0 deletions