Low power gas, pressure, temperature and humidity sensor
Dependents: MERGE Sensor_iAQ_sgp30_bme_si7051 POCBreath_V2_smd_commercial
Diff: bme680_defs.h
- Revision:
- 1:4d60db802cfb
- Parent:
- 0:0180d9905fe5
- Child:
- 2:090496028eb9
--- a/bme680_defs.h Sat Jul 21 20:02:04 2018 +0000 +++ b/bme680_defs.h Sat Jul 21 21:21:37 2018 +0000 @@ -1,4 +1,19 @@ /** + * @brief bme680_defs.h + * @details Low power gas, pressure, temperature & humidity sensor. + * Header file. + * + * + * @return N/A + * + * @author Manuel Caballero + * @date 21/July/2018 + * @version 21/July/2018 The ORIGIN + * @pre This is just a port from Bosh driver to mBed ( c++ ) + * @warning N/A + * @pre This code belongs to Nimbus Centre ( http://www.nimbus.cit.ie ). + */ + /** * Copyright (C) 2017 - 2018 Bosch Sensortec GmbH * * Redistribution and use in source and binary forms, with or without @@ -68,7 +83,7 @@ /******************************************************************************/ /*! @name Common macros */ /******************************************************************************/ - +/* #if !defined(UINT8_C) && !defined(INT8_C) #define INT8_C(x) S8_C(x) #define UINT8_C(x) U8_C(x) @@ -88,6 +103,28 @@ #define INT64_C(x) S64_C(x) #define UINT64_C(x) U64_C(x) #endif +*/ + +#if !defined(UINT8_C) && !defined(INT8_C) +#define INT8_C(x) int8_t(x) +#define UINT8_C(x) uint8_t(x) +#endif + +#if !defined(UINT16_C) && !defined(INT16_C) +#define INT16_C(x) int16_t(x) +#define UINT16_C(x) uint16_t(x) +#endif + +#if !defined(INT32_C) && !defined(UINT32_C) +#define INT32_C(x) int32_t(x) +#define UINT32_C(x) uint32_t(x) +#endif + +#if !defined(INT64_C) && !defined(UINT64_C) +#define INT64_C(x) int64_t(x) +#define UINT64_C(x) uint64_t(x) +#endif + /**@}*/