From 1f08ac3beb52b48de0d6000cdc2da01057d549c6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 13 Jun 2013 16:18:25 -0600 Subject: [PATCH] SAM3/4: Loop counter for PLL delay must be volatile or it may get optimized away --- configs/sam3u-ek/src/up_touchscreen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sam3u-ek/src/up_touchscreen.c b/configs/sam3u-ek/src/up_touchscreen.c index f8b465748e6..ea2ad3d0abe 100644 --- a/configs/sam3u-ek/src/up_touchscreen.c +++ b/configs/sam3u-ek/src/up_touchscreen.c @@ -195,6 +195,7 @@ static bool tsc_busy(FAR struct ads7843e_config_s *state) last = busy; } #endif + return busy; }