-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Independent watchdog skeleton definitions #808
Independent watchdog skeleton definitions #808
Conversation
Weak function implementations for independent watchdog
Independent watchdog header file with required function declarations
Hi @sharmavishnu, I'm nanoFramework bot. A human will be reviewing it shortly. 😉 |
@sharmavishnu great start on this! 👏 Considering that:
We can probably make some simplifications on what you have here. On a first pass, these would be:
Plus some of the code you have in the community PR should be added here, because it's common to the STM32 targets and it's much efficiente to have it in a single place. Let me know your thoughts on the above! 😃 |
Removed some APIs to simplify implementation.
Updated watchdog API default implementations after changes to the header file
Added default watchdog implementation file
Independent watchdog implementation for STM32 series MCU
Independent watchdog implementation for STM32 series MCU
Watchdog implementation file added to CMake list
Included all comments. The key changes are:
(Note: Closed the PR on community target. No longer required to maintain watchdog implementation in specific implementations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very nice and clean.
Just take a look at the bellow comment and we should be able to merge this. 😉
*/ | ||
void Watchdog_Reset() | ||
{ | ||
syssts_t sts = chSysGetStatusAndLockX(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was checking the ChibiOS test code and there is no call to chSysGetStatusAndLockX
as you are using here...
Do we need these?
Forgot about the "break" statement in "for...loop". Corrected it.
Based on feedback, removed code for critical section in Watchdog_Reset. Since only the execution engine will be calling this and not user code, critical section within the reset is not required.
Description
Motivation and Context
Enable standard API for including support for independent watchdog for any given MCU and OS platform
How Has This Been Tested?
Used STM32F401RE nulceo board to test using the community target port. Concrete implementation of independent watchdog for the MCU STM32F401RE is also submitted in a separate PR against that repository. This will also act as a sample implementation
Screenshots
Types of changes
Checklist:
Signed-off-by: @sharmavishnu vishnusmoke@gmail.com