Skip to content

DO-NOT-MERGE: Test feature-watchdog branch after rebase #10657

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

Closed

Conversation

fkjagodzinski
Copy link
Member

Description

This PR contains all changes from feature-watchdog branch rebased to current master (c4cc9c4). We need to run CI checks, to make sure nothing has been broken during the rebase.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@0xc0170 @jamesbeyond

Release Notes

Steven Cartmell and others added 30 commits May 24, 2019 11:20
HAL watchdog functionality will be implemented as two separate APIs. The reset
reason API allows a user to detect the last system reset reason to identify if
a Watchdog was triggered. The Watchdog API allows configuring and updating
Watchdog timers on all boards. This commit defines the headers.
- Add preprocessor guard to watchdog api that errors if the reset reason api is not also implemented
- Add RESET_REASON and WATCHDOG to K64F targets.json
- Add watchdog reference implementation
- Fix typo in module comment
- Redefine the default system behaviour in sleep mode
- Guard K64F enableWait flag
- Remove bit shifts from reset reason enum
- Change API to match C++ API throughout drivers
- Amend HAL API documentation to be more specific
WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized.
Limit MAX_TIMEOUT_MS to UINT32_MAX.
Improve MAX_TIMEOUT_MS handling.
Fix hal_watchdog_get_platform_features() returning
.max_timeout = 0xfffffff8 instead of 0xffffffff.
Fix WATCHDOG_STATUS_INVALID_ARGUMENT for timeout values from 1 ms to
407 ms (fix inability to set prescaler bits to zero).
Fix timeout <-> IWDG registers conversions.
Fix read & write access to IWDG_PR and IWDG_RLR registers.
Fix LSI RC frequency setting.
Limit MAX_TIMEOUT_MS to UINT32_MAX.
Added a missing wait for the WCT window end. Without it, consecutive
init() or stop() calls were ignored.
Relax time measurement margins for UBLOX_EVK_ODIN_W2.
@ciarmcom ciarmcom requested review from MarceloSalazar, Ronny-Liu and a team May 24, 2019 13:01
@ciarmcom
Copy link
Member

@fkjagodzinski, thank you for your changes.
@maclobdell @Ronny-Liu @MarceloSalazar @jamesbeyond @0xc0170 @ARMmbed/mbed-os-core @ARMmbed/mbed-os-hal @ARMmbed/mbed-os-maintainers @ARMmbed/mbed-os-test please review.

@0xc0170
Copy link
Contributor

0xc0170 commented May 28, 2019

Ci started

@mbed-ci
Copy link

mbed-ci commented May 28, 2019

Test run: FAILED

Summary: 3 of 7 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM
  • jenkins-ci/mbed-os-ci_build-IAR

@fkjagodzinski
Copy link
Member Author

I removed the RESET_REASON from MCU_NRF52840 -- this will fix build failures for both MTB_LAIRD_BL654 and NRF52840_DK.

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

CI restarted

@mbed-ci
Copy link

mbed-ci commented May 31, 2019

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARM

@0xc0170
Copy link
Contributor

0xc0170 commented May 31, 2019

CI restarted

@mbed-ci
Copy link

mbed-ci commented May 31, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 3
Build artifacts

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

@fkjagodzinski Ready for update? Let me know

@fkjagodzinski
Copy link
Member Author

@fkjagodzinski Ready for update? Let me know

Yep, this rebased feature-watchdog branch is ready.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 3, 2019

Rebased now, closing

@0xc0170 0xc0170 closed this Jun 3, 2019
@fkjagodzinski fkjagodzinski deleted the rebase-feature-watchdog branch June 3, 2019 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants