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 #104, Remove OS_Tick2Micros and internalize OS_Milli2Ticks #603

Merged

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Sep 22, 2020

Describe the contribution
Fix #104

  • Removed OS_Tick2Micros implementation, tests, stubs, references
  • Moved prototype from API to internal for OS_Milli2Ticks
  • Updated OS_Milli2Ticks to return status
  • Added check for rollover in OS_Milli2Ticks
  • OS_Milli2Ticks now sets and limits ticks as int
  • Updated all internal use of OS_Milli2Ticks to check for error
    and returns immediately on error (won't wait maximum amount)
  • Coverage tests updated to check for new error cases
  • OS_Milli2Ticks stub updated (default implementation)

Testing performed
Built and ran unit tests, all pass, coverage maintained (although not 100 due to previous lapses, see #602)

Expected behavior changes
API's no longer exposed... no known uses identified so shouldn't be an impact

System(s) tested on

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: bundle main + this commit

Additional context
None.

Third party code
None.

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

- Removed OS_Tick2Micros implementation, tests, stubs, references
- Moved prototype from API to internal for OS_Milli2Ticks
- Updated OS_Milli2Ticks to return status
- Added check for rollover in OS_Milli2Ticks
- OS_Milli2Ticks now sets and limits ticks as int
- Updated all internal use of OS_Milli2Ticks to check for error
  and returns immediately on error (won't wait maximum amount)
- Coverage tests updated to check for new error cases
- OS_Milli2Ticks stub updated (default implementation)
@skliper skliper added CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) enhancement labels Sep 22, 2020
@skliper skliper added this to the 6.0.0 milestone Sep 22, 2020
@astrogeco
Copy link
Contributor

CCB 2020-09-23 APPROVED

@yammajamma yammajamma added CCB-20200923 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Sep 23, 2020
@yammajamma yammajamma changed the base branch from main to integration-candidate September 24, 2020 12:27
@yammajamma yammajamma merged commit 5380f0b into nasa:integration-candidate Sep 24, 2020
@skliper skliper deleted the fix104-deprecate-tick-apis branch February 1, 2021 21:36
jphickey added a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Add a va_list to capture the full set of variable arguments
on all CFE_EVS event calls.

Also add va_list for CFE_ES_WriteToSyslog
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
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.

vxworks osapi.c OS_Milli2Ticks() problems
3 participants