Rohan Gurav
/
Sean_AdiSense1000_V21
ADISense1000 Version 2.1 code base
Fork of AdiSense1000_V21 by
inc/adi_sense_platform.h@7:4dbae381f693, 2017-10-20 (annotated)
- Committer:
- kevin1990
- Date:
- Fri Oct 20 15:58:01 2017 +0000
- Revision:
- 7:4dbae381f693
v0.3 release (New Host api)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevin1990 | 7:4dbae381f693 | 1 | /*! |
kevin1990 | 7:4dbae381f693 | 2 | ****************************************************************************** |
kevin1990 | 7:4dbae381f693 | 3 | * @file: adi_sense_platform.h |
kevin1990 | 7:4dbae381f693 | 4 | * @brief: Platform-specific type definitions for ADI Sense API. |
kevin1990 | 7:4dbae381f693 | 5 | *----------------------------------------------------------------------------- |
kevin1990 | 7:4dbae381f693 | 6 | */ |
kevin1990 | 7:4dbae381f693 | 7 | |
kevin1990 | 7:4dbae381f693 | 8 | /* |
kevin1990 | 7:4dbae381f693 | 9 | Copyright (c) 2017 Analog Devices, Inc. |
kevin1990 | 7:4dbae381f693 | 10 | |
kevin1990 | 7:4dbae381f693 | 11 | All rights reserved. |
kevin1990 | 7:4dbae381f693 | 12 | |
kevin1990 | 7:4dbae381f693 | 13 | Redistribution and use in source and binary forms, with or without modification, |
kevin1990 | 7:4dbae381f693 | 14 | are permitted provided that the following conditions are met: |
kevin1990 | 7:4dbae381f693 | 15 | - Redistributions of source code must retain the above copyright notice, |
kevin1990 | 7:4dbae381f693 | 16 | this list of conditions and the following disclaimer. |
kevin1990 | 7:4dbae381f693 | 17 | - Redistributions in binary form must reproduce the above copyright notice, |
kevin1990 | 7:4dbae381f693 | 18 | this list of conditions and the following disclaimer in the documentation |
kevin1990 | 7:4dbae381f693 | 19 | and/or other materials provided with the distribution. |
kevin1990 | 7:4dbae381f693 | 20 | - Modified versions of the software must be conspicuously marked as such. |
kevin1990 | 7:4dbae381f693 | 21 | - This software is licensed solely and exclusively for use with processors |
kevin1990 | 7:4dbae381f693 | 22 | manufactured by or for Analog Devices, Inc. |
kevin1990 | 7:4dbae381f693 | 23 | - This software may not be combined or merged with other code in any manner |
kevin1990 | 7:4dbae381f693 | 24 | that would cause the software to become subject to terms and conditions |
kevin1990 | 7:4dbae381f693 | 25 | which differ from those listed here. |
kevin1990 | 7:4dbae381f693 | 26 | - Neither the name of Analog Devices, Inc. nor the names of its |
kevin1990 | 7:4dbae381f693 | 27 | contributors may be used to endorse or promote products derived |
kevin1990 | 7:4dbae381f693 | 28 | from this software without specific prior written permission. |
kevin1990 | 7:4dbae381f693 | 29 | - The use of this software may or may not infringe the patent rights of one |
kevin1990 | 7:4dbae381f693 | 30 | or more patent holders. This license does not release you from the |
kevin1990 | 7:4dbae381f693 | 31 | requirement that you obtain separate licenses from these patent holders |
kevin1990 | 7:4dbae381f693 | 32 | to use this software. |
kevin1990 | 7:4dbae381f693 | 33 | |
kevin1990 | 7:4dbae381f693 | 34 | THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY |
kevin1990 | 7:4dbae381f693 | 35 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
kevin1990 | 7:4dbae381f693 | 36 | TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN |
kevin1990 | 7:4dbae381f693 | 37 | NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
kevin1990 | 7:4dbae381f693 | 38 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES |
kevin1990 | 7:4dbae381f693 | 39 | (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL |
kevin1990 | 7:4dbae381f693 | 40 | PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
kevin1990 | 7:4dbae381f693 | 41 | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
kevin1990 | 7:4dbae381f693 | 42 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
kevin1990 | 7:4dbae381f693 | 43 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
kevin1990 | 7:4dbae381f693 | 44 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
kevin1990 | 7:4dbae381f693 | 45 | */ |
kevin1990 | 7:4dbae381f693 | 46 | |
kevin1990 | 7:4dbae381f693 | 47 | #ifndef __ADI_SENSE_PLATFORM_H__ |
kevin1990 | 7:4dbae381f693 | 48 | #define __ADI_SENSE_PLATFORM_H__ |
kevin1990 | 7:4dbae381f693 | 49 | |
kevin1990 | 7:4dbae381f693 | 50 | #include <stddef.h> |
kevin1990 | 7:4dbae381f693 | 51 | #include <stdint.h> |
kevin1990 | 7:4dbae381f693 | 52 | #include <stdbool.h> |
kevin1990 | 7:4dbae381f693 | 53 | |
kevin1990 | 7:4dbae381f693 | 54 | /*! @defgroup ADI_Sense_Host ADI Sense Host Portability Layer */ |
kevin1990 | 7:4dbae381f693 | 55 | |
kevin1990 | 7:4dbae381f693 | 56 | typedef char char_t; |
kevin1990 | 7:4dbae381f693 | 57 | typedef float float32_t; |
kevin1990 | 7:4dbae381f693 | 58 | typedef uint8_t bool_t; |
kevin1990 | 7:4dbae381f693 | 59 | |
kevin1990 | 7:4dbae381f693 | 60 | #ifndef __MBED__ |
kevin1990 | 7:4dbae381f693 | 61 | typedef long double float64_t; |
kevin1990 | 7:4dbae381f693 | 62 | #endif |
kevin1990 | 7:4dbae381f693 | 63 | |
kevin1990 | 7:4dbae381f693 | 64 | #ifdef __MBED__ |
kevin1990 | 7:4dbae381f693 | 65 | #include "inc/mbed/adi_sense_platform.h" |
kevin1990 | 7:4dbae381f693 | 66 | #endif |
kevin1990 | 7:4dbae381f693 | 67 | |
kevin1990 | 7:4dbae381f693 | 68 | #endif /* __ADI_SENSE_PLATFORM_H__ */ |
kevin1990 | 7:4dbae381f693 | 69 |