diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-03-10 17:28:07 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-04-22 16:51:13 +0200 |
commit | e69b2bc45ff0940b475a1832d25e051240fbda32 (patch) | |
tree | e4847c55b06e4aa2ee71e2dab05663bd6be34757 /gyro.c | |
parent | 8493da1edbc863cd8525bebca4ab86ef1888c232 (diff) | |
download | hourglass-e69b2bc45ff0940b475a1832d25e051240fbda32.tar.gz hourglass-e69b2bc45ff0940b475a1832d25e051240fbda32.tar.bz2 hourglass-e69b2bc45ff0940b475a1832d25e051240fbda32.zip |
Initial accel implementation
Diffstat (limited to 'gyro.c')
-rw-r--r-- | gyro.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 */ |