From e69b2bc45ff0940b475a1832d25e051240fbda32 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 10 Mar 2014 17:28:07 +0100 Subject: Initial accel implementation --- gyro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gyro.c') diff --git a/gyro.c b/gyro.c index a373d29..d6a8b48 100644 --- a/gyro.c +++ b/gyro.c @@ -33,12 +33,12 @@ sleep_disable (); /* the first interrupt is lost */ -volatile bool drdy = true; -volatile int16_t val[3] = {0, 0, 0}; +static volatile bool drdy = true; +static volatile int16_t val[3] = {0, 0, 0}; /* current (relative) angle, in millidegree */ -int16_t angle[3] = {0, 0, 0}; +static int16_t angle[3] = {0, 0, 0}; /* currently reading from i2c */ -bool reading = false; +static bool reading = false; /* data ready interrupt */ -- cgit v1.2.3