Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
sensirion/sensirion_config.h@0:c8ecd653066c, 2021-08-16 (annotated)
- Committer:
- Picard22
- Date:
- Mon Aug 16 13:00:07 2021 +0000
- Revision:
- 0:c8ecd653066c
Sensirion_Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Picard22 | 0:c8ecd653066c | 1 | /* |
Picard22 | 0:c8ecd653066c | 2 | * Copyright (c) 2019, Sensirion AG |
Picard22 | 0:c8ecd653066c | 3 | * All rights reserved. |
Picard22 | 0:c8ecd653066c | 4 | * |
Picard22 | 0:c8ecd653066c | 5 | * Redistribution and use in source and binary forms, with or without |
Picard22 | 0:c8ecd653066c | 6 | * modification, are permitted provided that the following conditions are met: |
Picard22 | 0:c8ecd653066c | 7 | * |
Picard22 | 0:c8ecd653066c | 8 | * * Redistributions of source code must retain the above copyright notice, this |
Picard22 | 0:c8ecd653066c | 9 | * list of conditions and the following disclaimer. |
Picard22 | 0:c8ecd653066c | 10 | * |
Picard22 | 0:c8ecd653066c | 11 | * * Redistributions in binary form must reproduce the above copyright notice, |
Picard22 | 0:c8ecd653066c | 12 | * this list of conditions and the following disclaimer in the documentation |
Picard22 | 0:c8ecd653066c | 13 | * and/or other materials provided with the distribution. |
Picard22 | 0:c8ecd653066c | 14 | * |
Picard22 | 0:c8ecd653066c | 15 | * * Neither the name of Sensirion AG nor the names of its |
Picard22 | 0:c8ecd653066c | 16 | * contributors may be used to endorse or promote products derived from |
Picard22 | 0:c8ecd653066c | 17 | * this software without specific prior written permission. |
Picard22 | 0:c8ecd653066c | 18 | * |
Picard22 | 0:c8ecd653066c | 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
Picard22 | 0:c8ecd653066c | 20 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
Picard22 | 0:c8ecd653066c | 21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
Picard22 | 0:c8ecd653066c | 22 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
Picard22 | 0:c8ecd653066c | 23 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
Picard22 | 0:c8ecd653066c | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
Picard22 | 0:c8ecd653066c | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
Picard22 | 0:c8ecd653066c | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
Picard22 | 0:c8ecd653066c | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
Picard22 | 0:c8ecd653066c | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
Picard22 | 0:c8ecd653066c | 29 | * POSSIBILITY OF SUCH DAMAGE. |
Picard22 | 0:c8ecd653066c | 30 | */ |
Picard22 | 0:c8ecd653066c | 31 | |
Picard22 | 0:c8ecd653066c | 32 | #ifndef SENSIRION_CONFIG_H |
Picard22 | 0:c8ecd653066c | 33 | #define SENSIRION_CONFIG_H |
Picard22 | 0:c8ecd653066c | 34 | |
Picard22 | 0:c8ecd653066c | 35 | /** |
Picard22 | 0:c8ecd653066c | 36 | * If your platform does not provide the library stdlib.h you have to remove the |
Picard22 | 0:c8ecd653066c | 37 | * include and define NULL yourself (see below). |
Picard22 | 0:c8ecd653066c | 38 | */ |
Picard22 | 0:c8ecd653066c | 39 | #include <stdlib.h> |
Picard22 | 0:c8ecd653066c | 40 | |
Picard22 | 0:c8ecd653066c | 41 | /** |
Picard22 | 0:c8ecd653066c | 42 | * #ifndef NULL |
Picard22 | 0:c8ecd653066c | 43 | * #define NULL ((void *)0) |
Picard22 | 0:c8ecd653066c | 44 | * #endif |
Picard22 | 0:c8ecd653066c | 45 | */ |
Picard22 | 0:c8ecd653066c | 46 | |
Picard22 | 0:c8ecd653066c | 47 | /** |
Picard22 | 0:c8ecd653066c | 48 | * If your platform does not provide the library stdint.h you have to |
Picard22 | 0:c8ecd653066c | 49 | * define the integral types yourself (see below). |
Picard22 | 0:c8ecd653066c | 50 | */ |
Picard22 | 0:c8ecd653066c | 51 | #include <stdint.h> |
Picard22 | 0:c8ecd653066c | 52 | |
Picard22 | 0:c8ecd653066c | 53 | /** |
Picard22 | 0:c8ecd653066c | 54 | * Typedef section for types commonly defined in <stdint.h> |
Picard22 | 0:c8ecd653066c | 55 | * If your system does not provide stdint headers, please define them |
Picard22 | 0:c8ecd653066c | 56 | * accordingly. Please make sure to define int64_t and uint64_t. |
Picard22 | 0:c8ecd653066c | 57 | */ |
Picard22 | 0:c8ecd653066c | 58 | /* typedef unsigned long long int uint64_t; |
Picard22 | 0:c8ecd653066c | 59 | * typedef long long int int64_t; |
Picard22 | 0:c8ecd653066c | 60 | * typedef long int32_t; |
Picard22 | 0:c8ecd653066c | 61 | * typedef unsigned long uint32_t; |
Picard22 | 0:c8ecd653066c | 62 | * typedef short int16_t; |
Picard22 | 0:c8ecd653066c | 63 | * typedef unsigned short uint16_t; |
Picard22 | 0:c8ecd653066c | 64 | * typedef char int8_t; |
Picard22 | 0:c8ecd653066c | 65 | * typedef unsigned char uint8_t; |
Picard22 | 0:c8ecd653066c | 66 | */ |
Picard22 | 0:c8ecd653066c | 67 | |
Picard22 | 0:c8ecd653066c | 68 | #ifndef __cplusplus |
Picard22 | 0:c8ecd653066c | 69 | |
Picard22 | 0:c8ecd653066c | 70 | /** |
Picard22 | 0:c8ecd653066c | 71 | * If your platform doesn't define the bool type we define it as int. Depending |
Picard22 | 0:c8ecd653066c | 72 | * on your system update the definition below. |
Picard22 | 0:c8ecd653066c | 73 | */ |
Picard22 | 0:c8ecd653066c | 74 | #if __STDC_VERSION__ >= 199901L |
Picard22 | 0:c8ecd653066c | 75 | #include <stdbool.h> |
Picard22 | 0:c8ecd653066c | 76 | #else |
Picard22 | 0:c8ecd653066c | 77 | |
Picard22 | 0:c8ecd653066c | 78 | #ifndef bool |
Picard22 | 0:c8ecd653066c | 79 | #define bool int |
Picard22 | 0:c8ecd653066c | 80 | #define true 1 |
Picard22 | 0:c8ecd653066c | 81 | #define false 0 |
Picard22 | 0:c8ecd653066c | 82 | #endif /* bool */ |
Picard22 | 0:c8ecd653066c | 83 | |
Picard22 | 0:c8ecd653066c | 84 | #endif /* __STDC_VERSION__ */ |
Picard22 | 0:c8ecd653066c | 85 | |
Picard22 | 0:c8ecd653066c | 86 | #endif /* __cplusplus */ |
Picard22 | 0:c8ecd653066c | 87 | |
Picard22 | 0:c8ecd653066c | 88 | #endif /* SENSIRION_CONFIG_H */ |