Skip to content

Commit

Permalink
common-io: Refactoring and updates to RTC test cases and top-level he…
Browse files Browse the repository at this point in the history
…ader file (aws#1977)

* Updated iot_rtc.h documentation to cover expected return value based on how the test was setup. Refactored tests to use TEST_PROTECT sections, init all values of the date/time struct and not having 'eternal block' on semaphores

* Changed default seconds value from 0 to 10 to better fit the AFQP_IotRtcSetAlarmInvalid test-case as it needs to setup alarm ni the past.

Co-authored-by: Max Wennerfeldt <[email protected]>
  • Loading branch information
osloapps-max and Max Wennerfeldt authored May 19, 2020
1 parent c430fdb commit a34c8f2
Show file tree
Hide file tree
Showing 2 changed files with 415 additions and 428 deletions.
1 change: 1 addition & 0 deletions libraries/abstractions/common_io/include/iot_rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ void iot_rtc_set_callback( IotRtcHandle_t const pxRtcHandle,
* - xRequest is invalid
* - pvBuffer == NULL (excluding eCancelRtcAlarm, eCancelRtcWakeup)
* - if date/time is set in the past for eSetRtcAlarm
* - IOT_RTC_SET_FAILED if date/time is invalid for eSetRtcAlarm.
* - IOT_RTC_NOT_STARTED on error
* - IOT_RTC_FUNCTION_NOT_SUPPORTED if feature not supported
* - Only valid for eCancelRtcAlarm, eCancelRtcWakeup
Expand Down
Loading

0 comments on commit a34c8f2

Please sign in to comment.