diff options
Diffstat (limited to 'tools/gen-device-avr.py')
-rwxr-xr-x | tools/gen-device-avr.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/gen-device-avr.py b/tools/gen-device-avr.py index 3517d868e..f2592c1ff 100755 --- a/tools/gen-device-avr.py +++ b/tools/gen-device-avr.py @@ -208,6 +208,15 @@ def writeAsm(outdir, device): ; Automatically generated file. DO NOT EDIT. ; Generated by gen-device-avr.py from {file}, see {descriptorSource} +; This is the default handler for interrupts, if triggered but not defined. +; Sleep inside so that an accidentally triggered interrupt won't drain the +; battery of a battery-powered device. +.section .text.__vector_default +.global __vector_default +__vector_default: + sleep + rjmp __vector_default + ; Avoid the need for repeated .weak and .set instructions. .macro IRQ handler .weak \\handler |