Skip to content

Conversation

@vikramx2112
Copy link
Contributor

Added support of esp32 for polling and interrupt mode in watchdog
testcases.
Signed-off-by: Vikram Singh Shekhawat vikramx.shekhawat@intel.com

Copy link
Contributor

@galak galak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be reworking the test to be more generic, not adding more specific details unique to a give platform.

@lpereira lpereira self-requested a review August 29, 2017 14:32
Added support of esp32 for polling and interrupt mode in watchdog
testcases.
Signed-off-by: Vikram Singh Shekhawat <vikramx.shekhawat@intel.com>
@lpereira
Copy link
Member

I have an experimental branch implementing two new APIs for the watchdog device: ability to get boot reason, and access to a retained value. These should be sufficient to write these tests in a platform-agnostic way.

@vikramx2112
Copy link
Contributor Author

Will update the changes once new api changes will merge in wdt driver.

@vikramx2112
Copy link
Contributor Author

@lpereira , Are we going to merge the retention reg and reset reason entry point in WDT drivers. As this test case is still waiting for new driver changes.

@lpereira
Copy link
Member

I completely forgot about this, @vikramx2112. The new watchdog API (on #1260) do not contemplate adding the boot reason and access to a value retained by the watchdog.

@vikramx2112
Copy link
Contributor Author

@lpereira , Any idea when we will include the changes of retention reg and reset reason entry point in WDT drivers.

@lpereira
Copy link
Member

No idea, @vikramx2112. It's likely this won't be added, as it's not something supported by all platforms supported by Zephyr.

@m-kru, on your investigations while rethinking the watchdog API, have you encountered any other platform with this feature?

@m-kru
Copy link
Contributor

m-kru commented Oct 24, 2017

@lpereira You mean retention register and reset reason?

Yes I have encountered both but I have never seen them as a part of watchdog peripheral.

@lpereira
Copy link
Member

@m-kru Yeah, ESP32 is usually the odd one out. It sort of makes sense in this case, though. These things can be implemented as another driver class.

In any case, I'm closing this issue, as it doesn't make sense to add this to the watchdog driver class as it's a peculiarity of this SoC.

@lpereira lpereira closed this Oct 24, 2017
@vikramx2112
Copy link
Contributor Author

@lpereira , what about the esp32_wdt_test app changes. Are we going to merge this one or not. As latest wdt_test app is used to test quark devices only. How we are going to test esp32 wdt driver.

@lpereira
Copy link
Member

We're not going to merge this one. We can use the information frmo this patch to create a few driver classes so we can get the reset reason, and store/restore the retention register values. The reason is, as stated by @m-kru, this is something present in other microcontrollers, but they're usually not in the watchdog peripheral as it is in the ESP32.

nagineni pushed a commit to nagineni/zephyr that referenced this pull request Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants