Gyro Sensor Library

Committer:
bant62
Date:
Mon Jul 16 03:42:01 2012 +0000
Revision:
0:da10b9c9db7a
init revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bant62 0:da10b9c9db7a 1 /**
bant62 0:da10b9c9db7a 2 *****************************************************************************
bant62 0:da10b9c9db7a 3 * File Name : util.c
bant62 0:da10b9c9db7a 4 *
bant62 0:da10b9c9db7a 5 * Title : Utility functions Header File
bant62 0:da10b9c9db7a 6 * Revision : 0.1
bant62 0:da10b9c9db7a 7 * Notes :
bant62 0:da10b9c9db7a 8 * Target Board : mbed NXP LPC1768
bant62 0:da10b9c9db7a 9 * Tool Chain : ????
bant62 0:da10b9c9db7a 10 *
bant62 0:da10b9c9db7a 11 * Revision History:
bant62 0:da10b9c9db7a 12 * When Who Description of change
bant62 0:da10b9c9db7a 13 * ----------- ----------- -----------------------
bant62 0:da10b9c9db7a 14 * 2012/07/10 Hiroshi M init
bant62 0:da10b9c9db7a 15 *****************************************************************************
bant62 0:da10b9c9db7a 16 *
bant62 0:da10b9c9db7a 17 * Copyright (C) 2012 Hiroshi M, MIT License
bant62 0:da10b9c9db7a 18 *
bant62 0:da10b9c9db7a 19 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
bant62 0:da10b9c9db7a 20 * and associated documentation files (the "Software"), to deal in the Software without restriction,
bant62 0:da10b9c9db7a 21 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
bant62 0:da10b9c9db7a 22 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
bant62 0:da10b9c9db7a 23 * furnished to do so, subject to the following conditions:
bant62 0:da10b9c9db7a 24 *
bant62 0:da10b9c9db7a 25 * The above copyright notice and this permission notice shall be included in all copies or
bant62 0:da10b9c9db7a 26 * substantial portions of the Software.
bant62 0:da10b9c9db7a 27 *
bant62 0:da10b9c9db7a 28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
bant62 0:da10b9c9db7a 29 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
bant62 0:da10b9c9db7a 30 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
bant62 0:da10b9c9db7a 31 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
bant62 0:da10b9c9db7a 32 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
bant62 0:da10b9c9db7a 33 *
bant62 0:da10b9c9db7a 34 **/
bant62 0:da10b9c9db7a 35
bant62 0:da10b9c9db7a 36 #ifndef MBED_MY_UTIL_H
bant62 0:da10b9c9db7a 37 #define MBED_MY_UTIL_H
bant62 0:da10b9c9db7a 38
bant62 0:da10b9c9db7a 39 /* Includes ------------------------------------------------------------------*/
bant62 0:da10b9c9db7a 40 /* typedef -------------------------------------------------------------------*/
bant62 0:da10b9c9db7a 41 /* define --------------------------------------------------------------------*/
bant62 0:da10b9c9db7a 42 /* macro ---------------------------------------------------------------------*/
bant62 0:da10b9c9db7a 43 #define N 16
bant62 0:da10b9c9db7a 44
bant62 0:da10b9c9db7a 45 /* variables -----------------------------------------------------------------*/
bant62 0:da10b9c9db7a 46 /* function prototypes -------------------------------------------------------*/
bant62 0:da10b9c9db7a 47
bant62 0:da10b9c9db7a 48 #ifdef __cplusplus
bant62 0:da10b9c9db7a 49 extern "C" {
bant62 0:da10b9c9db7a 50 #endif
bant62 0:da10b9c9db7a 51
bant62 0:da10b9c9db7a 52 int lsm(int *y, int x);
bant62 0:da10b9c9db7a 53 int xabs(int x,int y);
bant62 0:da10b9c9db7a 54
bant62 0:da10b9c9db7a 55
bant62 0:da10b9c9db7a 56 #ifdef __cplusplus
bant62 0:da10b9c9db7a 57 }
bant62 0:da10b9c9db7a 58 #endif
bant62 0:da10b9c9db7a 59
bant62 0:da10b9c9db7a 60 #endif