Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1051, use OSAL time conversion/access methods #1058

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Jan 4, 2021

Describe the contribution

Instead of accessing OS_time_t values directly, use the OSAL-provided conversion and access methods. This provides
independence/abstraction from the specific `OS_time_t definition and allows OSAL to transition to a 64 bit value.

Fixes #1051

Testing performed
Build and run unit tests, sanity check CFE

Expected behavior changes
None (but see notes)

System(s) tested on
Ubuntu 20.04 (native)
RTEMS 4.11 + pc686 (qemu)

Additional context
By using the OSAL implementation of subsecond/microsecond conversion, this will correct some minor inaccuracies in the CFE TIME conversions that were never noticed before.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Instead of accessing OS_time_t values directly, use the
OSAL-provided conversion and access methods.  This provides
independence/abstraction from the specific OS_time_t
definition and allows OSAL to transition to a 64 bit value.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 4, 2021
@astrogeco astrogeco added CCB-20210106 dependency and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 6, 2021
@astrogeco
Copy link
Contributor

CCB 2021-01-06 APPROVED

  • Fixes broken Micro2SubSec and SubSec2Micro functions that were returning innacurate values
  • Removes the need for some test cases because OSAL now performs those

Needs nasa/osal#723

@astrogeco astrogeco changed the base branch from main to integration-candidate January 13, 2021 02:47
@astrogeco astrogeco merged commit 49da2bd into nasa:integration-candidate Jan 13, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 13, 2021
@jphickey jphickey deleted the fix-1051-use-ostime-conversions branch February 1, 2021 19:46
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CFE to use OS time conversion/access methods
3 participants