Code petit robot

Dependencies:   X_NUCLEO_COMMON X_NUCLEO_IHM01A1 mbed

Committer:
julientiron
Date:
Fri Mar 25 21:27:03 2016 +0000
Revision:
0:1cb50d31c3b5
Code petit robot

Who changed what in which revision?

UserRevisionLine numberNew contents of line
julientiron 0:1cb50d31c3b5 1 /*******************************************************************************
julientiron 0:1cb50d31c3b5 2 Copyright © 2014, STMicroelectronics International N.V.
julientiron 0:1cb50d31c3b5 3 All rights reserved.
julientiron 0:1cb50d31c3b5 4
julientiron 0:1cb50d31c3b5 5 Redistribution and use in source and binary forms, with or without
julientiron 0:1cb50d31c3b5 6 modification, are permitted provided that the following conditions are met:
julientiron 0:1cb50d31c3b5 7 * Redistributions of source code must retain the above copyright
julientiron 0:1cb50d31c3b5 8 notice, this list of conditions and the following disclaimer.
julientiron 0:1cb50d31c3b5 9 * Redistributions in binary form must reproduce the above copyright
julientiron 0:1cb50d31c3b5 10 notice, this list of conditions and the following disclaimer in the
julientiron 0:1cb50d31c3b5 11 documentation and/or other materials provided with the distribution.
julientiron 0:1cb50d31c3b5 12 * Neither the name of STMicroelectronics nor the
julientiron 0:1cb50d31c3b5 13 names of its contributors may be used to endorse or promote products
julientiron 0:1cb50d31c3b5 14 derived from this software without specific prior written permission.
julientiron 0:1cb50d31c3b5 15
julientiron 0:1cb50d31c3b5 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
julientiron 0:1cb50d31c3b5 17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
julientiron 0:1cb50d31c3b5 18 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
julientiron 0:1cb50d31c3b5 19 NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
julientiron 0:1cb50d31c3b5 20 IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
julientiron 0:1cb50d31c3b5 21 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
julientiron 0:1cb50d31c3b5 22 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
julientiron 0:1cb50d31c3b5 23 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
julientiron 0:1cb50d31c3b5 24 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
julientiron 0:1cb50d31c3b5 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
julientiron 0:1cb50d31c3b5 26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
julientiron 0:1cb50d31c3b5 27 ********************************************************************************/
julientiron 0:1cb50d31c3b5 28
julientiron 0:1cb50d31c3b5 29 #ifndef VL6180x_TYPES_H_
julientiron 0:1cb50d31c3b5 30 #define VL6180x_TYPES_H_
julientiron 0:1cb50d31c3b5 31
julientiron 0:1cb50d31c3b5 32
julientiron 0:1cb50d31c3b5 33 #include <stdint.h>
julientiron 0:1cb50d31c3b5 34 #include <stddef.h> /* these is for NULL */
julientiron 0:1cb50d31c3b5 35
julientiron 0:1cb50d31c3b5 36 #ifndef NULL
julientiron 0:1cb50d31c3b5 37 #error "review NULL definition or add required include "
julientiron 0:1cb50d31c3b5 38 #endif
julientiron 0:1cb50d31c3b5 39
julientiron 0:1cb50d31c3b5 40 #if !defined(STDINT_H) && !defined(_GCC_STDINT_H) && !defined(__STDINT_DECLS) && !defined(_STDINT) && !defined(_STDINT_H)
julientiron 0:1cb50d31c3b5 41
julientiron 0:1cb50d31c3b5 42 #pragma message("Please review type definition of STDINT define for your platform and add to list above ")
julientiron 0:1cb50d31c3b5 43
julientiron 0:1cb50d31c3b5 44 /*
julientiron 0:1cb50d31c3b5 45 * target platform do not provide stdint or use a different #define than above
julientiron 0:1cb50d31c3b5 46 * to avoid seeing the message below addapt the #define list above or implement
julientiron 0:1cb50d31c3b5 47 * all type and delete these pragma
julientiron 0:1cb50d31c3b5 48 */
julientiron 0:1cb50d31c3b5 49
julientiron 0:1cb50d31c3b5 50 typedef unsigned int uint32_t;
julientiron 0:1cb50d31c3b5 51 typedef int int32_t;
julientiron 0:1cb50d31c3b5 52
julientiron 0:1cb50d31c3b5 53 typedef unsigned short uint16_t;
julientiron 0:1cb50d31c3b5 54 typedef short int16_t;
julientiron 0:1cb50d31c3b5 55
julientiron 0:1cb50d31c3b5 56 typedef unsigned char uint8_t;
julientiron 0:1cb50d31c3b5 57
julientiron 0:1cb50d31c3b5 58 typedef signed char int8_t;
julientiron 0:1cb50d31c3b5 59
julientiron 0:1cb50d31c3b5 60 #endif /* _STDINT_H */
julientiron 0:1cb50d31c3b5 61
julientiron 0:1cb50d31c3b5 62 #endif /* VL6180x_TYPES_H_ */