Skip to content

Commit 05fccb7

Browse files
committed
Fixed timer speed for Uno and Duemilanove
Actually, I have only those two boards, so I'm not usre that I fixed it correctly and not broken everything else
1 parent 15956be commit 05fccb7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

platform/arduino/platform-conf.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@
5656
#endif
5757

5858
/* Clock ticks per second */
59-
#define CLOCK_CONF_SECOND 125
60-
59+
#if defined (__AVR_ATmega328P__) // for Uno and Duemilanove-238
60+
# define CLOCK_CONF_SECOND 256
61+
#else
62+
# define CLOCK_CONF_SECOND 128
63+
#endif
6164

6265
/* LED ports */
6366
#define LEDS_PxDIR DDRA /**< port direction register */

0 commit comments

Comments
 (0)