Commit Graph

25291 Commits (51835f005bc760398373d4cd71535e30d6d6ed00)

Author SHA1 Message Date
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
Steven Cartmell c01db25544 Add missing license headers 2019-07-11 11:55:04 +01:00
Steven Cartmell 0128edd996 Remove window and sleep mode options for watchdog API 2019-07-11 11:55:04 +01:00
Steven Cartmell 0a140b97d8 Add Watchdog driver API 2019-07-11 11:55:03 +01:00
Steven Cartmell ae8896bbb5 Amend reset reason driver API
- Change API to match C++ API throughout drivers
- Amend HAL API documentation to be more specific
2019-07-11 11:55:03 +01:00
Steven Cartmell c67016eca6 Add independent watchdog reference implementation for STM32 2019-07-11 11:55:03 +01:00
Steven Cartmell c16c5184d8 Add function to fetch platform specific reset reason register values 2019-07-11 11:55:03 +01:00
Steven Cartmell 337676716c Add reset reason reference implementation STM32 2019-07-11 11:55:03 +01:00
Steven Cartmell b04eaae07f Add Reset Reason platform API 2019-07-11 11:55:03 +01:00
Steven Cartmell 2d137a3c07 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-07-11 11:55:03 +01:00
Steven Cartmell c43eec9880 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-07-11 11:55:03 +01:00
Steven Cartmell 6a22f58e5b Add K64F reset reason reference implementation 2019-07-11 11:55:03 +01:00
Steven Cartmell a1b2419ab0 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-07-11 11:55:02 +01:00
Hugues Kamba a2aaca4bcc Fix: Allow target size restriction for LPC55S69
The build tool uses the sector size found in the CMSIS Pack to determine if
the size that can be specified by `target.restrict_size` is enough to fit
all the parts of a given binary. See `target.restrict_size` documentation
in the Mbed OS manual for more information.

The sector size found in the CMSIS Pack is overriden to allow the build
tool to accurately make the decision.

The target's sectors in the CMSIS Pack are defined in 32KB pages.
However, you can erase pages at the 512 byte level.

This commit changes defined sector erase size to 512 bytes instead of
32 Kilobytes.
2019-07-11 11:55:02 +01:00
Evelyne Donnaes 4786fcaca2 Update Mbed version block 2019-07-11 11:41:31 +01:00
Mark Edgeworth cb07176ecf Removing absolute paths to compiler executables
VSCode exporter was generating a launch config that contained absolute paths to the
compiler executables. It makes more sense to use the executables that are
installed into the system PATH.
2019-07-11 11:41:30 +01:00
Mahesh Mahadevan c0f2bab022 LPC546XX: Add pins to LPCXpresso restricted list
FPGA GPIO tests cannot be run on certain pins

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-07-11 11:41:30 +01:00
Russ Butler f71baa24be Remove FPGA analog out test
Remove the analog out test temporarily due to limitations of the
FPGA rev 2 hardware.
2019-07-11 11:41:30 +01:00