summaryrefslogtreecommitdiff
path: root/usb-dfu-experiment
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-08 15:34:52 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-08 15:34:52 +0100
commit9439e717ccf5adc2b24552f4025f4294f44f19c1 (patch)
tree78e8b15b527a8525d59940c3dcdf37c5bf2cff6c /usb-dfu-experiment
parenteaf3be4fb75f8dda3e2be044f096338aa3069ba2 (diff)
DFU: use __WFE() to reduce idle loop power consumption
Diffstat (limited to 'usb-dfu-experiment')
-rw-r--r--usb-dfu-experiment/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usb-dfu-experiment/main.c b/usb-dfu-experiment/main.c
index 12de844..e9ef876 100644
--- a/usb-dfu-experiment/main.c
+++ b/usb-dfu-experiment/main.c
@@ -446,6 +446,7 @@ int main(void)
continue;
} else
usbConn = 1;
+ __WFE();
}
}
/** \endcond */
personal git repositories of Harald Welte. Your mileage may vary