summaryrefslogtreecommitdiff
path: root/src-avr/avr.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-05-20 01:35:49 -0700
committerKeith Packard <keithp@keithp.com>2011-05-20 01:35:49 -0700
commitd67df9a6dc76ba52f32fa4c0b141825b97a2fbc8 (patch)
tree02fc0fed6c08ad54afe2a1ed9161132fb2f91d88 /src-avr/avr.h
parent92fcfc2e8e5a9cb789c8d4be36d38c1a73ddd413 (diff)
src-avr: Add 'sleep_cpu' to reduce power usage while idle
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src-avr/avr.h')
-rw-r--r--src-avr/avr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-avr/avr.h b/src-avr/avr.h
index 8c9c7bd7..9811a07f 100644
--- a/src-avr/avr.h
+++ b/src-avr/avr.h
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
+#include <avr/sleep.h>
#if TEENSY
#define F_CPU 16000000UL // 16 MHz