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