Программа считывает показания датчиков и управляет сервомашинками.
Fork of NUCLEO_BLUENRG by
hal_types.h
00001 /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** 00002 * File Name : hal_types.h 00003 * Author : AMS - HEA&RF BU 00004 * Version : V1.0.0 00005 * Date : 19-July-2012 00006 * Description : This header file defines the basic data types used by the 00007 * BLE stack. 00008 ******************************************************************************** 00009 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00010 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00011 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00012 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00013 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00014 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00015 *******************************************************************************/ 00016 #ifndef __HAL_TYPES_H__ 00017 #define __HAL_TYPES_H__ 00018 00019 #include <stdint.h> 00020 00021 #ifndef NULL 00022 #define NULL ((void *)0) 00023 #endif 00024 00025 /* Byte order conversions */ 00026 #if __BYTE_ORDER == __LITTLE_ENDIAN 00027 #define htobs(d) (d) 00028 #define htobl(d) (d) 00029 #define btohs(d) (d) 00030 #define btohl(d) (d) 00031 #elif __BYTE_ORDER == __BIG_ENDIAN 00032 #define htobs(d) bswap_16(d) 00033 #define htobl(d) bswap_32(d) 00034 #define btohs(d) bswap_16(d) 00035 #define btohl(d) bswap_32(d) 00036 #else 00037 #error "Unknown byte order" 00038 #endif 00039 00040 /** 00041 * Integer type : Machines natural word size 00042 */ 00043 typedef int tHalInt; 00044 00045 /** 00046 * Unsigned Integer type : Machines natural word size 00047 */ 00048 typedef unsigned int tHalUint; 00049 00050 /** 00051 * signed 32-bit 00052 */ 00053 typedef int tHalInt32; 00054 00055 /** 00056 * unsigned 32-bit 00057 */ 00058 typedef unsigned int tHalUint32; 00059 00060 /** 00061 * signed 16-bit 00062 */ 00063 typedef short tHalInt16; 00064 00065 /** 00066 * unsigned 16-bit 00067 */ 00068 typedef unsigned short tHalUint16; 00069 00070 /** 00071 * signed 8-bit 00072 */ 00073 typedef signed char tHalInt8; 00074 00075 /** 00076 * unsigned 8-bit 00077 */ 00078 typedef unsigned char tHalUint8; 00079 00080 /** 00081 * Boolean: smallest value. 00082 */ 00083 typedef char tHalBool; 00084 00085 #ifndef TRUE 00086 #define TRUE (1) 00087 #endif 00088 00089 #ifndef FALSE 00090 #define FALSE (0) 00091 #endif 00092 00093 00094 00095 #endif /* __HAL_TYPES_H__ */ 00096 00097
Generated on Tue Jul 12 2022 22:44:50 by 1.7.2