The Wayback Machine - https://web.archive.org/web/20211117043119/https://github.com/adafruit/circuitpython/pull/5320
Skip to content
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

Implement reset_reason for raspberrypi port #5320

Merged
merged 1 commit into from Sep 9, 2021
Merged

Conversation

Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
@rjp5th
Copy link

@rjp5th rjp5th commented Sep 8, 2021

This implements the reset_reason for the microcontroller.Processor class on the raspberrypi port. It also adds a ResetReason.RESCUE_DEBUG enum for if the RP2040 is reset via the Rescue Debug Port. One thing to note is that resetting the microcontroller in software will report a watchdog reset, due to the implementation of the watchdog_reset in the pico_sdk setting a low watchdog timeout rather than triggering a reset directly in the watchdog.

Copy link
Member

@gamblor21 gamblor21 left a comment

Looks good to me but I didn't test. Will let someone else also take a look to verify too as I'm not familiar with this code.

Loading

tannewt
tannewt approved these changes Sep 9, 2021
Copy link
Member

@tannewt tannewt left a comment

Looks good to me too!

Loading

@tannewt tannewt merged commit 0ee0ed7 into adafruit:main Sep 9, 2021
236 checks passed
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment