Hiroshi M / GyroSensor
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers util.h Source File

util.h

00001 /**
00002  *****************************************************************************
00003  * File Name    : util.c
00004  *
00005  * Title        : Utility functions Header File
00006  * Revision     : 0.1
00007  * Notes        :
00008  * Target Board : mbed NXP LPC1768
00009  * Tool Chain   : ????
00010  *
00011  * Revision History:
00012  * When         Who         Description of change
00013  * -----------  ----------- -----------------------
00014  * 2012/07/10   Hiroshi M   init
00015  *****************************************************************************
00016  *
00017  * Copyright (C) 2012 Hiroshi M, MIT License
00018  *
00019  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
00020  * and associated documentation files (the "Software"), to deal in the Software without restriction,
00021  * including without limitation the rights to use, copy, modify, merge, publish, distribute,
00022  * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
00023  * furnished to do so, subject to the following conditions:
00024  *
00025  * The above copyright notice and this permission notice shall be included in all copies or
00026  * substantial portions of the Software.
00027  *
00028  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
00029  * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00030  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00031  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00032  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00033  *
00034  **/
00035 
00036 #ifndef MBED_MY_UTIL_H
00037 #define MBED_MY_UTIL_H
00038 
00039 /* Includes ------------------------------------------------------------------*/
00040 /* typedef -------------------------------------------------------------------*/
00041 /* define --------------------------------------------------------------------*/
00042 /* macro ---------------------------------------------------------------------*/
00043 #define N 16
00044 
00045 /* variables -----------------------------------------------------------------*/
00046 /* function prototypes -------------------------------------------------------*/
00047 
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
00051 
00052 int lsm(int *y, int x);
00053 int xabs(int x,int y);
00054 
00055 
00056 #ifdef __cplusplus
00057 }
00058 #endif
00059 
00060 #endif