Reduced timeout

This commit is contained in:
Dreaded_X 2021-01-07 03:44:35 +01:00
parent 9bed754a7d
commit d661330a44

4
main.c
View File

@ -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)