Rajkumar Kanagaraj
400b2ee8a7
Add HwWatchdog
...
- mbed_watchdog_mgr has interface name mbed_wdog_manager_start(),mbed_wdog_manager_stop(),mbed_wdog_manager_kick()
- HwWatchdog is going to attach with LowPowerTIcker for periodic callback functionality
- mbed_wdog_manager_start() will either get start either by BL/RTOS Aps,it reads the timeout value specified via macro and macro gets defined in target.json file.
- mbed_wdog_manager_start() internally configure below HAL hw watchdog with timeout specified via target.json
- mbed_wdog_manager_start() internally divide the timeout(specified in target.json) by the 2 and attach LowPowerTicker with periodic callback of hw_kick()
- mbed_wdog_manager_start() internally create one instance of sw watchdog class,to access the static list data structure of sw watchdog class
- mbed_wdog_manager_kick() function periodically get called and refresh the hw watchdog to avoid watchdog reset
- converted C++ code into C based APIs
- added boolean to control watchdog start and stop
- Added detach from ticker on stop API
2019-06-03 15:23:56 +02:00
Filip Jagodzinski
f4e6966e14
Remove RESET_REASON from MCU_NRF52840
2019-05-29 10:25:51 +02:00
Rajkumar Kanagaraj
727070e04a
Removed RESET_REASON for NRF51_DK board
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
50c6e9f481
Added the SPDX identifier
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
15bcb38fad
Trailing space issue fix
2019-05-24 12:32:52 +02:00
Rajkumar Kanagaraj
af0b056b05
fix for Jenkin build issue
2019-05-24 12:32:51 +02:00
Rajkumar Kanagaraj
7d5a17d955
Removed RESET_REASON for NRF52832,NRF52840 family and Removed WATCHDOG for H743ZI board
2019-05-24 12:32:50 +02:00
Rajkumar Kanagaraj
8393068770
Revert "fix for build failure issues"
...
This reverts commit 3ce1d4940cb7fd9d74ca2be75ed08b76854ff534.
2019-05-24 12:32:45 +02:00
Rajkumar Kanagaraj
e13fdc444f
fix for build failure issues
2019-05-24 12:31:28 +02:00
Rajkumar Kanagaraj
f4184b19a0
update:Remove DEVICE_WATCHDOG and added RESET_RESON in stm32 family
2019-05-24 12:28:20 +02:00
Steve Cartmell
ad295e64ba
fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag
2019-05-24 12:23:43 +02:00
Steve Cartmell
a63e236d84
fix(hal-watchdog): Add 'RESET_REASON' flags to supported devices
2019-05-24 12:23:42 +02:00
Steve Cartmell
8baae2475a
fix(hal-watchdog): Remove 'RESET_REASON' flags from unsupported devices
2019-05-24 12:23:41 +02:00
Steve Cartmell
544eb82a47
fix: Remove excess comma from device_has key in targets.json
2019-05-24 12:23:41 +02:00
Ganesh Ramachandran
a0c2b59475
Added reset_reason feature for TMPM3HQ
2019-05-24 12:23:39 +02:00
Steve Cartmell
7f47b0a65c
fix(hal-watchdog): Add feature guards to K64F watchdog implementation
2019-05-24 12:23:35 +02:00
Ganesh Ramachandran
5fc77d3c4a
Added reset_reason feature for TMPM3H6 & TMPM4G9
2019-05-24 12:23:33 +02:00
Ganesh Ramachandran
f6fcabb9b8
Added reset_reason feature for TMPM066 & TMPM46B
2019-05-24 12:23:29 +02:00
ccli8
84440531f1
[Nuvoton] Support watchdog timer
2019-05-24 12:20:01 +02:00
ccli8
6e514b6e08
[Nuvoton] Support reset reason
2019-05-24 11:35:44 +02:00
ccli8
717979075f
[NUC472] Fix WDT driver in BSP
2019-05-24 11:35:43 +02:00
Qinghao Shi
a6a34722ca
fix bugs introduced on rebase
2019-05-24 11:35:43 +02:00
jeromecoutant
570e9b0bf4
STM32 WATCHDOG : increase timeout value
2019-05-24 11:35:42 +02:00
jeromecoutant
4300e5d6c4
STM32 WATCHDOG : use ST HAL in order to make code commun for all STM32
2019-05-24 11:35:41 +02:00
jeromecoutant
feec85cc37
STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version
2019-05-24 11:35:41 +02:00
jeromecoutant
e29d64fc19
STM32 WATCHDOG : compilation issue with typed define
2019-05-24 11:35:40 +02:00
jeromecoutant
1b8513a5a8
STM32 Watchdog : move API file to STM family level
2019-05-24 11:35:39 +02:00
Lukas Mandak
ce574b5eef
NCS36510: Added watchdog implementation.
2019-05-24 11:35:38 +02:00
Steven Cooreman
c7bc7e5122
Add implementation of reset reason on Silicon Labs parts
2019-05-24 11:35:38 +02:00
Steven Cooreman
295c79ab0a
Add support for watchdog on Silicon Labs devices
2019-05-24 11:35:37 +02:00
Filip Jagodzinski
3d31801f4f
STM: HAL: Reset_reason: Correct return values
2019-05-24 11:35:35 +02:00
Bartek Szatkowski
585edc1f43
Disable Watchdog on Odin as it fails intermittently
2019-05-24 11:35:32 +02:00
Filip Jagodzinski
4ed0b948f4
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-05-24 11:35:30 +02:00
Filip Jagodzinski
d26dba40b2
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-05-24 11:35:29 +02:00
Steven Cartmell
2fb9fc2a8e
Rename watchdog.c -> watchdog_api.c to prevent name collision with Platform API
2019-05-24 11:35:25 +02:00
Steven Cartmell
9d571cd617
Add RESET_REASON and WATCHDOG definitions to hexiwear build target
2019-05-24 11:35:24 +02:00
Filip Jagodzinski
90bb2929e0
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-05-24 11:35:23 +02:00
Steven Cartmell
2ab738fc66
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-05-24 11:35:22 +02:00
Steven Cartmell
e7761a1d39
Move watchdog parameter validation into the driver layer
2019-05-24 11:35:22 +02:00
Steven Cartmell
31924b2481
Add missing license headers
2019-05-24 11:35:21 +02:00
Steven Cartmell
7c392a16d4
Remove window and sleep mode options for watchdog API
2019-05-24 11:35:13 +02:00
Steven Cartmell
8fa38bb25b
Add Watchdog driver API
2019-05-24 11:20:26 +02:00
Steven Cartmell
366893ae71
Add independent watchdog reference implementation for STM32
2019-05-24 11:20:25 +02:00
Steven Cartmell
6b3d790fc1
Add function to fetch platform specific reset reason register values
2019-05-24 11:20:24 +02:00
Steven Cartmell
1ec22fee05
Add reset reason reference implementation STM32
2019-05-24 11:20:23 +02:00
Steven Cartmell
8a97101988
Fix watchdog API issues
...
- Fix typo in module comment
- Redefine the default system behaviour in sleep mode
- Guard K64F enableWait flag
- Remove bit shifts from reset reason enum
2019-05-24 11:20:22 +02:00
Steven Cartmell
c258acc222
Add simple watchdog reference implementation for K64F
...
- 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
2019-05-24 11:20:21 +02:00
Steven Cartmell
efcdca8b0f
Add K64F reset reason reference implementation
2019-05-24 11:20:20 +02:00
Martin Kojtal
cfb107912b
Merge pull request #10616 from ThunderSoft123/master
...
Fix bug Operator new[] out of memory
2019-05-23 21:40:10 +01:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00