projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix STK525 and STK526 device support in the Atmel Studio extension.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
StillImageHost
/
StillImageHost.c
diff --git
a/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
b/Demos/Host/LowLevel/StillImageHost/StillImageHost.c
index
779827a
..
89e7996
100644
(file)
--- a/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
+++ b/
Demos/Host/LowLevel/StillImageHost/StillImageHost.c
@@
-59,13
+59,14
@@
int main(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
- /* Disable
Clock D
ivision */
-
CLKPR = (1 << CLKPCE
);
- CLKPR = 0;
+ /* Disable
clock d
ivision */
+
clock_prescale_set(clock_div_1
);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);