From 778e4889e1897c022906c56d0764fe163e24355b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 8 Mar 2014 17:22:49 +0100 Subject: gyroscope: Rename to gyro --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f017109..f04c725 100644 --- a/main.c +++ b/main.c @@ -11,7 +11,7 @@ #include "i2c.h" #include "uart.h" #include "timer.h" -#include "gyroscope.h" +#include "gyro.h" static void ledInit () { /* set led1,led2 to output */ @@ -43,25 +43,25 @@ int main () { ledInit (); twInit (); uartInit (); - gyroscopeInit (); + gyroInit (); set_sleep_mode (SLEEP_MODE_IDLE); printf ("initialization done\n"); /* global interrupt enable */ sei (); - gyroscopeStart (); + gyroStart (); //timerStart (); while (1) { //sleepwhile (!timerHit ()); //printf ("running for %u seconds\n", seconds); - sleepwhile (!gyroscopeRead ()); + sleepwhile (!gyroRead ()); sleepwhile (twr.status == TWST_WAIT); switch (twr.status) { case TWST_OK: { - volatile const int16_t *val = gyroscopeGet (); + volatile const int16_t *val = gyroGet (); printf ("%i/%i/%i\n", val[0], val[1], val[2]); break; } -- cgit v1.2.3