From 99505cdea68069a3873e670ccc95cdc0f94d2319 Mon Sep 17 00:00:00 2001 From: barthess Date: Tue, 9 Dec 2014 11:31:46 +0300 Subject: 1-wire. Added workaround form F1xx MCUs --- testhal/STM32/STM32F1xx/onewire/Makefile | 2 +- testhal/STM32/STM32F1xx/onewire/onewire_test.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testhal/STM32/STM32F1xx/onewire') diff --git a/testhal/STM32/STM32F1xx/onewire/Makefile b/testhal/STM32/STM32F1xx/onewire/Makefile index d657cdc..dbaaca5 100644 --- a/testhal/STM32/STM32F1xx/onewire/Makefile +++ b/testhal/STM32/STM32F1xx/onewire/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 endif # C specific options here (added to USE_OPT). diff --git a/testhal/STM32/STM32F1xx/onewire/onewire_test.c b/testhal/STM32/STM32F1xx/onewire/onewire_test.c index 139732d..3ce31dc 100644 --- a/testhal/STM32/STM32F1xx/onewire/onewire_test.c +++ b/testhal/STM32/STM32F1xx/onewire/onewire_test.c @@ -40,8 +40,8 @@ #define GPIOB_ONEWIRE 8 #define search_led_off() (palClearPad(GPIOC, GPIOC_LED)) #define search_led_on() (palSetPad(GPIOC, GPIOC_LED)) -#define ONEWIRE_MASTER_CHANNEL 3 -#define ONEWIRE_SAMPLE_CHANNEL 2 +#define ONEWIRE_MASTER_CHANNEL 2 +#define ONEWIRE_SAMPLE_CHANNEL 3 #else #define GPIOB_ONEWIRE GPIOB_TACHOMETER #include "pads.h" -- cgit v1.2.3