[PATCH] Updated tick implementation for HAL_GetTick

Robin Müller robin.mueller.m at gmail.com
Wed Apr 21 09:00:04 UTC 2021


Okay, good to know. Do you think it's okay if my simpler implementation is
used completely?
Another option would be to use the simple function for the oscillator init
functions (sth like a private HAL_GetTick_OscInit function).
But maybe you have a better idea.

Kind Regards
Robin


On Tue, 20 Apr 2021 at 19:48, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 20/04/2021 19:45, Robin Müller wrote:
>
> > Hmm, do you have an idea how to fix this cleanly? Was this the reason
> > the implementation returned 0?
> Yes.
> > This was not an issue with the other implementation:
> >
> > (rtems_clock_get_ticks_since_boot() * 1000) /
> > rtems_clock_get_ticks_per_second();
>
> This function is much simpler. It just reads a global variable. During
> startup the time is frozen.
>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210421/c53931e0/attachment.html>


More information about the devel mailing list