Reduced timeout
This commit is contained in:
4
main.c
4
main.c
@@ -22,7 +22,7 @@
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
#define VERSION_STRING "TWIBOOT v3.1 (M)"
|
||||
#define EEPROM_SUPPORT 1
|
||||
#define EEPROM_SUPPORT 0
|
||||
#define LED_SUPPORT 1
|
||||
|
||||
#ifndef USE_CLOCKSTRETCH
|
||||
@@ -40,7 +40,7 @@
|
||||
#define F_CPU 16000000ULL
|
||||
#define TIMER_DIVISOR 2048
|
||||
#define TIMER_IRQFREQ_MS 25
|
||||
#define TIMEOUT_MS 1000
|
||||
#define TIMEOUT_MS 100
|
||||
|
||||
#define TIMER_MSEC2TICKS(x) ((x * F_CPU) / (TIMER_DIVISOR * 1000ULL))
|
||||
#define TIMER_MSEC2IRQCNT(x) (x / TIMER_IRQFREQ_MS)
|
||||
|
||||
Reference in New Issue
Block a user