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 #227, Use OSAL time conversion/access methods #231

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Jan 4, 2021

Describe the contribution

Instead of accessing OS_time_t member 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 #227

Testing performed
Build and run tests, sanity check CFE

Expected behavior changes
None

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

Additional context
Also adjusts the conversion factors within in CFE_PSP_GetTime() to get a more precise result on VxWorks. Linux/RTEMS are just pass-thru to OSAL anyway.

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 Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 4, 2021
@astrogeco astrogeco added CCB-20210106 dependency and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jan 6, 2021
@astrogeco
Copy link
Contributor

CCB 2021-01-06 APPROVED

Needs nasa/osal#723

@astrogeco astrogeco changed the base branch from main to integration-candidate January 13, 2021 03:44
@astrogeco astrogeco merged commit b3dcd45 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-227-use-ostime-conversions branch March 16, 2021 19:20
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 PSP to use OS time conversion/access methods
2 participants