ST Expansion SW Team / VL53L1CB

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   VL53L1CB_noshield_1sensor_polls_auton VL53L1CB_noshield_1sensor_interrupt_auton X_NUCLEO_53L1A2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vl53l1_platform_user_defines.h Source File

vl53l1_platform_user_defines.h

00001 
00002 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
00003 /******************************************************************************
00004  * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
00005 
00006  This file is part of VL53L1 and is dual licensed,
00007  either GPL-2.0+
00008  or 'BSD 3-clause "New" or "Revised" License' , at your option.
00009  ******************************************************************************
00010  */
00011 
00012 
00013 
00014 #ifndef _VL53L1_PLATFORM_USER_DEFINES_H_
00015 #define _VL53L1_PLATFORM_USER_DEFINES_H_
00016 
00017 #ifdef __cplusplus
00018 extern "C"
00019 {
00020 #endif
00021 
00022 
00023 
00024 
00025 
00026 #define do_division_u(dividend, divisor) (dividend / divisor)
00027 
00028 
00029 
00030 #define do_division_s(dividend, divisor) (dividend / divisor)
00031 
00032 
00033 
00034 #define WARN_OVERRIDE_STATUS(__X__)\
00035     trace_print (VL53L1_TRACE_LEVEL_WARNING, #__X__);
00036 
00037 
00038 #ifdef _MSC_VER
00039 #define DISABLE_WARNINGS() { \
00040     __pragma (warning (push)); \
00041     __pragma (warning (disable:4127)); \
00042     }
00043 #define ENABLE_WARNINGS() { \
00044     __pragma (warning (pop)); \
00045     }
00046 #else
00047     #define DISABLE_WARNINGS()
00048     #define ENABLE_WARNINGS()
00049 #endif
00050 
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 
00056 #endif
00057 
00058