BH1790GLC

Committer:
ThunderSoft
Date:
Thu Mar 21 08:52:45 2019 +0000
Revision:
1:e9033991d204
Add BH1790GLC code for TT_Mxx.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ThunderSoft 1:e9033991d204 1 /*
ThunderSoft 1:e9033991d204 2 The MIT License (MIT)
ThunderSoft 1:e9033991d204 3 Copyright (c) 2017 Rohm Semiconductor
ThunderSoft 1:e9033991d204 4
ThunderSoft 1:e9033991d204 5 Permission is hereby granted, free of charge, to any person obtaining a
ThunderSoft 1:e9033991d204 6 copy of this software and associated documentation files (the
ThunderSoft 1:e9033991d204 7 "Software"), to deal in the Software without restriction, including
ThunderSoft 1:e9033991d204 8 without limitation the rights to use, copy, modify, merge, publish,
ThunderSoft 1:e9033991d204 9 distribute, sublicense, and/or sell copies of the Software, and to
ThunderSoft 1:e9033991d204 10 permit persons to whom the Software is furnished to do so, subject to
ThunderSoft 1:e9033991d204 11 the following conditions:
ThunderSoft 1:e9033991d204 12
ThunderSoft 1:e9033991d204 13 The above copyright notice and this permission notice shall be included
ThunderSoft 1:e9033991d204 14 in all copies or substantial portions of the Software.
ThunderSoft 1:e9033991d204 15
ThunderSoft 1:e9033991d204 16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
ThunderSoft 1:e9033991d204 17 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
ThunderSoft 1:e9033991d204 18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
ThunderSoft 1:e9033991d204 19 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
ThunderSoft 1:e9033991d204 20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
ThunderSoft 1:e9033991d204 21 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
ThunderSoft 1:e9033991d204 22 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ThunderSoft 1:e9033991d204 23 */
ThunderSoft 1:e9033991d204 24
ThunderSoft 1:e9033991d204 25 #ifndef ROHM_HAL_H
ThunderSoft 1:e9033991d204 26 #define ROHM_HAL_H
ThunderSoft 1:e9033991d204 27
ThunderSoft 1:e9033991d204 28 /* This file is meant for making same code work on many platforms easier. */
ThunderSoft 1:e9033991d204 29 #define ENABLE_DEBUG 0
ThunderSoft 1:e9033991d204 30 #ifdef __MBED__
ThunderSoft 1:e9033991d204 31 /* Mbed Classic */
ThunderSoft 1:e9033991d204 32 #include "mbed.h" //types
ThunderSoft 1:e9033991d204 33 #include "I2C.h" //I2C
ThunderSoft 1:e9033991d204 34
ThunderSoft 1:e9033991d204 35 #define USE_MBED_HARDWARE_I2C
ThunderSoft 1:e9033991d204 36
ThunderSoft 1:e9033991d204 37
ThunderSoft 1:e9033991d204 38 #endif
ThunderSoft 1:e9033991d204 39
ThunderSoft 1:e9033991d204 40 #if ENABLE_DEBUG //Enable/disable debug prints
ThunderSoft 1:e9033991d204 41 #define DEBUG_print(...) printf(__VA_ARGS__)
ThunderSoft 1:e9033991d204 42 #define DEBUG_printf(...) printf(__VA_ARGS__)
ThunderSoft 1:e9033991d204 43 #define DEBUG_println(...) printf(__VA_ARGS__)
ThunderSoft 1:e9033991d204 44 #else
ThunderSoft 1:e9033991d204 45 #define DEBUG_print(...)
ThunderSoft 1:e9033991d204 46 #define DEBUG_printf(...)
ThunderSoft 1:e9033991d204 47 #define DEBUG_println(...)
ThunderSoft 1:e9033991d204 48
ThunderSoft 1:e9033991d204 49 #endif
ThunderSoft 1:e9033991d204 50
ThunderSoft 1:e9033991d204 51 #endif /* ROHM_HAL_H */
ThunderSoft 1:e9033991d204 52