Commit Graph

24909 Commits (02936376ae5c3652823d2d63afae3a93e45cbc4d)

Author SHA1 Message Date
Rajkumar Kanagaraj f94eb3cf13 Fix for the Ci build issue 2019-06-03 15:24:01 +02:00
Rajkumar Kanagaraj 43c2647be7 fix: Fixing rebased created bugs 2019-06-03 15:24:00 +02:00
Rajkumar Kanagaraj 47030cd23f SW watchdog unittest cases
-Added the mock class function to mock mbed_assert_internal
  -Added the unit test case to test start,kick,stop
  -Modified the interface api name from is_alive to process
  -added the unit test cases for process
2019-06-03 15:23:59 +02:00
Rajkumar Kanagaraj eb98c38226 Hw Watchdog UnitTest cases
-Added the unit test case for testing Hw watchdog
    -Added the supported stubs files
2019-06-03 15:23:59 +02:00
Rajkumar Kanagaraj 3ea9521408 HW Watchdog and SW watchdog interface
- Added Hw watchdog periodic kick calls software watchdog is_alive check
2019-06-03 15:23:58 +02:00
Rajkumar Kanagaraj bcea865db2 Add SW Watchdog
-SW watchdog has interface name start(),stop(),kick()	Sw watchdog internally has static list and shared across multiple instance of SW watchdog
	- Sw watchdog initialize timeout value,unique string via constructor whenever threads created sw watchdog object
	-Threads make sure pass proper timeout value,Unique string while creating the instance.
	-start() called by components(BLE,WIFI etc.,),it adds the entry into static list with few details current count ,etc.,
	-kick() called by registered components(BLE,WIFI etc.) to reset current count to zero.
        -is_alive - interface API to mbed_watchdog_manager
        -implementation optimization
2019-06-03 15:23:57 +02:00
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
Rajkumar Kanagaraj 3cd52d4732 Watchdog refactoring to multithreaded thread.
-Added API to register muliple threads to watchdog drivers
-Watchdog timeout reconfigures everytime whenever new register thread with longer timeout period
-New APIs for watchdog
 wd_register(const osThreadId_t tid, const uint32_t timeout) to register to watchdog
 wd_unregister(const osThreadId_t tid) to unregister to watchdog
 kick(const osThreadId_t tid) to refresh the watchdog
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 95e8e27e9b doxy spell check fix for watchdog 2019-05-24 12:28:23 +02:00
Rajkumar Kanagaraj f4184b19a0 update:Remove DEVICE_WATCHDOG and added RESET_RESON in stm32 family 2019-05-24 12:28:20 +02:00
Mel W 26986289e5 capitalizing class name
Hope this is alright.
2019-05-24 12:23:46 +02:00
Mel W ae776cbf1c Capitalizing Watchdog 2019-05-24 12:23:45 +02:00
Mel W c0e186b3dd small grammatical changes
Not sure if the formatting's still alright on these.
2019-05-24 12:23:45 +02:00
Filip Jagodzinski 16863bb972 Docs: Watchdog: Update code comments
* capitalize driver class name,
* reword test docs for the driver & HAL,
* capitalize Mbed name,
* reword the comments explaining the SERIAL_FLUSH_TIME_MS macro.
2019-05-24 12:23:44 +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
Amanda Butler dd46edaef3 Edit ResetReason_tests.h
Make minor grammar edits.
2019-05-24 12:23:40 +02:00
Ganesh Ramachandran a0c2b59475 Added reset_reason feature for TMPM3HQ 2019-05-24 12:23:39 +02:00
Filip Jagodzinski 337b394048 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-05-24 12:23:38 +02:00
Filip Jagodzinski a37d03d640 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-05-24 12:23:38 +02:00
Donatien Garnier f9ac1567af Fix more astyle failures 2019-05-24 12:23:37 +02:00
Donatien Garnier 91ef36809f Apply new astyle config style 2019-05-24 12:23:36 +02:00
Donatien Garnier 3ab0fbc7cf Update license headers 2019-05-24 12:23:35 +02:00
Steve Cartmell 7f47b0a65c fix(hal-watchdog): Add feature guards to K64F watchdog implementation 2019-05-24 12:23:35 +02:00
Steve Cartmell b06e30ed35 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-05-24 12:23:34 +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 b17ea44046 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-05-24 12:20:05 +02:00
ccli8 5190ec8048 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-05-24 12:20:04 +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