Time conversion functions in OSAL Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
User avatar
Posts: 10
Joined: Mon Jan 13, 2020 10:55 pm
Has thanked: 3 times
Been thanked: 2 times

Time conversion functions in OSAL  Topic is solved

Postby stertingen » Wed Apr 22, 2020 3:31 pm

Currently, using OSAL I'm able to convert (Milli-,Micro-)Seconds into system ticks but not vice versa.

It would be nice to get the current time in milliseconds without doing the conversion by hand or depending on the OS's time conversion.

My use case is a ROSSerial client driver for ChibiOS HAL using nothing but the HAL. (https://github.com/ros-drivers/rosserial/pull/493)

Posts: 21
Joined: Sat Apr 15, 2017 11:49 pm
Has thanked: 7 times
Been thanked: 4 times

Re: Time conversion functions in OSAL

Postby rreignier » Thu Apr 23, 2020 8:47 am

I agree with you.

When I did my rosserial_chibios I used the version found in lwip_binding but it is not very handy. Nice macros like in RT would be nice.

User avatar
Site Admin
Posts: 12964
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times

Re: Time conversion functions in OSAL

Postby Giovanni » Wed Apr 29, 2020 8:53 am


Added to trunk code.


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 4 guests