Commit Graph

25982 Commits (b0d4b691230ada4ae5a86da94ffcd77617a7e11c)

Author SHA1 Message Date
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
Steven Cartmell 77c5007653 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-05-24 11:35:36 +02:00
Steven Cartmell bafe99ced3 Add text to watchdog documentation indicating that it will continue to run in sleep modes 2019-05-24 11:35:35 +02:00
Filip Jagodzinski 3d31801f4f STM: HAL: Reset_reason: Correct return values 2019-05-24 11:35:35 +02:00
Filip Jagodzinski 76f7ca613a Tests: Drivers: Reset_reason: Add tests 2019-05-24 11:35:34 +02:00
Filip Jagodzinski f9497e5ed4 Tests: HAL API: Reset_reason: Add tests 2019-05-24 11:35:33 +02:00
Filip Jagodzinski 4e28b80b5f Tests: HAL: Watchdog: Fix timing accuracy test
Relax time measurement margins for UBLOX_EVK_ODIN_W2.
2019-05-24 11:35:33 +02:00
Bartek Szatkowski 585edc1f43 Disable Watchdog on Odin as it fails intermittently 2019-05-24 11:35:32 +02:00
Bartek Szatkowski f3c6c569d1 Document reset reason enum 2019-05-24 11:35:31 +02:00
Bartek Szatkowski 239c8a3cad Add RESET_REASON and WATCHDOG to doxygen options 2019-05-24 11:35:30 +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
Filip Jagodzinski 8baf16760d Tests: Drivers: Watchdog: Add tests 2019-05-24 11:35:28 +02:00
Filip Jagodzinski c4d9300f9d Tests: HAL API: Watchdog: Add time accuracy tests 2019-05-24 11:35:28 +02:00
Filip Jagodzinski f1e744d4a0 Tests: HAL API: Watchdog: Add dev reset tests 2019-05-24 11:35:27 +02:00
Filip Jagodzinski 484b716c6e Tests: HAL API: Watchdog: Add tests 2019-05-24 11:35:26 +02:00
Bartek Szatkowski 808ccaf12e Add definition of reset reason and watchdog doxy groups 2019-05-24 11:35:25 +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 3c18dcb882 Amend reset reason driver API
- Change API to match C++ API throughout drivers
- Amend HAL API documentation to be more specific
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 41878bc3de Add Reset Reason platform API 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
Steven Cartmell 7fe3a387e3 Add Watchdog HAL API specification headers
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.
2019-05-24 11:20:20 +02:00
Martin Kojtal c4cc9c4f1b
Merge pull request #10646 from LDong-Arm/connectionCount
Fix deprecation notice for ble::Gap::getState()
2019-05-24 09:11:58 +01:00
Ari Parkkila e49d7bbdcd Cellular: Add BG96 power control 2019-05-24 00:30:04 -07:00
Russ Butler e2312c4ff4 Bring in more changes from FPGA repo
Bring in updates the the FPGA CI Test Shield repo.
2019-05-23 19:17:32 -05:00
Martin Kojtal 541dee4531
Merge pull request #10553 from korjaa/semihosting_docs
Add semihosting and SWO examples to mbed_override_console().
2019-05-23 21:40:37 +01: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
Martin Kojtal 86bd7f05f0
Merge pull request #10634 from LDong-Arm/ble-api-update
BLE: fix deprecated API calls in battery and thermometer services
2019-05-23 21:37:19 +01:00
Martin Kojtal 80d7cb2e17
Merge pull request #10631 from VVESTM/update_cube_h7
Update cube h7 to 1.4.0
2019-05-23 21:36:38 +01:00
Martin Kojtal 3f756f0769
Merge pull request #10591 from OpenNuvoton/nuvoton_m2351_fix_spdmc_sync
M2351: Fix serial sync error in SPDMC test
2019-05-23 21:36:15 +01:00
Martin Kojtal 02b91bdfca
Merge pull request #10582 from malavikasajikumar/master
Adding LED4 definition in PinNames.h of SDP-K1 board.
2019-05-23 21:35:42 +01:00
Tymoteusz Bloch c1b72a71b5 Fixed LWIP warning issues found by Coverity scan 2019-05-23 18:53:44 +02:00
Lingkai Dong c84a13c0f2 Fix deprecation notice for ble::Gap::getState()
The deprecation notice suggests getConnectionCount() which
did not land in the final API. The proper replacement is keeping
your own record and updating during connection and disconnection
callbacks.
2019-05-23 16:36:28 +01:00
Chris Trowbridge f81130dd23 Update licenses for EP_AGORA target 2019-05-23 11:30:25 -04:00