From 4c151b5af366b82a8c532d3b864873e96ea23520 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka <gniibe@fsij.org> Date: Wed, 5 Jun 2013 17:39:23 +0900 Subject: fix sample --- example-led/Makefile | 4 ++-- example-led/sample.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'example-led') diff --git a/example-led/Makefile b/example-led/Makefile index f06a274..2befa17 100644 --- a/example-led/Makefile +++ b/example-led/Makefile @@ -14,8 +14,8 @@ OBJCOPY = $(CROSS)objcopy MCU = cortex-m3 CWARN = -Wall -Wextra -Wstrict-prototypes -# DEFS = -DFREE_STANDING -DEFS = -DFREE_STANDING -DBUSY_LOOP -DCHX_FLAGS_MAIN=CHOPSTX_SCHED_RR +DEFS = -DFREE_STANDING +# DEFS = -DFREE_STANDING -DBUSY_LOOP -DCHX_FLAGS_MAIN=CHOPSTX_SCHED_RR OPT = -O3 -Os -g LIBS = diff --git a/example-led/sample.c b/example-led/sample.c index c89b2bc..d8a9ac6 100644 --- a/example-led/sample.c +++ b/example-led/sample.c @@ -14,7 +14,7 @@ static void wait_for (uint32_t usec) { #if defined(BUSY_LOOP) - uint32_t count = usec *18; + uint32_t count = usec * 6; uint32_t i; for (i = 0; i < count; i++) -- cgit v1.2.3