Commit Graph

25558 Commits (eda75fd02a27d0d26bbed4953abb19ed778a5a8c)

Author SHA1 Message Date
Steve Cartmell 5b0259dbd1 fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag 2019-07-11 11:55:11 +01:00
Steve Cartmell da7bf6e8e7 fix(hal-watchdog): Add 'RESET_REASON' flags to supported devices 2019-07-11 11:55:11 +01:00
Steve Cartmell dcf11f01f0 fix(hal-watchdog): Remove 'RESET_REASON' flags from unsupported devices 2019-07-11 11:55:10 +01:00
Steve Cartmell b8f0815959 fix: Remove excess comma from device_has key in targets.json 2019-07-11 11:55:10 +01:00
Amanda Butler c04ba485fc Edit ResetReason_tests.h
Make minor grammar edits.
2019-07-11 11:55:10 +01:00
Ganesh Ramachandran 83f16190b5 Added reset_reason feature for TMPM3HQ 2019-07-11 11:55:10 +01:00
Filip Jagodzinski 2e1b524917 Tests: Watchdog: Update the reset-to-sync delay
Change the config parameter used as a delay before sending the sync
packet after the device reset in watchdog and reset_reason tests. Use
'forced_reset_timeout' instead of 'program_cycle_s'.
2019-07-11 11:55:10 +01:00
Filip Jagodzinski e4217cb5e8 Tests: Watchdog: Fix config access in the host script
Move the calls to get_config_item() to the setup() method. The config is
not available in the initializer yet.
2019-07-11 11:55:10 +01:00
Donatien Garnier ec010fc5e6 Fix more astyle failures 2019-07-11 11:55:10 +01:00
Donatien Garnier fd7e46b799 Apply new astyle config style 2019-07-11 11:55:09 +01:00
Donatien Garnier 7c05a83afa Update license headers 2019-07-11 11:55:09 +01:00
Steve Cartmell e2538d931d fix(hal-watchdog): Add feature guards to K64F watchdog implementation 2019-07-11 11:55:09 +01:00
Steve Cartmell 4f2acf5f03 test(api-watchdog): Fix errors in compiling watchdog greentea tests
The latest rebase of the watchdog feature branch introduced errors in compiling
watchdog tests due to missing headers.

- Watchdog HAL API test
  Include missing header files to main.cpp (mbed_wait_api.h, stdlib.h).

- Watchdog HAL API timing test
  Include missing header files to main.cpp (us_ticker_api.h).

- Watchdog Driver API test
  Include missing header files to main.cpp (mbed_wait_api.h, stdlib.h).
  Inject mbed namespace into main.cpp to fix Watchdog name resolution.
2019-07-11 11:55:09 +01:00
Ganesh Ramachandran a2db1f1989 Added reset_reason feature for TMPM3H6 & TMPM4G9 2019-07-11 11:55:09 +01:00
Ganesh Ramachandran 22de156802 Added reset_reason feature for TMPM066 & TMPM46B 2019-07-11 11:55:08 +01:00
ccli8 87ca77bbfc Fix NUMAKER_PFM_NANO130 cannot pass mbed_hal/watchdog_reset test
On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is much
less accurate than other targets. Enlarge delta define to pass this test.
2019-07-11 11:55:08 +01:00
ccli8 90c75f5d01 Enlarge wait time for flushing serial buffer in Greentea test code
Original wait time is not enough for UART to flush out before deepsleep/reset on some targets.
2019-07-11 11:55:08 +01:00
ccli8 68aa1b22c3 [Nuvoton] Support watchdog timer 2019-07-11 11:55:08 +01:00
ccli8 5cf581cc9b [Nuvoton] Support reset reason 2019-07-11 11:55:07 +01:00
ccli8 73b12e5e70 [NUC472] Fix WDT driver in BSP 2019-07-11 11:55:07 +01:00
Qinghao Shi f3927862a5 fix bugs introduced on rebase 2019-07-11 11:55:07 +01:00
jeromecoutant db89bdf890 STM32 WATCHDOG : increase timeout value 2019-07-11 11:55:07 +01:00
jeromecoutant 43fa151efd STM32 WATCHDOG : use ST HAL in order to make code commun for all STM32 2019-07-11 11:55:07 +01:00
jeromecoutant 3a958c7f86 STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version 2019-07-11 11:55:07 +01:00
jeromecoutant 32a314d465 STM32 WATCHDOG : compilation issue with typed define 2019-07-11 11:55:07 +01:00
jeromecoutant 0071502e0b STM32 Watchdog : move API file to STM family level 2019-07-11 11:55:07 +01:00
Lukas Mandak d39d4b092d NCS36510: Added watchdog implementation. 2019-07-11 11:55:06 +01:00
Steven Cooreman a3927ad624 Add implementation of reset reason on Silicon Labs parts 2019-07-11 11:55:06 +01:00
Steven Cooreman b82d9397a4 Add support for watchdog on Silicon Labs devices 2019-07-11 11:55:06 +01:00
Steven Cartmell fa3e37f75d Add Watchdog and ResetReason headers to mbed.h
Adding headers to mbed.h will prevent you having to manually include
them when using the drivers in an application.
2019-07-11 11:55:06 +01:00
Steven Cartmell 59c7b3a7f9 Add text to watchdog documentation indicating that it will continue to run in sleep modes 2019-07-11 11:55:06 +01:00
Filip Jagodzinski ba1a79d569 STM: HAL: Reset_reason: Correct return values 2019-07-11 11:55:06 +01:00
Filip Jagodzinski 008cd6453c Tests: Drivers: Reset_reason: Add tests 2019-07-11 11:55:06 +01:00
Filip Jagodzinski 9ed1209657 Tests: HAL API: Reset_reason: Add tests 2019-07-11 11:55:06 +01:00
Filip Jagodzinski 685efbde97 Tests: HAL: Watchdog: Fix timing accuracy test
Relax time measurement margins for UBLOX_EVK_ODIN_W2.
2019-07-11 11:55:05 +01:00
Bartek Szatkowski 779abf91c9 Disable Watchdog on Odin as it fails intermittently 2019-07-11 11:55:05 +01:00
Bartek Szatkowski bf305af29f Document reset reason enum 2019-07-11 11:55:05 +01:00
Bartek Szatkowski 5549270d75 Add RESET_REASON and WATCHDOG to doxygen options 2019-07-11 11:55:05 +01:00
Filip Jagodzinski 073320b23f K64F: watchdog HAL: Fix init() and stop()
Added a missing wait for the WCT window end. Without it, consecutive
init() or stop() calls were ignored.
2019-07-11 11:55:05 +01:00
Filip Jagodzinski 749bc03c9a STM32F4: watchdog HAL: Fix issues found with tests
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.
2019-07-11 11:55:05 +01:00
Filip Jagodzinski 91c9cb5c0f Tests: Drivers: Watchdog: Add tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski a129b57443 Tests: HAL API: Watchdog: Add time accuracy tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski 4f05912b99 Tests: HAL API: Watchdog: Add dev reset tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski a7734d0fc8 Tests: HAL API: Watchdog: Add tests 2019-07-11 11:55:04 +01:00
Bartek Szatkowski c78e6db2a7 Add definition of reset reason and watchdog doxy groups 2019-07-11 11:55:04 +01:00
Steven Cartmell be157898c1 Rename watchdog.c -> watchdog_api.c to prevent name collision with Platform API 2019-07-11 11:55:04 +01:00
Steven Cartmell 41e1d600a6 Add RESET_REASON and WATCHDOG definitions to hexiwear build target 2019-07-11 11:55:04 +01:00
Filip Jagodzinski 8158247aef K64F: watchdog HAL: Fix max_timeout.
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.
2019-07-11 11:55:04 +01:00
Steven Cartmell 1f4c5b118f Fix Watchdog::stop on K64F target
WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized.
2019-07-11 11:55:04 +01:00
Steven Cartmell a56da4f3fd Move watchdog parameter validation into the driver layer 2019-07-11 11:55:04 +01:00