From 7af8042c93cd29507f64cd5a86feca04ca625b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 3 Oct 2017 21:06:04 +0200 Subject: [PATCH] Fine tune delay to match the I2C peripheral driven at 100kHz. --- right/src/init_peripherals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/right/src/init_peripherals.c b/right/src/init_peripherals.c index ff6a194..d0088d9 100644 --- a/right/src/init_peripherals.c +++ b/right/src/init_peripherals.c @@ -23,7 +23,7 @@ void InitInterruptPriorities(void) void delay(void) { - for (volatile uint32_t i=0; i<10000; i++); + for (volatile uint32_t i=0; i<62; i++); } void InitI2cMainBus(void)