From 03fab93a8b8809ac405e83349579fbfa8adfb7f0 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 6 Apr 2013 11:31:05 +0000 Subject: STM32 I2Cv2 driver now working correctly. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5548 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F37x/I2C/Makefile | 2 +- testhal/STM32F37x/I2C/main.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'testhal/STM32F37x/I2C') diff --git a/testhal/STM32F37x/I2C/Makefile b/testhal/STM32F37x/I2C/Makefile index 0090b317a..782a3b3d7 100644 --- a/testhal/STM32F37x/I2C/Makefile +++ b/testhal/STM32F37x/I2C/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 + USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 endif # C specific options here (added to USE_OPT). diff --git a/testhal/STM32F37x/I2C/main.c b/testhal/STM32F37x/I2C/main.c index 46f190f2a..fc0e4e2ab 100644 --- a/testhal/STM32F37x/I2C/main.c +++ b/testhal/STM32F37x/I2C/main.c @@ -98,7 +98,6 @@ int main(void) { if (msg != RDY_OK) palTogglePad(GPIOC, GPIOC_LED3); for (i = 0; i < 256; i++) { - chThdSleepMilliseconds(2); msg = i2cMasterReceiveTimeout(&I2CD2, 0x52, data, sizeof(data), TIME_INFINITE); if (msg != RDY_OK) -- cgit v1.2.3