deactivate include of <avr/cpufunc.h> for toolchain compatibility
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Sun, 30 Sep 2012 10:15:45 +0000 (12:15 +0200)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Tue, 2 Oct 2012 22:08:19 +0000 (22:08 +0000)
Since cpufunc.h is not needed in the context of primary firmware
and since it is not available in all toolchains, the include
of <avr/cpufunc.h> becomes deactivated by github issue-report.
(In case of trouble it remains in sourcecode for reactivation.)

The autor would like to thank Lena-M for reporting this
issue (https://github.com/baerwolf/USBaspLoader/issues/1).

Reported-by: Lena-M
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
firmware/main.c

index fd5dd48..de891ce 100644 (file)
 #include <avr/eeprom.h>
 #include <util/delay.h>
 
+
+#if 0
+/*
+ * 29.09.2012 /  30.09.2012
+ * 
+ * Since cpufunc.h is not needed in this context and
+ * since it is not available in all toolchains, this include
+ * becomes deactivated by github issue-report.
+ * (In case of trouble it remains in sourcecode for reactivation.)
+ * 
+ * The autor would like to thank Lena-M for reporting this
+ * issue (https://github.com/baerwolf/USBaspLoader/issues/1).
+ */
 #include <avr/cpufunc.h>
+#endif
 
 #include <avr/boot.h>