<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21047">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tdef: Introduce OSMO_TDEF_US unit<br><br>Some applications may need submillisecond timers, such as those<br>interacting with modbus serial lines (RS-485, RTU), which require<br>timers of values around 1.5 char-time (T1.5), where a data char is<br>composed of 11 bits sent on the line: 1 start bit, 8 data bits,<br>1 stop bit, and and parity bit (or 2nd stop bits if no parity).<br><br>For instance, for a baudrate of 9600:<br>1.5 * 11 / 9600 = 1.718 ms = 1718 us<br><br>So having a granularity of MS is not enough here.<br><br>Change-Id: I71848d7c1ee0649929ce07680ee7320bb2a42f0e<br>---<br>M include/osmocom/core/tdef.h<br>M src/tdef.c<br>M tests/tdef/tdef_test.c<br>M tests/tdef/tdef_test.ok<br>4 files changed, 49 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/47/21047/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21047">change 21047</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/21047"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I71848d7c1ee0649929ce07680ee7320bb2a42f0e </div>
<div style="display:none"> Gerrit-Change-Number: 21047 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>