Use correct prescale factor
This commit is contained in:
parent
2feed121d2
commit
53737d9a38
|
@ -130,7 +130,7 @@
|
||||||
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 8
|
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 8
|
||||||
#define AVR_CONF_TMR0_PRESCALE 8
|
#define AVR_CONF_TMR0_PRESCALE 8
|
||||||
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 64
|
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 64
|
||||||
#define AVR_CONF_TMR0_PRESCALE 8
|
#define AVR_CONF_TMR0_PRESCALE 64
|
||||||
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 256
|
#elif F_CPU/CLOCK_CONF_SECOND < 256 * 256
|
||||||
#define AVR_CONF_TMR0_PRESCALE 256
|
#define AVR_CONF_TMR0_PRESCALE 256
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue