<div dir="ltr"><div><div><div>It worked for me. Can you specify that? The overflow check would have to be implemented by an upper layer, right?<br></div>I can adapt my former patch using the tick solution to do the multiplication first if this is better.<br><br></div>Kind Regards <br></div>Robin<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Apr 2021 at 20:25, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 21/04/2021 19:30, Sebastian Huber wrote:<br>
<br>
> On 21/04/2021 11:00, Robin Müller wrote:<br>
><br>
>> Okay, good to know. Do you think it's okay if my simpler <br>
>> implementation is used completely?<br>
>> Another option would be to use the simple function for the oscillator <br>
>> init functions (sth like a private HAL_GetTick_OscInit function).<br>
>> But maybe you have a better idea.<br>
> If the ticks base solution works it is all right. The HAL_GetTick() - <br>
> HAL_GetTick() (e.g. tick 0xffffabcd - tick 0x123) should return a <br>
> correct interval during a tick overflow. <br>
It should be 0x123 - 0xffffabcd.<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
</blockquote></div>