summaryrefslogtreecommitdiffstats
path: root/watch-library/hardware
diff options
context:
space:
mode:
authorAlex Maestas <git@se30.xyz>2023-12-18 06:41:21 +0000
committerAlex Maestas <git@se30.xyz>2023-12-18 06:41:21 +0000
commitde692e05e243c88cb1bd1c0fabcb0976f6a343d0 (patch)
tree8e7a7d43417a47c7755c5030f8d1cc002b0a4307 /watch-library/hardware
parentd96d6f9c919816a01a9139adf02a1063289cac27 (diff)
downloadSensor-Watch-de692e05e243c88cb1bd1c0fabcb0976f6a343d0.tar.gz
Sensor-Watch-de692e05e243c88cb1bd1c0fabcb0976f6a343d0.tar.bz2
Sensor-Watch-de692e05e243c88cb1bd1c0fabcb0976f6a343d0.zip
make any unknown interrupts/faults reset the microcontroller
Diffstat (limited to 'watch-library/hardware')
-rwxr-xr-xwatch-library/hardware/startup_saml22.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/watch-library/hardware/startup_saml22.c b/watch-library/hardware/startup_saml22.c
index f4982564..2d2027f0 100755
--- a/watch-library/hardware/startup_saml22.c
+++ b/watch-library/hardware/startup_saml22.c
@@ -220,6 +220,5 @@ void Reset_Handler(void)
*/
void Dummy_Handler(void)
{
- while (1) {
- }
+ NVIC_SystemReset();
}