Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @Wenn0101 ,
Here is the rewritten WDT library for v2.x of the Apollo3 Core. I based it on the format of the RTC library that @oclyke rewrote for v2.x
I've standardized the RTC and WDT intra-library instantiations, so the objects are now
wdt
andrtc
(lowercase). This is handy, though I suspect some users may like to have more control over how they create their objects.I also fixed the low-power examples with some assistance from @paulvha. As UART is handled differently now with Mbed OS, I simply modified the low power code so that it manually disables/reenables the UART0 TX/RX pins. It was also necessary to enable the lower 512K of memory since v2.x code is 10x the size of v1.x (Mbed is a hog).
All examples compile using a SparkFun Redboard Artemis.
Happy to assist further or make any necessary changes.
Cheers,
Adam