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: X_NUCLEO_COMMON ST_INTERFACES
Dependents: VL53L3CX_NoShield_1Sensor_poll_Mb06x VL53L3_NoShield_1Sensor_polling_Mb63 X_NUCLEO_53L3A2 53L3A2_Ranging
vl53lx_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 VL53LX 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 #ifndef _VL53LX_PLATFORM_USER_DEFINES_H_ 00014 #define _VL53LX_PLATFORM_USER_DEFINES_H_ 00015 00016 #ifdef __cplusplus 00017 extern "C" 00018 { 00019 #endif 00020 00021 00022 00023 00024 00025 #define do_division_u(dividend, divisor) (dividend / divisor) 00026 00027 00028 00029 #define do_division_s(dividend, divisor) (dividend / divisor) 00030 00031 00032 00033 #define WARN_OVERRIDE_STATUS(__X__)\ 00034 trace_print (VL53LX_TRACE_LEVEL_WARNING, #__X__); 00035 00036 00037 #ifdef _MSC_VER 00038 #define DISABLE_WARNINGS() { \ 00039 __pragma (warning (push)); \ 00040 __pragma (warning (disable:4127)); \ 00041 } 00042 #define ENABLE_WARNINGS() { \ 00043 __pragma (warning (pop)); \ 00044 } 00045 #else 00046 #define DISABLE_WARNINGS() 00047 #define ENABLE_WARNINGS() 00048 #endif 00049 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 00055 #endif 00056 00057
Generated on Mon Jul 18 2022 15:35:58 by
1.7.2